drivers/usb/musb/musb_core.c:323:2: error: 'USB_INDEX' undeclared
From: kbuild test robot
Date: Sat Jun 11 2016 - 14:22:25 EST
Hi,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 3d0f0b6a5520878305589411b8d434fe088e4f21
commit: 1e546aa6c4cfe83050fc78487c8aa78b6947006c usb: musb: drop ARCH dependency
date: 4 years, 6 months ago
config: blackfin-allmodconfig (attached as .config)
compiler: bfin-uclinux-gcc (GCC) 4.6.3
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 1e546aa6c4cfe83050fc78487c8aa78b6947006c
# save the attached .config to linux build tree
make.cross ARCH=blackfin
All errors (new ones prefixed by >>):
drivers/usb/musb/musb_core.c: In function 'musb_load_testpacket':
>> drivers/usb/musb/musb_core.c:323:2: error: 'USB_INDEX' undeclared (first use in this function)
drivers/usb/musb/musb_core.c:323:2: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/usb/musb/musb_core.c:323:2: error: 'USB_FADDR' undeclared (first use in this function)
drivers/usb/musb/musb_core.c: In function 'musb_hnp_stop':
>> drivers/usb/musb/musb_core.c:384:27: error: 'USB_POWER' undeclared (first use in this function)
drivers/usb/musb/musb_core.c:384:27: error: 'USB_FADDR' undeclared (first use in this function)
drivers/usb/musb/musb_core.c: In function 'musb_stage0_irq':
drivers/usb/musb/musb_core.c:447:24: error: 'USB_POWER' undeclared (first use in this function)
drivers/usb/musb/musb_core.c:447:24: error: 'USB_FADDR' undeclared (first use in this function)
>> drivers/usb/musb/musb_core.c:522:22: error: 'USB_OTG_DEV_CTL' undeclared (first use in this function)
drivers/usb/musb/musb_core.c:672:28: error: 'USB_INTRTXE' undeclared (first use in this function)
>> drivers/usb/musb/musb_core.c:673:28: error: 'USB_INTRRXE' undeclared (first use in this function)
>> drivers/usb/musb/musb_core.c:674:28: error: 'USB_INTRUSBE' undeclared (first use in this function)
drivers/usb/musb/musb_core.c: In function 'musb_start':
drivers/usb/musb/musb_core.c:889:32: error: 'USB_OTG_DEV_CTL' undeclared (first use in this function)
drivers/usb/musb/musb_core.c:889:32: error: 'USB_FADDR' undeclared (first use in this function)
drivers/usb/musb/musb_core.c:894:20: error: 'USB_INTRTXE' undeclared (first use in this function)
drivers/usb/musb/musb_core.c:895:20: error: 'USB_INTRRXE' undeclared (first use in this function)
drivers/usb/musb/musb_core.c:896:20: error: 'USB_INTRUSBE' undeclared (first use in this function)
>> drivers/usb/musb/musb_core.c:898:20: error: 'USB_TESTMODE' undeclared (first use in this function)
drivers/usb/musb/musb_core.c:901:20: error: 'USB_POWER' undeclared (first use in this function)
drivers/usb/musb/musb_core.c: In function 'musb_generic_disable':
drivers/usb/musb/musb_core.c:941:21: error: 'USB_INTRUSBE' undeclared (first use in this function)
drivers/usb/musb/musb_core.c:941:21: error: 'USB_FADDR' undeclared (first use in this function)
drivers/usb/musb/musb_core.c:942:21: error: 'USB_INTRTXE' undeclared (first use in this function)
drivers/usb/musb/musb_core.c:943:21: error: 'USB_INTRRXE' undeclared (first use in this function)
drivers/usb/musb/musb_core.c:946:21: error: 'USB_OTG_DEV_CTL' undeclared (first use in this function)
>> drivers/usb/musb/musb_core.c:949:27: error: 'USB_INTRUSB' undeclared (first use in this function)
>> drivers/usb/musb/musb_core.c:950:27: error: 'USB_INTRTX' undeclared (first use in this function)
>> drivers/usb/musb/musb_core.c:951:27: error: 'USB_INTRRX' undeclared (first use in this function)
drivers/usb/musb/musb_core.c: In function 'musb_shutdown':
drivers/usb/musb/musb_core.c:992:27: error: 'USB_OTG_DEV_CTL' undeclared (first use in this function)
drivers/usb/musb/musb_core.c:992:27: error: 'USB_FADDR' undeclared (first use in this function)
drivers/usb/musb/musb_core.c: In function 'fifo_setup':
drivers/usb/musb/musb_core.c:1168:21: error: 'USB_INDEX' undeclared (first use in this function)
drivers/usb/musb/musb_core.c:1168:21: error: 'USB_FADDR' undeclared (first use in this function)
drivers/usb/musb/musb_core.c: In function 'ep_config_from_hw':
drivers/usb/musb/musb_core.c:1319:3: error: 'USB_INDEX' undeclared (first use in this function)
drivers/usb/musb/musb_core.c:1319:3: error: 'USB_FADDR' undeclared (first use in this function)
drivers/usb/musb/musb_core.c: In function 'musb_core_init':
drivers/usb/musb/musb_core.c:1434:17: error: 'USB_EP0_FIFO' undeclared (first use in this function)
drivers/usb/musb/musb_core.c:1434:17: error: 'USB_FADDR' undeclared (first use in this function)
>> drivers/usb/musb/musb_core.c:1442:34: error: 'TUSB_EP0_CONF' undeclared (first use in this function)
drivers/usb/musb/musb_core.c:1447:3: error: implicit declaration of function 'MUSB_TUSB_OFFSET' [-Werror=implicit-function-declaration]
drivers/usb/musb/musb_core.c: In function 'musb_interrupt':
drivers/usb/musb/musb_core.c:1520:35: error: 'USB_OTG_DEV_CTL' undeclared (first use in this function)
drivers/usb/musb/musb_core.c:1520:35: error: 'USB_FADDR' undeclared (first use in this function)
drivers/usb/musb/musb_core.c:1521:34: error: 'USB_POWER' undeclared (first use in this function)
drivers/usb/musb/musb_core.c: In function 'musb_init_controller':
drivers/usb/musb/musb_core.c:1993:3: error: 'USB_OTG_DEV_CTL' undeclared (first use in this function)
drivers/usb/musb/musb_core.c:1993:3: error: 'USB_FADDR' undeclared (first use in this function)
drivers/usb/musb/musb_core.c: In function 'musb_save_context':
>> drivers/usb/musb/musb_core.c:2140:47: error: 'USB_FRAME' undeclared (first use in this function)
drivers/usb/musb/musb_core.c:2140:47: error: 'USB_FADDR' undeclared (first use in this function)
drivers/usb/musb/musb_core.c:2141:50: error: 'USB_TESTMODE' undeclared (first use in this function)
drivers/usb/musb/musb_core.c:2144:46: error: 'USB_POWER' undeclared (first use in this function)
drivers/usb/musb/musb_core.c:2145:48: error: 'USB_INTRTXE' undeclared (first use in this function)
drivers/usb/musb/musb_core.c:2146:48: error: 'USB_INTRRXE' undeclared (first use in this function)
drivers/usb/musb/musb_core.c:2147:49: error: 'USB_INTRUSBE' undeclared (first use in this function)
drivers/usb/musb/musb_core.c:2148:46: error: 'USB_INDEX' undeclared (first use in this function)
drivers/usb/musb/musb_core.c:2149:47: error: 'USB_OTG_DEV_CTL' undeclared (first use in this function)
drivers/usb/musb/musb_core.c: In function 'musb_restore_context':
drivers/usb/musb/musb_core.c:2217:26: error: 'USB_FRAME' undeclared (first use in this function)
drivers/usb/musb/musb_core.c:2217:26: error: 'USB_FADDR' undeclared (first use in this function)
drivers/usb/musb/musb_core.c:2218:26: error: 'USB_TESTMODE' undeclared (first use in this function)
drivers/usb/musb/musb_core.c:2221:25: error: 'USB_POWER' undeclared (first use in this function)
drivers/usb/musb/musb_core.c:2222:25: error: 'USB_INTRTXE' undeclared (first use in this function)
drivers/usb/musb/musb_core.c:2223:25: error: 'USB_INTRRXE' undeclared (first use in this function)
drivers/usb/musb/musb_core.c:2224:25: error: 'USB_INTRUSBE' undeclared (first use in this function)
drivers/usb/musb/musb_core.c:2225:25: error: 'USB_OTG_DEV_CTL' undeclared (first use in this function)
drivers/usb/musb/musb_core.c:2238:26: error: 'USB_INDEX' undeclared (first use in this function)
cc1: some warnings being treated as errors
--
drivers/usb/musb/musb_gadget_ep0.c: In function 'service_tx_status_request':
drivers/usb/musb/musb_gadget_ep0.c:130:3: error: 'USB_INDEX' undeclared (first use in this function)
drivers/usb/musb/musb_gadget_ep0.c:130:3: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/usb/musb/musb_gadget_ep0.c:130:3: error: 'USB_FADDR' undeclared (first use in this function)
drivers/usb/musb/musb_gadget_ep0.c: In function 'musb_try_b_hnp_enable':
>> drivers/usb/musb/musb_gadget_ep0.c:210:29: error: 'USB_OTG_DEV_CTL' undeclared (first use in this function)
drivers/usb/musb/musb_gadget_ep0.c:210:29: error: 'USB_FADDR' undeclared (first use in this function)
drivers/usb/musb/musb_gadget_ep0.c: In function 'service_zero_data_request':
drivers/usb/musb/musb_gadget_ep0.c:285:5: error: 'USB_INDEX' undeclared (first use in this function)
drivers/usb/musb/musb_gadget_ep0.c:285:5: error: 'USB_FADDR' undeclared (first use in this function)
drivers/usb/musb/musb_gadget_ep0.c: In function 'ep0_rxstate':
drivers/usb/musb/musb_gadget_ep0.c:530:2: error: 'USB_INDEX' undeclared (first use in this function)
drivers/usb/musb/musb_gadget_ep0.c:530:2: error: 'USB_FADDR' undeclared (first use in this function)
drivers/usb/musb/musb_gadget_ep0.c: In function 'ep0_txstate':
drivers/usb/musb/musb_gadget_ep0.c:587:2: error: 'USB_INDEX' undeclared (first use in this function)
drivers/usb/musb/musb_gadget_ep0.c:587:2: error: 'USB_FADDR' undeclared (first use in this function)
drivers/usb/musb/musb_gadget_ep0.c: In function 'musb_g_ep0_irq':
drivers/usb/musb/musb_gadget_ep0.c:672:2: error: 'USB_INDEX' undeclared (first use in this function)
drivers/usb/musb/musb_gadget_ep0.c:672:2: error: 'USB_FADDR' undeclared (first use in this function)
>> drivers/usb/musb/musb_gadget_ep0.c:760:23: error: 'USB_TESTMODE' undeclared (first use in this function)
drivers/usb/musb/musb_gadget_ep0.c:817:31: error: 'USB_POWER' undeclared (first use in this function)
drivers/usb/musb/musb_gadget_ep0.c: In function 'musb_g_ep0_queue':
drivers/usb/musb/musb_gadget_ep0.c:977:2: error: 'USB_INDEX' undeclared (first use in this function)
drivers/usb/musb/musb_gadget_ep0.c:977:2: error: 'USB_FADDR' undeclared (first use in this function)
drivers/usb/musb/musb_gadget_ep0.c: In function 'musb_g_ep0_halt':
drivers/usb/musb/musb_gadget_ep0.c:1040:2: error: 'USB_INDEX' undeclared (first use in this function)
drivers/usb/musb/musb_gadget_ep0.c:1040:2: error: 'USB_FADDR' undeclared (first use in this function)
--
drivers/usb/musb/musb_gadget.c: In function 'musb_g_tx':
drivers/usb/musb/musb_gadget.c:495:2: error: 'USB_INDEX' undeclared (first use in this function)
drivers/usb/musb/musb_gadget.c:495:2: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/usb/musb/musb_gadget.c:495:2: error: 'USB_FADDR' undeclared (first use in this function)
drivers/usb/musb/musb_gadget.c: In function 'musb_g_rx':
drivers/usb/musb/musb_gadget.c:904:2: error: 'USB_INDEX' undeclared (first use in this function)
drivers/usb/musb/musb_gadget.c:904:2: error: 'USB_FADDR' undeclared (first use in this function)
drivers/usb/musb/musb_gadget.c: In function 'musb_gadget_enable':
drivers/usb/musb/musb_gadget.c:1062:2: error: 'USB_INDEX' undeclared (first use in this function)
drivers/usb/musb/musb_gadget.c:1062:2: error: 'USB_FADDR' undeclared (first use in this function)
>> drivers/usb/musb/musb_gadget.c:1064:35: error: 'USB_INTRTXE' undeclared (first use in this function)
drivers/usb/musb/musb_gadget.c:1085:3: warning: 'double_buffer_not_ok' is deprecated (declared at drivers/usb/musb/musb_core.h:450) [-Wdeprecated-declarations]
>> drivers/usb/musb/musb_gadget.c:1104:35: error: 'USB_INTRRXE' undeclared (first use in this function)
drivers/usb/musb/musb_gadget.c:1125:3: warning: 'double_buffer_not_ok' is deprecated (declared at drivers/usb/musb/musb_core.h:450) [-Wdeprecated-declarations]
drivers/usb/musb/musb_gadget.c: In function 'musb_gadget_disable':
drivers/usb/musb/musb_gadget.c:1201:2: error: 'USB_INDEX' undeclared (first use in this function)
drivers/usb/musb/musb_gadget.c:1201:2: error: 'USB_FADDR' undeclared (first use in this function)
drivers/usb/musb/musb_gadget.c:1205:41: error: 'USB_INTRTXE' undeclared (first use in this function)
drivers/usb/musb/musb_gadget.c:1210:41: error: 'USB_INTRRXE' undeclared (first use in this function)
drivers/usb/musb/musb_gadget.c: In function 'musb_ep_restart':
drivers/usb/musb/musb_gadget.c:1280:2: error: 'USB_INDEX' undeclared (first use in this function)
drivers/usb/musb/musb_gadget.c:1280:2: error: 'USB_FADDR' undeclared (first use in this function)
drivers/usb/musb/musb_gadget.c: In function 'musb_gadget_dequeue':
drivers/usb/musb/musb_gadget.c:1374:3: error: 'USB_INDEX' undeclared (first use in this function)
drivers/usb/musb/musb_gadget.c:1374:3: error: 'USB_FADDR' undeclared (first use in this function)
drivers/usb/musb/musb_gadget.c: In function 'musb_gadget_set_halt':
drivers/usb/musb/musb_gadget.c:1422:2: error: 'USB_INDEX' undeclared (first use in this function)
drivers/usb/musb/musb_gadget.c:1422:2: error: 'USB_FADDR' undeclared (first use in this function)
drivers/usb/musb/musb_gadget.c: In function 'musb_gadget_fifo_status':
drivers/usb/musb/musb_gadget.c:1510:3: error: 'USB_INDEX' undeclared (first use in this function)
drivers/usb/musb/musb_gadget.c:1510:3: error: 'USB_FADDR' undeclared (first use in this function)
drivers/usb/musb/musb_gadget.c: In function 'musb_gadget_fifo_flush':
drivers/usb/musb/musb_gadget.c:1532:2: error: 'USB_INDEX' undeclared (first use in this function)
drivers/usb/musb/musb_gadget.c:1532:2: error: 'USB_FADDR' undeclared (first use in this function)
drivers/usb/musb/musb_gadget.c:1535:30: error: 'USB_INTRTXE' undeclared (first use in this function)
drivers/usb/musb/musb_gadget.c: In function 'musb_gadget_get_frame':
>> drivers/usb/musb/musb_gadget.c:1583:38: error: 'USB_FRAME' undeclared (first use in this function)
drivers/usb/musb/musb_gadget.c:1583:38: error: 'USB_FADDR' undeclared (first use in this function)
drivers/usb/musb/musb_gadget.c: In function 'musb_gadget_wakeup':
>> drivers/usb/musb/musb_gadget.c:1608:30: error: 'USB_OTG_DEV_CTL' undeclared (first use in this function)
drivers/usb/musb/musb_gadget.c:1608:30: error: 'USB_FADDR' undeclared (first use in this function)
>> drivers/usb/musb/musb_gadget.c:1644:28: error: 'USB_POWER' undeclared (first use in this function)
drivers/usb/musb/musb_gadget.c: In function 'musb_pullup':
drivers/usb/musb/musb_gadget.c:1673:34: error: 'USB_POWER' undeclared (first use in this function)
drivers/usb/musb/musb_gadget.c:1673:34: error: 'USB_FADDR' undeclared (first use in this function)
drivers/usb/musb/musb_gadget.c: In function 'stop_activity':
drivers/usb/musb/musb_gadget.c:1990:4: error: 'USB_INDEX' undeclared (first use in this function)
drivers/usb/musb/musb_gadget.c:1990:4: error: 'USB_FADDR' undeclared (first use in this function)
drivers/usb/musb/musb_gadget.c: In function 'musb_g_suspend':
drivers/usb/musb/musb_gadget.c:2085:35: error: 'USB_OTG_DEV_CTL' undeclared (first use in this function)
drivers/usb/musb/musb_gadget.c:2085:35: error: 'USB_FADDR' undeclared (first use in this function)
drivers/usb/musb/musb_gadget.c: In function 'musb_g_disconnect':
drivers/usb/musb/musb_gadget.c:2120:32: error: 'USB_OTG_DEV_CTL' undeclared (first use in this function)
drivers/usb/musb/musb_gadget.c:2120:32: error: 'USB_FADDR' undeclared (first use in this function)
drivers/usb/musb/musb_gadget.c: In function 'musb_g_reset':
drivers/usb/musb/musb_gadget.c:2166:33: error: 'USB_OTG_DEV_CTL' undeclared (first use in this function)
drivers/usb/musb/musb_gadget.c:2166:33: error: 'USB_FADDR' undeclared (first use in this function)
drivers/usb/musb/musb_gadget.c:2188:28: error: 'USB_POWER' undeclared (first use in this function)
drivers/usb/musb/musb_gadget.c: In function 'musb_gadget_get_frame':
drivers/usb/musb/musb_gadget.c:1584:1: warning: control reaches end of non-void function [-Wreturn-type]
--
drivers/usb/musb/musb_virthub.c: In function 'musb_port_suspend':
>> drivers/usb/musb/musb_virthub.c:61:28: error: 'USB_POWER' undeclared (first use in this function)
drivers/usb/musb/musb_virthub.c:61:28: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/usb/musb/musb_virthub.c:61:28: error: 'USB_FADDR' undeclared (first use in this function)
drivers/usb/musb/musb_virthub.c: In function 'musb_port_reset':
drivers/usb/musb/musb_virthub.c:131:28: error: 'USB_POWER' undeclared (first use in this function)
drivers/usb/musb/musb_virthub.c:131:28: error: 'USB_FADDR' undeclared (first use in this function)
drivers/usb/musb/musb_virthub.c: In function 'musb_hub_control':
drivers/usb/musb/musb_virthub.c:325:36: error: 'USB_POWER' undeclared (first use in this function)
drivers/usb/musb/musb_virthub.c:325:36: error: 'USB_FADDR' undeclared (first use in this function)
>> drivers/usb/musb/musb_virthub.c:406:30: error: 'USB_OTG_DEV_CTL' undeclared (first use in this function)
>> drivers/usb/musb/musb_virthub.c:416:29: error: 'USB_TESTMODE' undeclared (first use in this function)
--
drivers/usb/musb/musb_host.c: In function 'musb_start_urb':
>> drivers/usb/musb/musb_host.c:268:29: error: 'USB_FRAME' undeclared (first use in this function)
drivers/usb/musb/musb_host.c:268:29: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/usb/musb/musb_host.c:268:29: error: 'USB_FADDR' undeclared (first use in this function)
>> drivers/usb/musb/musb_host.c:284:23: error: 'USB_INTRUSBE' undeclared (first use in this function)
drivers/usb/musb/musb_host.c: In function 'musb_rx_reinit':
drivers/usb/musb/musb_host.c:590:28: error: 'USB_FADDR' undeclared (first use in this function)
drivers/usb/musb/musb_host.c:599:2: warning: 'double_buffer_not_ok' is deprecated (declared at drivers/usb/musb/musb_core.h:450) [-Wdeprecated-declarations]
drivers/usb/musb/musb_host.c: In function 'musb_ep_program':
drivers/usb/musb/musb_host.c:695:2: error: 'USB_INDEX' undeclared (first use in this function)
drivers/usb/musb/musb_host.c:695:2: error: 'USB_FADDR' undeclared (first use in this function)
>> drivers/usb/musb/musb_host.c:723:31: error: 'USB_INTRTXE' undeclared (first use in this function)
drivers/usb/musb/musb_host.c:774:4: warning: 'double_buffer_not_ok' is deprecated (declared at drivers/usb/musb/musb_core.h:450) [-Wdeprecated-declarations]
drivers/usb/musb/musb_host.c: In function 'musb_h_ep0_irq':
drivers/usb/musb/musb_host.c:967:2: error: 'USB_INDEX' undeclared (first use in this function)
drivers/usb/musb/musb_host.c:967:2: error: 'USB_FADDR' undeclared (first use in this function)
drivers/usb/musb/musb_host.c: In function 'musb_host_tx':
drivers/usb/musb/musb_host.c:1106:2: error: 'USB_INDEX' undeclared (first use in this function)
drivers/usb/musb/musb_host.c:1106:2: error: 'USB_FADDR' undeclared (first use in this function)
drivers/usb/musb/musb_host.c: In function 'musb_bulk_rx_nak_timeout':
drivers/usb/musb/musb_host.c:1381:2: error: 'USB_INDEX' undeclared (first use in this function)
drivers/usb/musb/musb_host.c:1381:2: error: 'USB_FADDR' undeclared (first use in this function)
drivers/usb/musb/musb_host.c: In function 'musb_host_rx':
drivers/usb/musb/musb_host.c:1432:2: error: 'USB_INDEX' undeclared (first use in this function)
drivers/usb/musb/musb_host.c:1432:2: error: 'USB_FADDR' undeclared (first use in this function)
drivers/usb/musb/musb_host.c: In function 'musb_cleanup_urb':
drivers/usb/musb/musb_host.c:2080:2: error: 'USB_INDEX' undeclared (first use in this function)
drivers/usb/musb/musb_host.c:2080:2: error: 'USB_FADDR' undeclared (first use in this function)
drivers/usb/musb/musb_host.c: In function 'musb_h_get_frame_number':
drivers/usb/musb/musb_host.c:2243:33: error: 'USB_FRAME' undeclared (first use in this function)
drivers/usb/musb/musb_host.c:2243:33: error: 'USB_FADDR' undeclared (first use in this function)
drivers/usb/musb/musb_host.c: In function 'musb_bus_suspend':
>> drivers/usb/musb/musb_host.c:2280:36: error: 'USB_OTG_DEV_CTL' undeclared (first use in this function)
drivers/usb/musb/musb_host.c:2280:36: error: 'USB_FADDR' undeclared (first use in this function)
drivers/usb/musb/musb_host.c: In function 'musb_h_get_frame_number':
drivers/usb/musb/musb_host.c:2244:1: warning: control reaches end of non-void function [-Wreturn-type]
--
drivers/usb/musb/tusb6010.c: In function 'tusb_get_revision':
drivers/usb/musb/tusb6010.c:49:26: error: 'TUSB_DMA_CTRL_REV' undeclared (first use in this function)
drivers/usb/musb/tusb6010.c:49:26: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/usb/musb/tusb6010.c:51:3: error: implicit declaration of function 'TUSB_DIDR1_HI_CHIP_REV' [-Werror=implicit-function-declaration]
>> drivers/usb/musb/tusb6010.c:52:5: error: 'TUSB_DIDR1_HI' undeclared (first use in this function)
>> drivers/usb/musb/tusb6010.c:53:17: error: 'TUSB_DIDR1_HI_REV_31' undeclared (first use in this function)
drivers/usb/musb/tusb6010.c: In function 'tusb_print_revision':
>> drivers/usb/musb/tusb6010.c:68:2: error: 'TUSB_PRCM_REV' undeclared (first use in this function)
>> drivers/usb/musb/tusb6010.c:68:2: error: 'TUSB_INT_CTRL_REV' undeclared (first use in this function)
>> drivers/usb/musb/tusb6010.c:68:2: error: 'TUSB_GPIO_REV' undeclared (first use in this function)
drivers/usb/musb/tusb6010.c:68:2: error: 'TUSB_DMA_CTRL_REV' undeclared (first use in this function)
drivers/usb/musb/tusb6010.c:68:2: error: 'TUSB_DIDR1_HI' undeclared (first use in this function)
drivers/usb/musb/tusb6010.c: In function 'tusb_wbus_quirk':
drivers/usb/musb/tusb6010.c:103:36: error: 'TUSB_PHY_OTG_CTRL' undeclared (first use in this function)
>> drivers/usb/musb/tusb6010.c:104:35: error: 'TUSB_PHY_OTG_CTRL_ENABLE' undeclared (first use in this function)
>> drivers/usb/musb/tusb6010.c:105:9: error: 'TUSB_PHY_OTG_CTRL_WRPROTECT' undeclared (first use in this function)
>> drivers/usb/musb/tusb6010.c:106:21: error: 'TUSB_PHY_OTG_CTRL_TESTM2' undeclared (first use in this function)
>> drivers/usb/musb/tusb6010.c:106:21: error: 'TUSB_PHY_OTG_CTRL_TESTM1' undeclared (first use in this function)
>> drivers/usb/musb/tusb6010.c:106:21: error: 'TUSB_PHY_OTG_CTRL_TESTM0' undeclared (first use in this function)
drivers/usb/musb/tusb6010.c: In function 'musb_write_fifo':
>> drivers/usb/musb/tusb6010.c:188:24: error: 'TUSB_EP_TX_OFFSET' undeclared (first use in this function)
>> drivers/usb/musb/tusb6010.c:189:4: error: implicit declaration of function 'TUSB_EP_CONFIG_XFR_SIZE' [-Werror=implicit-function-declaration]
>> drivers/usb/musb/tusb6010.c:191:27: error: 'TUSB_EP0_CONFIG_DIR_TX' undeclared (first use in this function)
>> drivers/usb/musb/tusb6010.c:192:4: error: implicit declaration of function 'TUSB_EP0_CONFIG_XFR_SIZE' [-Werror=implicit-function-declaration]
drivers/usb/musb/tusb6010.c: In function 'musb_read_fifo':
>> drivers/usb/musb/tusb6010.c:236:24: error: 'TUSB_EP_RX_OFFSET' undeclared (first use in this function)
drivers/usb/musb/tusb6010.c: In function 'tusb_draw_power':
>> drivers/usb/musb/tusb6010.c:299:26: error: 'TUSB_PRCM_MNGMT' undeclared (first use in this function)
>> drivers/usb/musb/tusb6010.c:302:10: error: 'TUSB_PRCM_MNGMT_15_SW_EN' undeclared (first use in this function)
>> drivers/usb/musb/tusb6010.c:302:37: error: 'TUSB_PRCM_MNGMT_33_SW_EN' undeclared (first use in this function)
drivers/usb/musb/tusb6010.c: In function 'tusb_set_clock_source':
>> drivers/usb/musb/tusb6010.c:322:26: error: 'TUSB_PRCM_CONF' undeclared (first use in this function)
vim +/USB_INDEX +323 drivers/usb/musb/musb_core.c
550a7375f Felipe Balbi 2008-07-24 317 };
550a7375f Felipe Balbi 2008-07-24 318
550a7375f Felipe Balbi 2008-07-24 319 void musb_load_testpacket(struct musb *musb)
550a7375f Felipe Balbi 2008-07-24 320 {
550a7375f Felipe Balbi 2008-07-24 321 void __iomem *regs = musb->endpoints[0].regs;
550a7375f Felipe Balbi 2008-07-24 322
550a7375f Felipe Balbi 2008-07-24 @323 musb_ep_select(musb->mregs, 0);
550a7375f Felipe Balbi 2008-07-24 324 musb_write_fifo(musb->control_ep,
550a7375f Felipe Balbi 2008-07-24 325 sizeof(musb_test_packet), musb_test_packet);
550a7375f Felipe Balbi 2008-07-24 326 musb_writew(regs, MUSB_CSR0, MUSB_CSR0_TXPKTRDY);
550a7375f Felipe Balbi 2008-07-24 327 }
550a7375f Felipe Balbi 2008-07-24 328
550a7375f Felipe Balbi 2008-07-24 329 /*-------------------------------------------------------------------------*/
550a7375f Felipe Balbi 2008-07-24 330
550a7375f Felipe Balbi 2008-07-24 331 /*
550a7375f Felipe Balbi 2008-07-24 332 * Handles OTG hnp timeouts, such as b_ase0_brst
550a7375f Felipe Balbi 2008-07-24 333 */
550a7375f Felipe Balbi 2008-07-24 334 void musb_otg_timer_func(unsigned long data)
550a7375f Felipe Balbi 2008-07-24 335 {
550a7375f Felipe Balbi 2008-07-24 336 struct musb *musb = (struct musb *)data;
550a7375f Felipe Balbi 2008-07-24 337 unsigned long flags;
550a7375f Felipe Balbi 2008-07-24 338
550a7375f Felipe Balbi 2008-07-24 339 spin_lock_irqsave(&musb->lock, flags);
84e250ffa David Brownell 2009-03-31 340 switch (musb->xceiv->state) {
550a7375f Felipe Balbi 2008-07-24 341 case OTG_STATE_B_WAIT_ACON:
5c8a86e10 Felipe Balbi 2011-05-11 342 dev_dbg(musb->controller, "HNP: b_wait_acon timeout; back to b_peripheral\n");
550a7375f Felipe Balbi 2008-07-24 343 musb_g_disconnect(musb);
84e250ffa David Brownell 2009-03-31 344 musb->xceiv->state = OTG_STATE_B_PERIPHERAL;
550a7375f Felipe Balbi 2008-07-24 345 musb->is_active = 0;
550a7375f Felipe Balbi 2008-07-24 346 break;
ab983f2a1 David Brownell 2009-03-31 347 case OTG_STATE_A_SUSPEND:
550a7375f Felipe Balbi 2008-07-24 348 case OTG_STATE_A_WAIT_BCON:
5c8a86e10 Felipe Balbi 2011-05-11 349 dev_dbg(musb->controller, "HNP: %s timeout\n",
3df004532 Anatolij Gustschin 2011-05-05 350 otg_state_string(musb->xceiv->state));
743411b3f Felipe Balbi 2010-12-01 351 musb_platform_set_vbus(musb, 0);
ab983f2a1 David Brownell 2009-03-31 352 musb->xceiv->state = OTG_STATE_A_WAIT_VFALL;
550a7375f Felipe Balbi 2008-07-24 353 break;
550a7375f Felipe Balbi 2008-07-24 354 default:
5c8a86e10 Felipe Balbi 2011-05-11 355 dev_dbg(musb->controller, "HNP: Unhandled mode %s\n",
3df004532 Anatolij Gustschin 2011-05-05 356 otg_state_string(musb->xceiv->state));
550a7375f Felipe Balbi 2008-07-24 357 }
550a7375f Felipe Balbi 2008-07-24 358 musb->ignore_disconnect = 0;
550a7375f Felipe Balbi 2008-07-24 359 spin_unlock_irqrestore(&musb->lock, flags);
550a7375f Felipe Balbi 2008-07-24 360 }
550a7375f Felipe Balbi 2008-07-24 361
550a7375f Felipe Balbi 2008-07-24 362 /*
f7f9d63ea David Brownell 2009-03-31 363 * Stops the HNP transition. Caller must take care of locking.
550a7375f Felipe Balbi 2008-07-24 364 */
550a7375f Felipe Balbi 2008-07-24 365 void musb_hnp_stop(struct musb *musb)
550a7375f Felipe Balbi 2008-07-24 366 {
550a7375f Felipe Balbi 2008-07-24 367 struct usb_hcd *hcd = musb_to_hcd(musb);
550a7375f Felipe Balbi 2008-07-24 368 void __iomem *mbase = musb->mregs;
550a7375f Felipe Balbi 2008-07-24 369 u8 reg;
550a7375f Felipe Balbi 2008-07-24 370
5c8a86e10 Felipe Balbi 2011-05-11 371 dev_dbg(musb->controller, "HNP: stop from %s\n", otg_state_string(musb->xceiv->state));
ab983f2a1 David Brownell 2009-03-31 372
84e250ffa David Brownell 2009-03-31 373 switch (musb->xceiv->state) {
550a7375f Felipe Balbi 2008-07-24 374 case OTG_STATE_A_PERIPHERAL:
550a7375f Felipe Balbi 2008-07-24 375 musb_g_disconnect(musb);
5c8a86e10 Felipe Balbi 2011-05-11 376 dev_dbg(musb->controller, "HNP: back to %s\n",
3df004532 Anatolij Gustschin 2011-05-05 377 otg_state_string(musb->xceiv->state));
550a7375f Felipe Balbi 2008-07-24 378 break;
550a7375f Felipe Balbi 2008-07-24 379 case OTG_STATE_B_HOST:
5c8a86e10 Felipe Balbi 2011-05-11 380 dev_dbg(musb->controller, "HNP: Disabling HR\n");
550a7375f Felipe Balbi 2008-07-24 381 hcd->self.is_b_host = 0;
84e250ffa David Brownell 2009-03-31 382 musb->xceiv->state = OTG_STATE_B_PERIPHERAL;
550a7375f Felipe Balbi 2008-07-24 383 MUSB_DEV_MODE(musb);
550a7375f Felipe Balbi 2008-07-24 @384 reg = musb_readb(mbase, MUSB_POWER);
550a7375f Felipe Balbi 2008-07-24 385 reg |= MUSB_POWER_SUSPENDM;
550a7375f Felipe Balbi 2008-07-24 386 musb_writeb(mbase, MUSB_POWER, reg);
550a7375f Felipe Balbi 2008-07-24 387 /* REVISIT: Start SESSION_REQUEST here? */
550a7375f Felipe Balbi 2008-07-24 388 break;
550a7375f Felipe Balbi 2008-07-24 389 default:
5c8a86e10 Felipe Balbi 2011-05-11 390 dev_dbg(musb->controller, "HNP: Stopping in unknown state %s\n",
3df004532 Anatolij Gustschin 2011-05-05 391 otg_state_string(musb->xceiv->state));
550a7375f Felipe Balbi 2008-07-24 392 }
550a7375f Felipe Balbi 2008-07-24 393
550a7375f Felipe Balbi 2008-07-24 394 /*
550a7375f Felipe Balbi 2008-07-24 395 * When returning to A state after HNP, avoid hub_port_rebounce(),
550a7375f Felipe Balbi 2008-07-24 396 * which cause occasional OPT A "Did not receive reset after connect"
550a7375f Felipe Balbi 2008-07-24 397 * errors.
550a7375f Felipe Balbi 2008-07-24 398 */
749da5f82 Alan Stern 2010-03-04 399 musb->port1_status &= ~(USB_PORT_STAT_C_CONNECTION << 16);
550a7375f Felipe Balbi 2008-07-24 400 }
550a7375f Felipe Balbi 2008-07-24 401
550a7375f Felipe Balbi 2008-07-24 402 /*
550a7375f Felipe Balbi 2008-07-24 403 * Interrupt Service Routine to record USB "global" interrupts.
550a7375f Felipe Balbi 2008-07-24 404 * Since these do not happen often and signify things of
550a7375f Felipe Balbi 2008-07-24 405 * paramount importance, it seems OK to check them individually;
550a7375f Felipe Balbi 2008-07-24 406 * the order of the tests is specified in the manual
550a7375f Felipe Balbi 2008-07-24 407 *
550a7375f Felipe Balbi 2008-07-24 408 * @param musb instance pointer
550a7375f Felipe Balbi 2008-07-24 409 * @param int_usb register contents
550a7375f Felipe Balbi 2008-07-24 410 * @param devctl
550a7375f Felipe Balbi 2008-07-24 411 * @param power
550a7375f Felipe Balbi 2008-07-24 412 */
550a7375f Felipe Balbi 2008-07-24 413
550a7375f Felipe Balbi 2008-07-24 414 static irqreturn_t musb_stage0_irq(struct musb *musb, u8 int_usb,
550a7375f Felipe Balbi 2008-07-24 415 u8 devctl, u8 power)
550a7375f Felipe Balbi 2008-07-24 416 {
550a7375f Felipe Balbi 2008-07-24 417 irqreturn_t handled = IRQ_NONE;
550a7375f Felipe Balbi 2008-07-24 418
5c8a86e10 Felipe Balbi 2011-05-11 419 dev_dbg(musb->controller, "<== Power=%02x, DevCtl=%02x, int_usb=0x%x\n", power, devctl,
550a7375f Felipe Balbi 2008-07-24 420 int_usb);
550a7375f Felipe Balbi 2008-07-24 421
550a7375f Felipe Balbi 2008-07-24 422 /* in host mode, the peripheral may issue remote wakeup.
550a7375f Felipe Balbi 2008-07-24 423 * in peripheral mode, the host may resume the link.
550a7375f Felipe Balbi 2008-07-24 424 * spurious RESUME irqs happen too, paired with SUSPEND.
550a7375f Felipe Balbi 2008-07-24 425 */
550a7375f Felipe Balbi 2008-07-24 426 if (int_usb & MUSB_INTR_RESUME) {
550a7375f Felipe Balbi 2008-07-24 427 handled = IRQ_HANDLED;
5c8a86e10 Felipe Balbi 2011-05-11 428 dev_dbg(musb->controller, "RESUME (%s)\n", otg_state_string(musb->xceiv->state));
550a7375f Felipe Balbi 2008-07-24 429
550a7375f Felipe Balbi 2008-07-24 430 if (devctl & MUSB_DEVCTL_HM) {
aa4714560 Felipe Balbi 2010-03-12 431 void __iomem *mbase = musb->mregs;
aa4714560 Felipe Balbi 2010-03-12 432
84e250ffa David Brownell 2009-03-31 433 switch (musb->xceiv->state) {
550a7375f Felipe Balbi 2008-07-24 434 case OTG_STATE_A_SUSPEND:
550a7375f Felipe Balbi 2008-07-24 435 /* remote wakeup? later, GetPortStatus
550a7375f Felipe Balbi 2008-07-24 436 * will stop RESUME signaling
550a7375f Felipe Balbi 2008-07-24 437 */
550a7375f Felipe Balbi 2008-07-24 438
550a7375f Felipe Balbi 2008-07-24 439 if (power & MUSB_POWER_SUSPENDM) {
550a7375f Felipe Balbi 2008-07-24 440 /* spurious */
550a7375f Felipe Balbi 2008-07-24 441 musb->int_usb &= ~MUSB_INTR_SUSPEND;
5c8a86e10 Felipe Balbi 2011-05-11 442 dev_dbg(musb->controller, "Spurious SUSPENDM\n");
550a7375f Felipe Balbi 2008-07-24 443 break;
550a7375f Felipe Balbi 2008-07-24 444 }
550a7375f Felipe Balbi 2008-07-24 445
550a7375f Felipe Balbi 2008-07-24 446 power &= ~MUSB_POWER_SUSPENDM;
550a7375f Felipe Balbi 2008-07-24 447 musb_writeb(mbase, MUSB_POWER,
550a7375f Felipe Balbi 2008-07-24 448 power | MUSB_POWER_RESUME);
550a7375f Felipe Balbi 2008-07-24 449
550a7375f Felipe Balbi 2008-07-24 450 musb->port1_status |=
550a7375f Felipe Balbi 2008-07-24 451 (USB_PORT_STAT_C_SUSPEND << 16)
550a7375f Felipe Balbi 2008-07-24 452 | MUSB_PORT_STAT_RESUME;
550a7375f Felipe Balbi 2008-07-24 453 musb->rh_timer = jiffies
550a7375f Felipe Balbi 2008-07-24 454 + msecs_to_jiffies(20);
550a7375f Felipe Balbi 2008-07-24 455
84e250ffa David Brownell 2009-03-31 456 musb->xceiv->state = OTG_STATE_A_HOST;
550a7375f Felipe Balbi 2008-07-24 457 musb->is_active = 1;
550a7375f Felipe Balbi 2008-07-24 458 usb_hcd_resume_root_hub(musb_to_hcd(musb));
550a7375f Felipe Balbi 2008-07-24 459 break;
550a7375f Felipe Balbi 2008-07-24 460 case OTG_STATE_B_WAIT_ACON:
84e250ffa David Brownell 2009-03-31 461 musb->xceiv->state = OTG_STATE_B_PERIPHERAL;
550a7375f Felipe Balbi 2008-07-24 462 musb->is_active = 1;
550a7375f Felipe Balbi 2008-07-24 463 MUSB_DEV_MODE(musb);
550a7375f Felipe Balbi 2008-07-24 464 break;
550a7375f Felipe Balbi 2008-07-24 465 default:
550a7375f Felipe Balbi 2008-07-24 466 WARNING("bogus %s RESUME (%s)\n",
550a7375f Felipe Balbi 2008-07-24 467 "host",
3df004532 Anatolij Gustschin 2011-05-05 468 otg_state_string(musb->xceiv->state));
550a7375f Felipe Balbi 2008-07-24 469 }
550a7375f Felipe Balbi 2008-07-24 470 } else {
84e250ffa David Brownell 2009-03-31 471 switch (musb->xceiv->state) {
550a7375f Felipe Balbi 2008-07-24 472 case OTG_STATE_A_SUSPEND:
550a7375f Felipe Balbi 2008-07-24 473 /* possibly DISCONNECT is upcoming */
84e250ffa David Brownell 2009-03-31 474 musb->xceiv->state = OTG_STATE_A_HOST;
550a7375f Felipe Balbi 2008-07-24 475 usb_hcd_resume_root_hub(musb_to_hcd(musb));
550a7375f Felipe Balbi 2008-07-24 476 break;
550a7375f Felipe Balbi 2008-07-24 477 case OTG_STATE_B_WAIT_ACON:
550a7375f Felipe Balbi 2008-07-24 478 case OTG_STATE_B_PERIPHERAL:
550a7375f Felipe Balbi 2008-07-24 479 /* disconnect while suspended? we may
550a7375f Felipe Balbi 2008-07-24 480 * not get a disconnect irq...
550a7375f Felipe Balbi 2008-07-24 481 */
550a7375f Felipe Balbi 2008-07-24 482 if ((devctl & MUSB_DEVCTL_VBUS)
550a7375f Felipe Balbi 2008-07-24 483 != (3 << MUSB_DEVCTL_VBUS_SHIFT)
550a7375f Felipe Balbi 2008-07-24 484 ) {
550a7375f Felipe Balbi 2008-07-24 485 musb->int_usb |= MUSB_INTR_DISCONNECT;
550a7375f Felipe Balbi 2008-07-24 486 musb->int_usb &= ~MUSB_INTR_SUSPEND;
550a7375f Felipe Balbi 2008-07-24 487 break;
550a7375f Felipe Balbi 2008-07-24 488 }
550a7375f Felipe Balbi 2008-07-24 489 musb_g_resume(musb);
550a7375f Felipe Balbi 2008-07-24 490 break;
550a7375f Felipe Balbi 2008-07-24 491 case OTG_STATE_B_IDLE:
550a7375f Felipe Balbi 2008-07-24 492 musb->int_usb &= ~MUSB_INTR_SUSPEND;
550a7375f Felipe Balbi 2008-07-24 493 break;
550a7375f Felipe Balbi 2008-07-24 494 default:
550a7375f Felipe Balbi 2008-07-24 495 WARNING("bogus %s RESUME (%s)\n",
550a7375f Felipe Balbi 2008-07-24 496 "peripheral",
3df004532 Anatolij Gustschin 2011-05-05 497 otg_state_string(musb->xceiv->state));
550a7375f Felipe Balbi 2008-07-24 498 }
550a7375f Felipe Balbi 2008-07-24 499 }
550a7375f Felipe Balbi 2008-07-24 500 }
550a7375f Felipe Balbi 2008-07-24 501
550a7375f Felipe Balbi 2008-07-24 502 /* see manual for the order of the tests */
550a7375f Felipe Balbi 2008-07-24 503 if (int_usb & MUSB_INTR_SESSREQ) {
aa4714560 Felipe Balbi 2010-03-12 504 void __iomem *mbase = musb->mregs;
aa4714560 Felipe Balbi 2010-03-12 505
19aab56c7 Heikki Krogerus 2010-10-29 506 if ((devctl & MUSB_DEVCTL_VBUS) == MUSB_DEVCTL_VBUS
19aab56c7 Heikki Krogerus 2010-10-29 507 && (devctl & MUSB_DEVCTL_BDEVICE)) {
5c8a86e10 Felipe Balbi 2011-05-11 508 dev_dbg(musb->controller, "SessReq while on B state\n");
a6038ee76 Heikki Krogerus 2010-09-24 509 return IRQ_HANDLED;
a6038ee76 Heikki Krogerus 2010-09-24 510 }
a6038ee76 Heikki Krogerus 2010-09-24 511
5c8a86e10 Felipe Balbi 2011-05-11 512 dev_dbg(musb->controller, "SESSION_REQUEST (%s)\n",
3df004532 Anatolij Gustschin 2011-05-05 513 otg_state_string(musb->xceiv->state));
550a7375f Felipe Balbi 2008-07-24 514
550a7375f Felipe Balbi 2008-07-24 515 /* IRQ arrives from ID pin sense or (later, if VBUS power
550a7375f Felipe Balbi 2008-07-24 516 * is removed) SRP. responses are time critical:
550a7375f Felipe Balbi 2008-07-24 517 * - turn on VBUS (with silicon-specific mechanism)
550a7375f Felipe Balbi 2008-07-24 518 * - go through A_WAIT_VRISE
550a7375f Felipe Balbi 2008-07-24 519 * - ... to A_WAIT_BCON.
550a7375f Felipe Balbi 2008-07-24 520 * a_wait_vrise_tmout triggers VBUS_ERROR transitions
550a7375f Felipe Balbi 2008-07-24 521 */
550a7375f Felipe Balbi 2008-07-24 @522 musb_writeb(mbase, MUSB_DEVCTL, MUSB_DEVCTL_SESSION);
550a7375f Felipe Balbi 2008-07-24 523 musb->ep0_stage = MUSB_EP0_START;
84e250ffa David Brownell 2009-03-31 524 musb->xceiv->state = OTG_STATE_A_IDLE;
550a7375f Felipe Balbi 2008-07-24 525 MUSB_HST_MODE(musb);
:::::: The code at line 323 was first introduced by commit
:::::: 550a7375fe720924241f0eb76e4a5c1a3eb8c32f USB: Add MUSB and TUSB support
:::::: TO: Felipe Balbi <felipe.balbi@xxxxxxxxx>
:::::: CC: Greg Kroah-Hartman <gregkh@xxxxxxx>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: Binary data