Re: issues with commit c1da59dad0eb ("cdc-wdm: Clear read pipeline in case of error")

2017-04-24 Thread Robert Foss
On 2017-04-24 08:02 AM, Bjørn Mork wrote: Aleksander Morgado writes: On Thu, Apr 20, 2017 at 10:32 AM, Bjørn Mork wrote: Sorry for being much too late here, but during recent attemts to debug issues caused by my commit 833415a3e781 ("cdc-wdm: fix

Re: issues with commit c1da59dad0eb ("cdc-wdm: Clear read pipeline in case of error")

2017-04-20 Thread Robert Foss
Hi Björn, Thanks for the thorough and explicit feedback, it was rather helpful. On 2017-04-20 04:32 AM, Bjørn Mork wrote: Hello Robert, Sorry for being much too late here, but during recent attemts to debug issues caused by my commit 833415a3e781 ("cdc-wdm: fix "out-of-sync" due to missing

[PATCH RESEND v8] usb: xhci: plat: Enable async suspend/resume

2017-02-20 Thread Robert Foss
d late/resumed early), allow it to suspend and resume asynchronously. Signed-off-by: Andrew Bresticker <abres...@chromium.org> Tested-by: Andrew Bresticker <abres...@chromium.org> Tested-by: Robert Foss <robert.f...@collabora.com> Signed-off-by: Robert Foss <robert.f...@collabora.co

[PATCH RESEND v7 0/1] usb: xhci: plat: Enable runtime PM

2017-02-10 Thread Robert Foss
This series enables runtime PM and asynchronous resume/suspend support for xhci-plat devices. Changes since v1: - Added Signed-off-by: Robert Foss <robert.f...@collabora.com> - Added proper metadata tags to series Changes since v2: - Added missing changelog to cover-letter - Added

[PATCH RESEND v7 1/1] usb: xhci: plat: Enable async suspend/resume

2017-02-10 Thread Robert Foss
d late/resumed early), allow it to suspend and resume asynchronously. Signed-off-by: Andrew Bresticker <abres...@chromium.org> Tested-by: Andrew Bresticker <abres...@chromium.org> Tested-by: Robert Foss <robert.f...@collabora.com> Signed-off-by: Robert Foss <robert.f...@collabora.com&

[PATCH i-g-t v7 0/1] usb: xhci: plat: Enable runtime PM

2017-01-25 Thread Robert Foss
This series enables runtime PM and asynchronous resume/suspend support for xhci-plat devices. Due to Baolin Wangs series[1] part 1/2 of this series is now dropped. [1] https://lkml.org/lkml/2016/12/13/32 Andrew Bresticker (1): usb: xhci: plat: Enable async suspend/resume

[PATCH i-g-t v7 1/1] usb: xhci: plat: Enable async suspend/resume

2017-01-25 Thread Robert Foss
d late/resumed early), allow it to suspend and resume asynchronously. Signed-off-by: Andrew Bresticker <abres...@chromium.org> Tested-by: Andrew Bresticker <abres...@chromium.org> Tested-by: Robert Foss <robert.f...@collabora.com> Signed-off-by: Robert Foss <robert.f...@collabora.com&

Re: [PATCH v5 2/2] usb: dwc3: core: Support the dwc3 host suspend/resume

2017-01-25 Thread Robert Foss
Looks good to me. Feel free to add my r-b. Rob. On 2016-12-13 02:49 AM, Baolin Wang wrote: For some mobile devices with strict power management, we also want to suspend the host when the slave is detached for power saving. Thus we add the host suspend/resume functions to support this

Re: [PATCH v5 1/2] usb: host: plat: Enable xhci plat runtime PM

2017-01-25 Thread Robert Foss
Looks good to me. Feel free to add my r-b. On 2016-12-13 02:49 AM, Baolin Wang wrote: Enable the xhci plat runtime PM for parent device to suspend/resume xhci. Also call pm_runtime_get_noresume() in probe() function in case the parent device doesn't call suspend/resume callback by runtime PM

Re: [PATCH v3 5/5] net: asix: autoneg will set WRITE_MEDIUM reg

2016-09-06 Thread Robert Foss
On 2016-09-06 12:41 PM, Grant Grundler wrote: On Thu, Sep 1, 2016 at 10:02 AM, Eric Dumazet <eric.duma...@gmail.com> wrote: On Thu, 2016-09-01 at 12:47 -0400, Robert Foss wrote: I'm not quite sure how the first From line was added, it should not have been. Grant Grundler is most defi

Re: [PATCH v3 5/5] net: asix: autoneg will set WRITE_MEDIUM reg

2016-09-01 Thread Robert Foss
On 2016-09-01 12:43 PM, Eric Dumazet wrote: On Mon, 2016-08-29 at 09:32 -0400, robert.f...@collabora.com wrote: From: Robert Foss <robert.f...@collabora.com> From: Grant Grundler <grund...@chromium.org> The miii_nway_restart() causes a PHY link change activity and ax8877

Re: [PATCH v3 0/5] net/usb: asix driver improvements

2016-08-31 Thread Robert Foss
o "Command failed" fi done iperf3 UDP: sudo iperf3 -c 192.168.0.28 -u -b 100M -t 0 On 2016-08-29 09:32 AM, robert.f...@collabora.com wrote: From: Robert Foss <robert.f...@collabora.com> This is a resubmission of v3, since the netdev mailinlist was not se

[PATCH v3 3/5] net: asix: Fix AX88772x resume failures

2016-08-29 Thread robert . foss
From: Robert Foss <robert.f...@collabora.com> From: Allan Chou <al...@asix.com.tw> The change fixes AX88772x resume failure by - Restore incorrect AX88772A PHY registers when resetting - Need to stop MAC operation when suspending - Need to restart MII when restoring PHY Signed-o

[PATCH v3 2/5] net: asix: Avoid looping when the device is disconnected

2016-08-29 Thread robert . foss
From: Vincent Palatin <vpala...@chromium.org> Check the answers from the USB stack and avoid re-sending multiple times the request if the device has disappeared. Signed-off-by: Vincent Palatin <vpala...@chromium.org> Signed-off-by: Robert Foss <robert.f...@collabora.com> Test

[PATCH v3 0/5] net/usb: asix driver improvements

2016-08-29 Thread robert . foss
From: Robert Foss <robert.f...@collabora.com> This is a resubmission of v3, since the netdev mailinlist was not sent the previous submission. This series improves power management of the asix driver. - Suspend/resume support is improved to save needed registers. - Device disconn

[PATCH v3 5/5] net: asix: autoneg will set WRITE_MEDIUM reg

2016-08-29 Thread robert . foss
ch may be different from the negotiation result. So do this first. Ignore the ret value since it's ignored in XXX_link_reset() functions. Signed-off-by: Grant Grundler <grund...@google.com> Signed-off-by: Robert Foss <robert.f...@collabora.com> Tested-by: Robert Foss <robe

[PATCH v3 3/5] net: asix: Fix AX88772x resume failures

2016-08-29 Thread robert . foss
f-by: Robert Foss <robert.f...@collabora.com> Tested-by: Robert Foss <robert.f...@collabora.com> --- drivers/net/usb/asix_devices.c | 47 +- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/drivers/net/usb/asix_devices.c b/drivers/net/

[PATCH v3 5/5] net: asix: autoneg will set WRITE_MEDIUM reg

2016-08-29 Thread robert . foss
From: Robert Foss <robert.f...@collabora.com> From: Grant Grundler <grund...@chromium.org> The miii_nway_restart() causes a PHY link change activity and ax88772_link_reset will be called. link_reset will set AX_CMD_WRITE_MEDIUM_MODE register correctly. The asix_write_medium_m

[PATCH v3 4/5] net: asix: see 802.3 spec for phy reset

2016-08-29 Thread robert . foss
ned-off-by: Grant Grundler <grund...@chromium.org> Signed-off-by: Robert Foss <robert.f...@collabora.com> Tested-by: Robert Foss <robert.f...@collabora.com> --- drivers/net/usb/asix_devices.c | 27 --- 1 file changed, 24 insertions(+), 3 deletions(-) diff --gi

[PATCH v3 1/5] net: asix: Add in_pm parameter

2016-08-29 Thread robert . foss
Reset HW in resume function to ensure the PHY works correctly. Signed-off-by: Freddy Xin <fre...@asix.com.tw> Signed-off-by: Robert Foss <robert.f...@collabora.com> Tested-by: Robert Foss <robert.f...@collabora.com> --- drivers/net/usb/asix.h | 40 +++-- drivers/net/

[PATCH v3 4/5] net: asix: see 802.3 spec for phy reset

2016-08-29 Thread robert . foss
From: Robert Foss <robert.f...@collabora.com> From: Grant Grundler <grund...@chromium.org> https://lkml.org/lkml/2014/11/11/947 Ben Hutchings is correct. IEEE 802.3 spec section "22.2.4.1.1 Reset" requires up to 500ms delay. Mitigate the "max" delay by pol

[PATCH v3 2/5] net: asix: Avoid looping when the device is disconnected

2016-08-29 Thread robert . foss
From: Robert Foss <robert.f...@collabora.com> From: Vincent Palatin <vpala...@chromium.org> Check the answers from the USB stack and avoid re-sending multiple times the request if the device has disappeared. Signed-off-by: Vincent Palatin <vpala...@chromium.org> Signed-o

Re: [PACTH,v6,1/2] usb: xhci: plat: Enable runtime PM

2016-08-24 Thread Robert Foss
: From: Robert Foss <robert.f...@collabora.com> Enable runtime PM for the xhci-plat device so that the parent device may implement runtime PM. Signed-off-by: Robert Foss <robert.f...@collabora.com> Tested-by: Robert Foss <robert.f...@collabora.com> --- drivers/usb/hos

[PACTH v6 2/2] usb: xhci: plat: Enable async suspend/resume

2016-08-10 Thread robert . foss
d late/resumed early), allow it to suspend and resume asynchronously. Signed-off-by: Andrew Bresticker <abres...@chromium.org> Tested-by: Andrew Bresticker <abres...@chromium.org> Tested-by: Robert Foss <robert.f...@collabora.com> Signed-off-by: Robert Foss <robert.f...@collabora.com&

[PACTH v6 0/2] usb: xhci: plat: Enable runtime PM

2016-08-10 Thread robert . foss
From: Robert Foss <robert.f...@collabora.com> This series enables runtime PM and asynchronous resume/suspend support for xhci-plat devices. Changes since v1: - Added Signed-off-by: Robert Foss <robert.f...@collabora.com> - Added proper metadata tags to series Changes since v2: - A

[PACTH v6 1/2] usb: xhci: plat: Enable runtime PM

2016-08-10 Thread robert . foss
From: Robert Foss <robert.f...@collabora.com> Enable runtime PM for the xhci-plat device so that the parent device may implement runtime PM. Signed-off-by: Robert Foss <robert.f...@collabora.com> Tested-by: Robert Foss <robert.f...@collabora.com> --- drivers/usb/hos

[PACTH v5 2/2] usb: xhci: plat: Enable async suspend/resume

2016-08-09 Thread robert . foss
d late/resumed early), allow it to suspend and resume asynchronously. Signed-off-by: Andrew Bresticker <abres...@chromium.org> Tested-by: Andrew Bresticker <abres...@chromium.org> Tested-by: Robert Foss <robert.f...@collabora.com> Signed-off-by: Robert Foss <robert.f...@collabora.com&

[PACTH v5 1/2] usb: xhci: plat: Enable runtime PM

2016-08-09 Thread robert . foss
From: Robert Foss <robert.f...@collabora.com> Enable runtime PM for the xhci-plat device so that the parent device may implement runtime PM. Signed-off-by: Robert Foss <robert.f...@collabora.com> Tested-by: Robert Foss <robert.f...@collabora.com> --- drivers/usb/hos

[PACTH v5 0/2] usb: xhci: plat: Enable PM, async resume/suspend

2016-08-09 Thread robert . foss
From: Robert Foss <robert.f...@collabora.com> This series enables runtime PM and asynchronous resume/suspend support for xhci-plat devices. Changes since v1: - Added Signed-off-by: Robert Foss <robert.f...@collabora.com> - Added proper metadata tags to series Changes since v2: - A

[PACTH v4 1/2] usb: xhci: plat: Enable runtime PM

2016-08-09 Thread robert . foss
From: Robert Foss <robert.f...@collabora.com> Enable runtime PM for the xhci-plat device so that the parent device may implement runtime PM. Signed-off-by: Robert Foss <robert.f...@collabora.com> Tested-by: Robert Foss <robert.f...@collabora.com> --- drivers/usb/hos

[PACTH v4 0/2] usb: xhci: plat: Enable PM, async resume/suspend

2016-08-09 Thread robert . foss
From: Robert Foss <robert.f...@collabora.com> This series enables runtime PM and asynchronous resume/suspend support for xhci-plat devices. Changes since v1: - Added Signed-off-by: Robert Foss <robert.f...@collabora.com> - Added proper metadata tags to series Changes since v2: - A

[PACTH v4 2/2] usb: xhci: plat: Enable async suspend/resume

2016-08-09 Thread robert . foss
d late/resumed early), allow it to suspend and resume asynchronously. Signed-off-by: Andrew Bresticker <abres...@chromium.org> Tested-by: Andrew Bresticker <abres...@chromium.org> Tested-by: Robert Foss <robert.f...@collabora.com> Signed-off-by: Robert Foss <robert.f...@collabora.com&

Re: [PACTH v3 1/2] usb: xhci: plat: Enable runtime PM

2016-08-09 Thread Robert Foss
g> Tested-by: Robert Foss <robert.f...@collabora.com> Signed-off-by: Robert Foss <robert.f...@collabora.com> --- drivers/usb/host/xhci-plat.c | 24 ++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/x

Re: [PACTH v2] cdc-wdm: Clear read pipeline in case of error

2016-08-09 Thread Robert Foss
On 2016-08-09 09:51 AM, Greg KH wrote: On Mon, Aug 08, 2016 at 11:48:52AM -0400, robert.f...@collabora.com wrote: From: Robert Foss <robert.f...@collabora.com> Implemented queued response handling. This queue is processed every time the WDM_READ flag is cleared. In case of a read

[PACTH v3 1/2] usb: xhci: plat: Enable runtime PM

2016-08-08 Thread robert . foss
From: Andrew Bresticker <abres...@chromium.org> Enable runtime PM for the xhci-plat device so that the parent device may implement runtime PM. Signed-off-by: Andrew Bresticker <abres...@chromium.org> Tested-by: Robert Foss <robert.f...@collabora.com> Signed-off-by: Rob

[PACTH v3 2/2] usb: xhci: plat: Enable async suspend/resume

2016-08-08 Thread robert . foss
d late/resumed early), allow it to suspend and resume asynchronously. Signed-off-by: Andrew Bresticker <abres...@chromium.org> Tested-by: Andrew Bresticker <abres...@chromium.org> Tested-by: Robert Foss <robert.f...@collabora.com> Signed-off-by: Robert Foss <robert.f...@collabora.com&

[PACTH v3 0/2] usb: xhci: plat: Enable PM, async resume/suspend

2016-08-08 Thread robert . foss
From: Robert Foss <robert.f...@collabora.com> This series enables runtime PM and asynchronous resume/suspend support for xhci-plat devices. This is a resumbmission of v3. Changes since v1: - Added Signed-off-by: Robert Foss <robert.f...@collabora.com> - Added proper metadata ta

[PACTH v2] cdc-wdm: Clear read pipeline in case of error

2016-08-08 Thread robert . foss
From: Robert Foss <robert.f...@collabora.com> Implemented queued response handling. This queue is processed every time the WDM_READ flag is cleared. In case of a read error, userspace may not actually read the data, since the driver returns an error through wdm_poll. After this, the unde

Re: [PACTH v1] cdc-wdm: Clear read pipeline in case of error

2016-08-08 Thread Robert Foss
On 2016-08-07 04:59 AM, Oliver Neukum wrote: On Thu, 2016-08-04 at 13:44 -0400, Robert Foss wrote: On 2016-08-03 06:39 AM, Oliver Neukum wrote: On Tue, 2016-08-02 at 10:37 -0400, Robert Foss wrote: How can that depend on what we return to user space? In the driver we can continue just

Re: [PACTH v1] cdc-wdm: Clear read pipeline in case of error

2016-08-04 Thread Robert Foss
On 2016-08-03 06:39 AM, Oliver Neukum wrote: On Tue, 2016-08-02 at 10:37 -0400, Robert Foss wrote: On 2016-08-02 09:59 AM, Oliver Neukum wrote: On Tue, 2016-08-02 at 09:54 -0400, Robert Foss wrote: On 2016-08-02 08:23 AM, Oliver Neukum wrote: On Thu, 2016-07-28 at 14:19 -0400, robert.f

Re: [PACTH v1] cdc-wdm: Clear read pipeline in case of error

2016-08-02 Thread Robert Foss
On 2016-08-02 09:59 AM, Oliver Neukum wrote: On Tue, 2016-08-02 at 09:54 -0400, Robert Foss wrote: On 2016-08-02 08:23 AM, Oliver Neukum wrote: On Thu, 2016-07-28 at 14:19 -0400, robert.f...@collabora.com wrote: From: Prathmesh Prabhu <ppra...@chromium.org> Implemented queued re

Re: [PACTH v1] cdc-wdm: Clear read pipeline in case of error

2016-08-02 Thread Robert Foss
On 2016-08-02 08:23 AM, Oliver Neukum wrote: On Thu, 2016-07-28 at 14:19 -0400, robert.f...@collabora.com wrote: From: Prathmesh Prabhu Implemented queued response handling. This queue is processed every time the WDM_READ flag is cleared. In case of a read error,

[PACTH v3 0/2] usb: xhci: plat: Enable PM, async resume/suspend

2016-07-29 Thread robert . foss
From: Robert Foss <robert.f...@collabora.com> This series enables runtime PM and asynchronous resume/suspend support for xhci-plat devices. Changes since v1: - Added Signed-off-by: Robert Foss <robert.f...@collabora.com> - Added proper metadata tags to series. Changes since v2: - A

[PACTH v3 1/2] usb: xhci: plat: Enable runtime PM

2016-07-29 Thread robert . foss
From: Andrew Bresticker <abres...@chromium.org> Enable runtime PM for the xhci-plat device so that the parent device may implement runtime PM. Signed-off-by: Andrew Bresticker <abres...@chromium.org> Tested-by: Robert Foss <robert.f...@collabora.com> Signed-off-by: Rob

[PACTH v3 2/2] usb: xhci: plat: Enable async suspend/resume

2016-07-29 Thread robert . foss
d late/resumed early), allow it to suspend and resume asynchronously. Signed-off-by: Andrew Bresticker <abres...@chromium.org> Tested-by: Andrew Bresticker <abres...@chromium.org> Tested-by: Robert Foss <robert.f...@collabora.com> Signed-off-by: Robert Foss <robert.f...@collabora.com&

Re: [PACTH v1 1/2] usb: xhci: plat: Enable runtime PM

2016-07-29 Thread Robert Foss
g> Tested-by: Robert Foss <robert.f...@collabora.com> Signed-off-by: Robert Foss <robert.f...@collabora.com> --- drivers/usb/host/xhci-plat.c | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/x

Re: [PACTH v1 0/2] usb: xhci: plat: Enable PM, async resume/suspend

2016-07-28 Thread Robert Foss
This series should be labelled v2 instead of v1. This series enables runtime PM and asynchronous resume/suspend support for xhci-plat devices. Andrew Bresticker (2): usb: xhci: plat: Enable runtime PM usb: xhci: plat: Enable async suspend/resume drivers/usb/host/xhci-plat.c | 20

[PACTH v1 1/2] usb: xhci: plat: Enable runtime PM

2016-07-28 Thread robert . foss
From: Andrew Bresticker <abres...@chromium.org> Enable runtime PM for the xhci-plat device so that the parent device may implement runtime PM. Signed-off-by: Andrew Bresticker <abres...@chromium.org> Tested-by: Robert Foss <robert.f...@collabora.com> Signed-off-by: Rob

[PACTH v1 2/2] usb: xhci: plat: Enable async suspend/resume

2016-07-28 Thread robert . foss
d late/resumed early), allow it to suspend and resume asynchronously. Signed-off-by: Andrew Bresticker <abres...@chromium.org> Tested-by: Andrew Bresticker <abres...@chromium.org> Tested-by: Robert Foss <robert.f...@collabora.com> Signed-off-by: Robert Foss <robert.f...@collabora.com&

[PACTH v1 0/2] usb: xhci: plat: Enable PM, async resume/suspend

2016-07-28 Thread robert . foss
From: Robert Foss <robert.f...@collabora.com> This series enables runtime PM and asynchronous resume/suspend support for xhci-plat devices. Andrew Bresticker (2): usb: xhci: plat: Enable runtime PM usb: xhci: plat: Enable async suspend/resume drivers/usb/host/xhci-plat.

[PACTH v1] cdc-wdm: Clear read pipeline in case of error

2016-07-28 Thread robert . foss
(or go through the same logic again, if another read error occurs). If there was no outstanding response, this will bring the queue size back to 0, unblocking a future response from the underlying device. Signed-off-by: Prathmesh Prabhu <ppra...@chromium.org> Tested-by: Robert Foss <robert.f..

Re: [PATCH 1/3] net: asix: Add in_pm parameter

2016-07-26 Thread Robert Foss
From: Grant Grundler For the record, I believe I am not the author of these patches. I believe the original author is Signed-off-by: Freddy Xin as recorded in the following code reviews (and testing) that I was responsible for:

[PATCH 1/2] usb: xhci: plat: Enable runtime PM

2016-07-25 Thread robert . foss
From: Andrew Bresticker Enable runtime PM for the xhci-plat device so that the parent device may implement runtime PM. Signed-off-by: Andrew Bresticker --- drivers/usb/host/xhci-plat.c | 19 +-- 1 file changed, 17 insertions(+), 2

[PATCH 2/2] usb: xhci: plat: Enable async suspend/resume

2016-07-25 Thread robert . foss
From: Andrew Bresticker USB host controllers can take a significant amount of time to suspend and resume, adding several hundred miliseconds to the kernel resume time. Since the XHCI controller has no outside dependencies (other than clocks, which are suspended

[PATCH 2/3] net: asix: Avoid looping when the device is disconnected

2016-07-25 Thread robert . foss
From: Vincent Palatin Check the answers from the USB stack and avoid re-sending multiple times the request if the device has disappeared. Signed-off-by: Vincent Palatin --- drivers/net/usb/asix_common.c | 56

[PATCH 3/3] net: asix: Fix AX88772x resume failures

2016-07-25 Thread robert . foss
From: WK Tsai The change fixes AX88772x resume failure by - Restore incorrect AX88772A PHY registers when resetting - Need to stop MAC operation when suspending - Need to restart MII when restoring PHY Signed-off-by: WK Tsai ---