mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Johan Hovold <johan@kernel.org>
To: "Krzysztof Wilczyński" <kw@linux.com>
Cc: Ajay Agarwal <ajayagarwal@google.com>,
	Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>,
	Lorenzo Pieralisi <lpieralisi@kernel.org>,
	Jingoo Han <jingoohan1@gmail.com>,
	Gustavo Pimentel <gustavo.pimentel@synopsys.com>,
	Rob Herring <robh@kernel.org>,
	Bjorn Helgaas <bhelgaas@google.com>,
	linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org,
	Bjorn Andersson <quic_bjorande@quicinc.com>,
	Sajid Dalvi <sdalvi@google.com>
Subject: Re: [PATCH] Revert "PCI: dwc: Wait for link up only if link is started"
Date: Tue, 11 Jul 2023 08:52:23 +0200	[thread overview]
Message-ID: <ZKz8J1jM7zxt3wR7@hovoldconsulting.com> (raw)
In-Reply-To: <20230710170608.GA346178@rocinante>

On Tue, Jul 11, 2023 at 02:06:08AM +0900, Krzysztof Wilczyński wrote:

> > > > > > Finally, note that the intel-gw driver is the only driver currently not
> > > > > > providing a start_link callback and instead starts the link in its
> > > > > > host_init callback, and which may avoid an additional one-second timeout
> > > > > > during probe by making the link-up wait conditional. If anyone cares,
> > > > > > that can be done in a follow-up patch with a proper motivation.

> The whole conversation above about the intel-gw driver: would something
> need to be addressed here?  Or can I pick the suggested fix?

No, it's just another indication that the offending commit was confused.

All mainline drivers already start the link before that
wait-for-link-up, so the commit in question makes very little sense.
That's why I prefer reverting it, so as to not pollute the git logs
(e.g. for git blame) with misleading justifications.

> > > My apologies for adding this regression in some of the SOCs.
> > > May I suggest to keep my patch and make the following change instead?
> > > This shall keep the existing behavior as is, and save the boot time
> > > for drivers that do not define the start_link()?
> [...]
> 
> > I just realized that Fabio pushed exactly the same patch as I suggested
> > here:
> > https://lore.kernel.org/all/20230704122635.1362156-1-festevam@gmail.com/.
> > I think it is better we take it instead of reverting my commit.
> 
> Will do.  I will also make sure that we have correct attributions in place.

As I mentioned in the commit message, I think the commit should just be
reverted and if there's a valid argument to be made for a similar type
of change (without the breakage), that can be done as a follow-up with a
proper motivation.

Johan

  reply	other threads:[~2023-07-11  6:52 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-06  8:26 Johan Hovold
2023-07-06 12:58 ` Manivannan Sadhasivam
2023-07-07 12:47   ` Johan Hovold
2023-07-10 16:21     ` Ajay Agarwal
2023-07-10 16:42       ` Ajay Agarwal
2023-07-10 17:06         ` Krzysztof Wilczyński
2023-07-11  6:52           ` Johan Hovold [this message]
2023-07-12 17:45             ` Ajay Agarwal
2023-07-14  8:55               ` Johan Hovold
2024-01-11 15:43                 ` Ajay Agarwal
2023-07-11  7:37       ` Manivannan Sadhasivam
2024-01-12 10:00         ` Ajay Agarwal
2024-01-19  7:40           ` Manivannan Sadhasivam
2023-07-25 20:05 ` Bjorn Helgaas
2023-07-26  8:30   ` Johan Hovold
2023-07-26 15:58     ` Bjorn Helgaas

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=ZKz8J1jM7zxt3wR7@hovoldconsulting.com \
    --to=johan@kernel.org \
    --cc=ajayagarwal@google.com \
    --cc=bhelgaas@google.com \
    --cc=gustavo.pimentel@synopsys.com \
    --cc=jingoohan1@gmail.com \
    --cc=kw@linux.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=lpieralisi@kernel.org \
    --cc=manivannan.sadhasivam@linaro.org \
    --cc=quic_bjorande@quicinc.com \
    --cc=robh@kernel.org \
    --cc=sdalvi@google.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 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®