/***************************************************************************/
/***************************************************************************/
-#define VERSION "1.00-openwrt_diff"
+#define VERSION "1.00-openwrt_diff-v1"
#define COPYRIGHT "(c) 2005, 2006 Axis Communications AB"
#define DESCRIPTION "ETRAX 100LX USB Host Controller"
first_ep = &TxIsocEPList[0];
break;
default:
- warn("Cannot dump unknown traffic type");
return;
}
ep = first_ep;
/* We definitely don't care about these ones. Besides, they are
always disabled, so any possible disabling caused by the
epid attention interrupt is irrelevant. */
- warn("Got epid_attn for INVALID_EPID or DUMMY_EPID (%d).", epid);
continue;
}
DBFENTER;
ASSERT(crisv10_hcd);
- irq_dbg("ctr_status_irq, controller status: %s\n",
- hcd_status_to_str(reg->r_usb_status));
+/* irq_dbg("ctr_status_irq, controller status: %s\n",
+ hcd_status_to_str(reg->r_usb_status));*/
/* FIXME: What should we do if we get ourun or perror? Dump the EP and SB
list for the corresponding epid? */
/* Check the busy bit of USB controller in Etrax */
while((*R_USB_COMMAND & IO_MASK(R_USB_COMMAND, busy)) &&
(timeout-- > 0));
- if(timeout == 0) {
- warn("Timeout while waiting for USB controller to be idle\n");
- }
}
/* reset host controller */
while((rh.wPortStatusPrev[port] &
IO_STATE(R_USB_RH_PORT_STATUS_1, enabled, yes)) &&
(timeout-- > 0));
- if(timeout == 0) {
- warn("Timeout while waiting for port %d to become disabled\n", port);
- }
+
/* clear disable flag in special register */
*usb_portx_disable = IO_STATE(R_USB_PORT1_DISABLE, disable, no);
rh_info("Physical port %d disabled\n", port+1);
while((*R_DMA_CH8_SUB0_EP ==
virt_to_phys(&TxBulkEPList[epid])) &&
(timeout-- > 0));
- if(timeout == 0) {
- warn("Timeout while waiting for DMA-TX-Bulk to leave EP for"
- " epid:%d\n", epid);
- }
+
}
break;
while((*R_DMA_CH8_SUB1_EP ==
virt_to_phys(&TxCtrlEPList[epid])) &&
(timeout-- > 0));
- if(timeout == 0) {
- warn("Timeout while waiting for DMA-TX-Ctrl to leave EP for"
- " epid:%d\n", epid);
- }
}
break;
while((*R_DMA_CH8_SUB3_EP == virt_to_phys(&TxIsocEPList[epid])) &&
(timeout-- > 0));
- if(timeout == 0) {
- warn("Timeout while waiting for DMA-TX-Isoc to leave EP for"
- " epid:%d\n", epid);
- }
}
break;
}
/* Ah, the luxury of busy-wait. */
while((*R_DMA_CH8_SUB3_EP == virt_to_phys(&TxIsocEPList[epid])) &&
(timeout-- > 0));
- if(timeout == 0) {
- warn("Timeout while waiting for DMA-TX-Isoc to leave EP for epid:%d\n", epid);
- }
}
/* Unlink SB to say that epid is finished. */
nop();
while((*R_USB_EPT_DATA & IO_MASK(R_USB_EPT_DATA, hold)) &&
(timeout-- > 0));
- if(timeout == 0) {
- warn("Timeout while waiting for epid:%d to drop hold\n", epid);
- }
/* This will, among other things, set the valid field to 0. */
*R_USB_EPT_DATA = 0;
spin_unlock_irqrestore(&etrax_epid_lock, flags);
/* Wait until the DMA is no longer at this descriptor. */
while((*R_DMA_CH8_SUB2_EP == virt_to_phys(unlink_ep)) &&
(timeout-- > 0));
- if(timeout == 0) {
- warn("Timeout while waiting for DMA-TX-Intr to leave unlink EP\n");
- }
-
+
count++;
}
curr_ep = phys_to_virt(curr_ep->next);
" needs to be 32\n");
return -EPERM;
}
-
- hcd = usb_create_hcd(&crisv10_hc_driver, dev, dev->bus_id);
+
+ hcd = usb_create_hcd(&crisv10_hc_driver, dev, dev_name(dev));
if (!hcd)
return -ENOMEM;
/* Module hooks */
module_init(module_hcd_init);
module_exit(module_hcd_exit);
+