[PATCH 1/2] USB/host: Use existing macros instead of hard-coded values in uhci-debug.c

2013-10-04 Thread Deng-Cheng Zhu
From: Deng-Cheng Zhu Now that UHCI IO registers have been defined in uhci-hcd.h, use them. Reviewed-by: James Hogan Signed-off-by: Deng-Cheng Zhu --- drivers/usb/host/uhci-debug.c | 16 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/usb/host/uhci

[PATCH 0/2] USB/host: Cleanups for UHCI

2013-10-04 Thread Deng-Cheng Zhu
This series contains hardcoding-to-macro changes in uhci-debug.c and removal of the redundant OK() macro in uhci-hub.c. Deng-Cheng Zhu (2): USB/host: Use existing macros instead of hard-coded values in uhci-debug.c USB/host: Cleaning up the OK macro in uhci-hub.c drivers/usb/host/uhci

[PATCH 2/2] USB/host: Cleaning up the OK macro in uhci-hub.c

2013-10-04 Thread Deng-Cheng Zhu
From: Deng-Cheng Zhu The logic "len = (x)" in OK(x) is dead. Clean it up. Reviewed-by: James Hogan Signed-off-by: Deng-Cheng Zhu --- drivers/usb/host/uhci-hub.c | 30 ++ 1 files changed, 14 insertions(+), 16 deletions(-) diff --git a/drivers/usb/host/

[PATCH v2 0/2] Bugfix of uhci_hub_control() and cleanups

2013-10-05 Thread Deng-Cheng Zhu
addition to the OK macro removal. -- Deng-Cheng Zhu (2): USB/host: Use existing macros instead of hard-coded values in uhci-debug.c USB/host: Bugfix: Return length of copied buffer in uhci_hub_control() drivers/usb/host/uhci-debug.c | 16 drivers/usb/host/uhci

[PATCH v2 2/2] USB/host: Bugfix: Return length of copied buffer in uhci_hub_control()

2013-10-05 Thread Deng-Cheng Zhu
From: Deng-Cheng Zhu In addition to the error statuses -ETIMEDOUT and -EPIPE, uhci_hub_control() needs to return the length of copied buffer when appropriate, so that the returned status of ->hub_control() in rh_call_control() in the USB core HCD can be properly handled. This patch also remo

[PATCH v2 1/2] USB/host: Use existing macros instead of hard-coded values in uhci-debug.c

2013-10-05 Thread Deng-Cheng Zhu
From: Deng-Cheng Zhu Now that UHCI IO registers have been defined in uhci-hcd.h, use them. Reviewed-by: James Hogan Acked-by: Alan Stern Signed-off-by: Deng-Cheng Zhu --- drivers/usb/host/uhci-debug.c | 16 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a

Re: Regression cause by commit f1125f81 (from Deng-Cheng Zhu)

2014-03-24 Thread Deng-Cheng Zhu
22, 2014 8:07AM *To:* Dâniel Fraga <mailto:frag...@gmail.com> *Cc:* dengcheng.zhu <mailto:dengcheng@imgtec.com>, James Hogan <mailto:james.ho...@imgtec.com>, USB list <mailto:linux-usb@vger.kernel.org> *Subject:* Re: Regression cause by commit f1125f81 (from Deng-Cheng Zhu)