public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] usb: musb: Kconfig: Depend on some machines under blackfin
@ 2015-04-03 21:51 Chen Gang
  2015-04-03 22:03 ` Richard Weinberger
  2015-04-04  9:54 ` Greg Kroah-Hartman
  0 siblings, 2 replies; 7+ messages in thread
From: Chen Gang @ 2015-04-03 21:51 UTC (permalink / raw)
  To: balbi; +Cc: Greg Kroah-Hartman, linux-kernel@vger.kernel.org, linux-usb

Under blackfin, only bf527, bf548 and bf609 may use musb. The related
error with allmodconfig:

    CC [M]  drivers/usb/misc/trancevibrator.o
  In file included from drivers/usb/musb/musb_core.h:70:0,
                   from drivers/usb/musb/musb_core.c:103:
  drivers/usb/musb/musb_core.c: In function 'musb_indexed_ep_select':
  drivers/usb/musb/musb_regs.h:458:32: error: 'USB_INDEX' undeclared (first use in this function)
   #define MUSB_INDEX  USB_OFFSET(USB_INDEX) /* 8 bit */
                                  ^

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
---
 drivers/usb/musb/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/musb/Kconfig b/drivers/usb/musb/Kconfig
index 39db8b6..5fca898 100644
--- a/drivers/usb/musb/Kconfig
+++ b/drivers/usb/musb/Kconfig
@@ -6,7 +6,7 @@
 # (M)HDRC = (Multipoint) Highspeed Dual-Role Controller
 config USB_MUSB_HDRC
 	tristate 'Inventra Highspeed Dual Role Controller (TI, ADI, ...)'
-	depends on (USB || USB_GADGET)
+	depends on (USB || USB_GADGET) && (!BLACKFIN || (BLACKFIN && (BF527 || BF548 || BF609)))
 	help
 	  Say Y here if your system has a dual role high speed USB
 	  controller based on the Mentor Graphics silicon IP.  Then
-- 
1.9.3

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-04-05 15:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-03 21:51 [PATCH] usb: musb: Kconfig: Depend on some machines under blackfin Chen Gang
2015-04-03 22:03 ` Richard Weinberger
2015-04-03 22:24   ` Chen Gang
2015-04-04  9:54 ` Greg Kroah-Hartman
2015-04-04 22:33   ` Chen Gang
2015-04-05  8:29     ` Greg Kroah-Hartman
2015-04-05 15:32       ` Chen Gang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox