Hello. On 25-03-2011 12:11, Andiry Xu wrote:
This patch adds warm reset support to xhci hub control. It handles Set BH_PORT_RESET and Clear C_BH_PORT_RESET request from usbcore. Note warm reset is called BH reset in USB3.0 specification.
Signed-off-by: Andiry Xu<andiry.xu@xxxxxxx> --- drivers/usb/host/xhci-hub.c | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/drivers/usb/host/xhci-hub.c b/drivers/usb/host/xhci-hub.c index a78f2eb..da53b75 100644 --- a/drivers/usb/host/xhci-hub.c +++ b/drivers/usb/host/xhci-hub.c
[...]
@@ -557,6 +561,14 @@ int xhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, temp = xhci_readl(xhci, port_array[wIndex]); xhci_dbg(xhci, "set port reset, actual port %d status = 0x%x\n", wIndex, temp); break; + case USB_PORT_FEAT_BH_PORT_RESET: + temp = (temp | PORT_WR);
Strange. Why not: temp |= PORT_WR; WBR, Sergei -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html