From: Johan Hovold <johan@kernel.org>
To: Sasha Levin <sashal@kernel.org>
Cc: stable-commits@vger.kernel.org, johan+linaro@kernel.org,
Andy Gross <agross@kernel.org>,
Bjorn Andersson <bjorn.andersson@linaro.org>,
Konrad Dybcio <konrad.dybcio@somainline.org>,
Felipe Balbi <balbi@kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-kernel@vger.kernel.org
Subject: Re: Patch "usb: dwc3: qcom: fix peripheral and OTG suspend" has been added to the 5.19-stable tree
Date: Sat, 24 Sep 2022 10:56:43 +0200 [thread overview]
Message-ID: <Yy7GS22UBJt4SK1H@hovoldconsulting.com> (raw)
In-Reply-To: <20220923165534.652593-1-sashal@kernel.org>
FFS, Sasha...
On Fri, Sep 23, 2022 at 12:55:34PM -0400, Sasha Levin wrote:
> This is a note to let you know that I've just added the patch titled
>
> usb: dwc3: qcom: fix peripheral and OTG suspend
>
> to the 5.19-stable tree which can be found at:
> http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
>
> The filename of the patch is:
> usb-dwc3-qcom-fix-peripheral-and-otg-suspend.patch
> and it can be found in the queue-5.19 subdirectory.
>
> If you, or anyone else, feels it should not be added to the stable tree,
> please let <stable@vger.kernel.org> know about it.
Stop pulling in these dwc3 patches! I already spent an afternoon doing
backports for all the stable trees so that you wouldn't pull in half the
world as dependencies.
This fixes an issue with a commit in 6.0, which should not be backported
in the first place.
Just as I told you two weeks ago when these were dropped the last time:
https://lore.kernel.org/lkml/YxbfJqPb8x0WjmqR@hovoldconsulting.com/
If you can't fix up the trivial context change yourself, then use one of
the backports of:
https://lore.kernel.org/lkml/20220906120702.19219-3-johan@kernel.org/
or simply just leave it out as the issue can't be triggered in 5.19
currently.
Just drop all the dwc3 patches from the pending-5.19 branch.
> commit a989a972abf4ae3f79bbff2d9dc9956eda25e2f0
> Author: Johan Hovold <johan+linaro@kernel.org>
> Date: Thu Aug 4 17:09:58 2022 +0200
>
> usb: dwc3: qcom: fix peripheral and OTG suspend
>
> [ Upstream commit c5f14abeb52b0177b940fd734133d383da3521d8 ]
>
> A recent commit implementing wakeup support in host mode instead broke
> suspend for peripheral and OTG mode.
>
> The hack that was added in the suspend path to determine the speed of
> any device connected to the USB2 bus not only accesses internal driver
> data for a child device, but also dereferences a NULL pointer or
> accesses freed data when the controller is not acting as host.
>
> There's no quick fix to the layering violation, but since reverting
> would leave us with broken suspend in host mode with wakeup triggering
> immediately, let's keep the hack for now.
>
> Fix the immediate issues by only checking the host bus speed and
> enabling wakeup interrupts when acting as host.
>
> Fixes: 6895ea55c385 ("usb: dwc3: qcom: Configure wakeup interrupts during suspend")
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
> Link: https://lore.kernel.org/r/20220804151001.23612-7-johan+linaro@kernel.org
> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> Signed-off-by: Sasha Levin <sashal@kernel.org>
Johan
next parent reply other threads:[~2022-09-24 8:56 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20220923165534.652593-1-sashal@kernel.org>
2022-09-24 8:56 ` Johan Hovold [this message]
2022-09-24 9:14 ` Greg Kroah-Hartman
2022-09-24 9:22 ` Johan Hovold
[not found] <20220905125309.1037700-1-sashal@kernel.org>
[not found] ` <YxXyd5H9TLWKUbWy@hovoldconsulting.com>
[not found] ` <YxXz7LBh5Y4DSd4W@sashalap>
[not found] ` <YxX15QkMDV+0amk8@hovoldconsulting.com>
[not found] ` <YxX29eiH0qyyRk9x@sashalap>
[not found] ` <YxX4QT6eeRiatmX+@hovoldconsulting.com>
[not found] ` <YxX7R/EAynZC/iGr@sashalap>
2022-09-05 15:07 ` Greg Kroah-Hartman
[not found] ` <YxYO+u0rAg029yNl@hovoldconsulting.com>
[not found] ` <YxYrS3z/nYFYzoTh@sashalap>
2022-09-05 17:57 ` Greg Kroah-Hartman
2022-09-06 5:48 ` Johan Hovold
2022-09-06 6:46 ` Greg Kroah-Hartman
2022-09-06 7:01 ` Johan Hovold
2022-09-06 11:22 ` Greg Kroah-Hartman
2022-09-06 12:09 ` Johan Hovold
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Yy7GS22UBJt4SK1H@hovoldconsulting.com \
--to=johan@kernel.org \
--cc=agross@kernel.org \
--cc=balbi@kernel.org \
--cc=bjorn.andersson@linaro.org \
--cc=gregkh@linuxfoundation.org \
--cc=johan+linaro@kernel.org \
--cc=konrad.dybcio@somainline.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sashal@kernel.org \
--cc=stable-commits@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®