All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andy Shevchenko <andriy.shevchenko@intel.com>
To: Andrey Smirnov <andrew.smirnov@gmail.com>
Cc: Ferry Toth <fntoth@gmail.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Felipe Balbi <balbi@kernel.org>,
	Thinh Nguyen <thinhn@synopsys.com>,
	linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
	Thinh Nguyen <Thinh.Nguyen@synopsys.com>,
	Sven Peter <sven@svenpeter.dev>
Subject: Re: [PATCH v4] usb: dwc3: Don't switch OTG -> peripheral if extcon is present
Date: Tue, 27 Sep 2022 15:21:45 +0300	[thread overview]
Message-ID: <YzLq2WJD78sjiBZg@smile.fi.intel.com> (raw)
In-Reply-To: <CAHQ1cqEVXwMiUxp+QGRkHMea-74DxS1Obvc2xwhy=ySwfxhu7w@mail.gmail.com>

On Mon, Sep 26, 2022 at 11:31:58AM -0700, Andrey Smirnov wrote:
> On Mon, Sep 26, 2022 at 3:19 AM Andy Shevchenko
> <andriy.shevchenko@intel.com> wrote:
> > On Sun, Sep 25, 2022 at 10:43:07PM -0700, Andrey Smirnov wrote:
> > > On Sun, Sep 25, 2022 at 12:21 PM Ferry Toth <fntoth@gmail.com> wrote:

...

> > > IMHO instead of trying to rush something in it be prudent to revert my
> > > patch _and_ address the fact that above patch was lost during the
> > > merge (Andy's revert needs to be updated)
> >
> > I'm not an expert in your fixes for DWC3, so please come up with
> > the solution sooner than later, otherwise I will try to get my
> > reverts into the final release, because they obviously fix the
> > regression.
> 
> You don't need to be an expert here. All that's required is that your
> revert get the code to look like it looks in
> 
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v6.0-rc6&id=ab7aa2866d295438dc60522f85c5421c6b4f1507
> 
> so the last hunk in your patch instead of looking like:
> 
> @@ -538,6 +584,10 @@ int dwc3_drd_init(struct dwc3 *dwc)
>  {
>         int ret, irq;
> 
> +       dwc->edev = dwc3_get_extcon(dwc);
> +       if (IS_ERR(dwc->edev))
> +               return PTR_ERR(dwc->edev);
> +
>         if (ROLE_SWITCH &&
>             device_property_read_bool(dwc->dev, "usb-role-switch"))
>                 return dwc3_setup_role_switch(dwc);
> 
> should look like
> 
> @@ -538,6 +584,10 @@ int dwc3_drd_init(struct dwc3 *dwc)
>  {
>         int ret, irq;
> 
>         if (ROLE_SWITCH &&
>             device_property_read_bool(dwc->dev, "usb-role-switch"))
>                 return dwc3_setup_role_switch(dwc);
> 
> +       dwc->edev = dwc3_get_extcon(dwc);
> +       if (IS_ERR(dwc->edev))
> +               return PTR_ERR(dwc->edev);
> +
> 
> Can you update your series accordingly or do you need me to do that? I
> won't have the cycles until the end of the week (Sat).

Thanks for elaboration. I will do it (hopefully today).

-- 
With Best Regards,
Andy Shevchenko



  reply	other threads:[~2022-09-27 12:22 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-03 16:49 [PATCH v4] usb: dwc3: Don't switch OTG -> peripheral if extcon is present Andrey Smirnov
2022-09-22 10:08 ` Andy Shevchenko
2022-09-22 14:30   ` Ferry Toth
     [not found]   ` <691c3073-5105-9a2b-e6f2-ea0a4b8aaea8@gmail.com>
2022-09-22 13:29     ` Andy Shevchenko
2022-09-22 20:35       ` Ferry Toth
2022-09-22 23:32     ` Andrey Smirnov
2022-09-23 16:42       ` Andy Shevchenko
2022-09-23 18:23         ` Andrey Smirnov
2022-09-23 18:35           ` Sven Peter
2022-09-23 18:58             ` Andy Shevchenko
2022-09-24  1:07               ` Andrey Smirnov
2022-09-23 18:54           ` Andy Shevchenko
2022-09-24  1:27             ` Andrey Smirnov
2022-09-24 11:55               ` Ferry Toth
2022-09-23 20:10           ` Ferry Toth
2022-09-24 21:29           ` Ferry Toth
2022-09-25 19:21             ` Ferry Toth
2022-09-26  5:43               ` Andrey Smirnov
2022-09-26 10:19                 ` Andy Shevchenko
2022-09-26 18:31                   ` Andrey Smirnov
2022-09-27 12:21                     ` Andy Shevchenko [this message]
2022-09-26 10:45               ` Sven Peter
2022-09-23 21:12         ` Ferry Toth
2022-09-24  1:34           ` Andrey Smirnov
2022-09-24 16:06             ` Ferry Toth
2022-09-26 10:21               ` Andy Shevchenko

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=YzLq2WJD78sjiBZg@smile.fi.intel.com \
    --to=andriy.shevchenko@intel.com \
    --cc=Thinh.Nguyen@synopsys.com \
    --cc=andrew.smirnov@gmail.com \
    --cc=balbi@kernel.org \
    --cc=fntoth@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=sven@svenpeter.dev \
    --cc=thinhn@synopsys.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.