devide: allow for private reset amd transfer methods (ubee)
authorAlan Cox <alan@linux.intel.com>
Sun, 6 May 2018 16:19:17 +0000 (17:19 +0100)
committerAlan Cox <alan@linux.intel.com>
Sun, 6 May 2018 16:19:17 +0000 (17:19 +0100)
Kernel/dev/devide.c
Kernel/dev/devide_discard.c

index 231359d..15027a8 100644 (file)
@@ -136,7 +136,7 @@ fail:
 /* The innermost part of the transfer routines has to live in common memory */
 /* since it must be able to bank switch to the user memory bank.            */
 /****************************************************************************/
-#ifndef IDE_REG_INDIRECT
+#if !defined(IDE_REG_INDIRECT) && !defined(IDE_NONSTANDARD_XFER)
 
 #ifndef IDE_IS_MMIO
 
index 43d949d..ce4d4f8 100644 (file)
@@ -26,6 +26,9 @@
 /****************************************************************************/
 
 #ifdef IDE_REG_CONTROL
+
+#define IDE_HAS_RESET
+
 static void devide_delay(void)
 {
     timer_t timeout;
@@ -146,7 +149,7 @@ void devide_init(void)
 {
     uint8_t d;
 
-#ifdef IDE_REG_CONTROL
+#ifdef IDE_HAS_RESET
     devide_reset();
 #endif