OSDN Git Service

usb: isp1362: remove blackfin arch glue
authorArnd Bergmann <arnd@arndb.de>
Fri, 9 Mar 2018 21:45:26 +0000 (22:45 +0100)
committerArnd Bergmann <arnd@arndb.de>
Mon, 26 Mar 2018 13:57:14 +0000 (15:57 +0200)
The blackfin architecture is getting removed, and this is the last
remaining architecture specific setting, so the various hacks
can be removed now.

From all I can tell, there are no remaining in-tree users of the
driver, but it could be used by out-of-tree platform ports.
I've marked the driver as 'depends on COMPILE_TEST', short of
removing it outright.

It was originally written for some ARM PXA machines using the same
chip, but that platform never really worked and the code has been
removed a long time ago.

Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Aaron Wu <aaron.wu@analog.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/usb/host/Kconfig
drivers/usb/host/isp1362.h

index 4fcfb30..b85822f 100644 (file)
@@ -360,6 +360,7 @@ config USB_ISP116X_HCD
 config USB_ISP1362_HCD
        tristate "ISP1362 HCD support"
        depends on HAS_IOMEM
+       depends on COMPILE_TEST # nothing uses this
        ---help---
          Supports the Philips ISP1362 chip as a host controller
 
index da79e36..6502408 100644 (file)
@@ -6,49 +6,6 @@
  */
 
 /* ------------------------------------------------------------------------- */
-/*
- * Platform specific compile time options
- */
-#if defined(CONFIG_BLACKFIN)
-
-#include <linux/io.h>
-#define USE_32BIT              0
-#define MAX_ROOT_PORTS         2
-#define USE_PLATFORM_DELAY     0
-#define USE_NDELAY             1
-
-#define DUMMY_DELAY_ACCESS \
-       do { \
-               bfin_read16(ASYNC_BANK0_BASE); \
-               bfin_read16(ASYNC_BANK0_BASE); \
-               bfin_read16(ASYNC_BANK0_BASE); \
-       } while (0)
-
-#undef insw
-#undef outsw
-
-#define insw  delayed_insw
-#define outsw  delayed_outsw
-
-static inline void delayed_outsw(unsigned int addr, void *buf, int len)
-{
-       unsigned short *bp = (unsigned short *)buf;
-       while (len--) {
-               DUMMY_DELAY_ACCESS;
-               outw(*bp++, addr);
-       }
-}
-
-static inline void delayed_insw(unsigned int addr, void *buf, int len)
-{
-       unsigned short *bp = (unsigned short *)buf;
-       while (len--) {
-               DUMMY_DELAY_ACCESS;
-               *bp++ = inw(addr);
-       }
-}
-
-#else
 
 #define MAX_ROOT_PORTS         2
 
@@ -60,9 +17,6 @@ static inline void delayed_insw(unsigned int addr, void *buf, int len)
 
 #define DUMMY_DELAY_ACCESS do {} while (0)
 
-#endif
-
-
 /* ------------------------------------------------------------------------- */
 
 #define USB_RESET_WIDTH                        50