* Re: [PATCH] usb: musb: fix enumeration after resume [not found] ` <20180127083403.928-1-andreas-cLv4Z9ELZ06ZuzBka8ofvg@public.gmane.org> @ 2018-02-06 18:47 ` Tony Lindgren [not found] ` <20180206184725.GD21573-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> 2018-02-07 20:32 ` Bin Liu 0 siblings, 2 replies; 3+ messages in thread From: Tony Lindgren @ 2018-02-06 18:47 UTC (permalink / raw) To: Andreas Kemnade Cc: b-liu-l0cyMroinI0, gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r, linux-usb-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, Discussions about the Letux Kernel, linux-omap-u79uwXL29TY76Z2rM5mHXA * Andreas Kemnade <andreas-cLv4Z9ELZ06ZuzBka8ofvg@public.gmane.org> [180127 08:34]: > On dm3730 there are enumeration problems after resume. > Investigation led to the cause that the MUSB_POWER_SOFTCONN > bit is not set. If it was set before suspend (because it > was enabled via musb_pullup()), it is set in > musb_restore_context() so the pullup is enabled. But then > musb_start() is called which overwrites MUSB_POWER and > therefore disables MUSB_POWER_SOFTCONN, so no pullup is > enabled and the device is not enumerated. I just gave this patch a quick try and things seem to behave for me from PM point of view: Tested-by: Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> Unrelated to this patch, I also noticed that we now somehow higher idle power consumption initially when musb modules are loaded. It used to idle after that but now to get things to idle I had to plug and unplug a USB device once to the musb port. Regards, Tony -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <20180206184725.GD21573-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>]
* Re: [PATCH] usb: musb: fix enumeration after resume [not found] ` <20180206184725.GD21573-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> @ 2018-02-06 19:09 ` Andreas Kemnade 0 siblings, 0 replies; 3+ messages in thread From: Andreas Kemnade @ 2018-02-06 19:09 UTC (permalink / raw) To: Tony Lindgren Cc: b-liu-l0cyMroinI0, gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r, linux-usb-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, Discussions about the Letux Kernel, linux-omap-u79uwXL29TY76Z2rM5mHXA [-- Attachment #1: Type: text/plain, Size: 1410 bytes --] Hi, On Tue, 6 Feb 2018 10:47:25 -0800 Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> wrote: > * Andreas Kemnade <andreas-cLv4Z9ELZ06ZuzBka8ofvg@public.gmane.org> [180127 08:34]: > > On dm3730 there are enumeration problems after resume. > > Investigation led to the cause that the MUSB_POWER_SOFTCONN > > bit is not set. If it was set before suspend (because it > > was enabled via musb_pullup()), it is set in > > musb_restore_context() so the pullup is enabled. But then > > musb_start() is called which overwrites MUSB_POWER and > > therefore disables MUSB_POWER_SOFTCONN, so no pullup is > > enabled and the device is not enumerated. > > I just gave this patch a quick try and things seem to behave > for me from PM point of view: > > Tested-by: Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> > > Unrelated to this patch, I also noticed that we now somehow > higher idle power consumption initially when musb modules are > loaded. It used to idle after that but now to get things to > idle I had to plug and unplug a USB device once to the musb > port. > Hmm, I have seen this effect with some earlier kernels but not with 4.15. My observation is that current consumption went down again after a modprobe g_ether and ifconfig usb0 up I was loading modules piece by piece and waited 10s after each and then measured. Regards, Andreas [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] usb: musb: fix enumeration after resume 2018-02-06 18:47 ` [PATCH] usb: musb: fix enumeration after resume Tony Lindgren [not found] ` <20180206184725.GD21573-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> @ 2018-02-07 20:32 ` Bin Liu 1 sibling, 0 replies; 3+ messages in thread From: Bin Liu @ 2018-02-07 20:32 UTC (permalink / raw) To: Tony Lindgren Cc: Andreas Kemnade, gregkh, linux-usb, linux-kernel, Discussions about the Letux Kernel, linux-omap On Tue, Feb 06, 2018 at 10:47:25AM -0800, Tony Lindgren wrote: > * Andreas Kemnade <andreas@kemnade.info> [180127 08:34]: > > On dm3730 there are enumeration problems after resume. > > Investigation led to the cause that the MUSB_POWER_SOFTCONN > > bit is not set. If it was set before suspend (because it > > was enabled via musb_pullup()), it is set in > > musb_restore_context() so the pullup is enabled. But then > > musb_start() is called which overwrites MUSB_POWER and > > therefore disables MUSB_POWER_SOFTCONN, so no pullup is > > enabled and the device is not enumerated. > > I just gave this patch a quick try and things seem to behave > for me from PM point of view: > > Tested-by: Tony Lindgren <tony@atomide.com> Thanks for testing it. Regards, -Bin. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-02-07 20:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20180127083403.928-1-andreas@kemnade.info>
[not found] ` <20180127083403.928-1-andreas-cLv4Z9ELZ06ZuzBka8ofvg@public.gmane.org>
2018-02-06 18:47 ` [PATCH] usb: musb: fix enumeration after resume Tony Lindgren
[not found] ` <20180206184725.GD21573-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2018-02-06 19:09 ` Andreas Kemnade
2018-02-07 20:32 ` Bin Liu
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox