isp1362-hcd.c (27729aadd31dafddaaf64c24f8ef6d0ff750f3aa) | isp1362-hcd.c (749da5f82fe33ff68dd4aa1a5e35cd9aa6246dab) |
---|---|
1/* 2 * ISP1362 HCD (Host Controller Driver) for USB. 3 * 4 * Copyright (C) 2005 Lothar Wassmann <LW@KARO-electronics.de> 5 * 6 * Derived from the SL811 HCD, rewritten for ISP116x. 7 * Copyright (C) 2005 Olav Kongas <ok@artecdesign.ee> 8 * --- 1251 unchanged lines hidden (view full) --- 1260 ep = kzalloc(sizeof *ep, mem_flags); 1261 if (!ep) 1262 return -ENOMEM; 1263 } 1264 spin_lock_irqsave(&isp1362_hcd->lock, flags); 1265 1266 /* don't submit to a dead or disabled port */ 1267 if (!((isp1362_hcd->rhport[0] | isp1362_hcd->rhport[1]) & | 1/* 2 * ISP1362 HCD (Host Controller Driver) for USB. 3 * 4 * Copyright (C) 2005 Lothar Wassmann <LW@KARO-electronics.de> 5 * 6 * Derived from the SL811 HCD, rewritten for ISP116x. 7 * Copyright (C) 2005 Olav Kongas <ok@artecdesign.ee> 8 * --- 1251 unchanged lines hidden (view full) --- 1260 ep = kzalloc(sizeof *ep, mem_flags); 1261 if (!ep) 1262 return -ENOMEM; 1263 } 1264 spin_lock_irqsave(&isp1362_hcd->lock, flags); 1265 1266 /* don't submit to a dead or disabled port */ 1267 if (!((isp1362_hcd->rhport[0] | isp1362_hcd->rhport[1]) & |
1268 (1 << USB_PORT_FEAT_ENABLE)) || | 1268 USB_PORT_STAT_ENABLE) || |
1269 !HC_IS_RUNNING(hcd->state)) { 1270 kfree(ep); 1271 retval = -ENODEV; 1272 goto fail_not_linked; 1273 } 1274 1275 retval = usb_hcd_link_urb_to_ep(hcd, urb); 1276 if (retval) { --- 1613 unchanged lines hidden --- | 1269 !HC_IS_RUNNING(hcd->state)) { 1270 kfree(ep); 1271 retval = -ENODEV; 1272 goto fail_not_linked; 1273 } 1274 1275 retval = usb_hcd_link_urb_to_ep(hcd, urb); 1276 if (retval) { --- 1613 unchanged lines hidden --- |