From: Miquel Raynal <miquel.raynal@bootlin.com>
To: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: "Marek Behún" <marek.behun@nic.cz>,
"Thomas Petazzoni" <thomas.petazzoni@bootlin.com>,
"Thomas Petazzoni" <thomas.petazzoni@free-electrons.com>,
"Bjorn Helgaas" <helgaas@kernel.org>,
linux-pci@vger.kernel.org,
"Antoine Ténart" <antoine.tenart@free-electrons.com>,
"Grégory Clement" <gregory.clement@free-electrons.com>,
"Miquèl Raynal" <miquel.raynal@free-electrons.com>,
"Victor Gu" <xigu@marvell.com>
Subject: Re: [PATCH RFC v4.14] PCI: aadrvark: warm reset the cores and card
Date: Mon, 19 Nov 2018 22:57:54 +0100 [thread overview]
Message-ID: <20181119225754.1284ee1b@xps13> (raw)
In-Reply-To: <20181119170948.GA30910@red-moon>
Hi Lorenzo,
Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> wrote on Mon, 19 Nov 2018
17:09:48 +0000:
> On Wed, Oct 24, 2018 at 05:20:56PM +0200, Marek Behún wrote:
> > Add code to do a warm reset on the PHY and PCIE cores and if PERSTN GPIO
> > is specified in device tree (as reset-gpio), also reset the card.
> >
> > The reset-gpio is inspired by what is done in U-Boot and linux-marvell,
> > and is not final version: I am hoping this can be done via a PCIe register
> > rather than GPIO - bit 3 of CTRL_WARM_RESET_REG register (which is added
> > by this patch) is called PERSTN_GPIO_EN (Enable PERSTN from GPIO) and
> > I think this is the right register, but manipulating this register did
> > not have any effect on the PERSTN pin, even when pinctrl was correctly set.
> >
> > I asked Marvell about this and am awaiting their reply.
> >
> > The reset-gpio is needed for Compex 5 GHz wifi card model WLE900VX. Without
> > this patch the PCIe link never comes up in kernel (although U-Boot pci
> > command was able to enumerate the card).
> >
> > What is weird is that the link does not come up for this card when
> > pci-aardvark driver is probed in U-Boot. I haven't yet had time to discover
> > the problem there. My temporary solution is to compile out the pci-aardvark
> > driver from U-Boot.
> >
> > This patch is based on 4.14 kernel.
>
> This is not a commit log, these comments go either in a cover letter
> or below the log, prior to the diff.
>
> Patches should always be aimed at mainline, that's what is discussed
> and merged on linux-pci@vger.kernel.org
>
> Given its RFC status I consider this patch a proof of concept and
> won't consider it for upstreaming, not yet at least.
>
> > If you have time, please try it with some PCIe cards and let me know
> > if they work correctly.
>
> See above. For the time being I will drop this patch from the linux-pci
> patch queue, I really do not know what to do with it.
>
> Thanks,
> Lorenzo
Just an FYI, I am currently working on S2RAM support on A3700, and
doing this I added a few things to this driver including reset GPIO
support. Patches will come soon. There is no warm-reset coming in
though.
Thanks,
Miquèl
next prev parent reply other threads:[~2018-11-19 21:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-24 15:20 [PATCH RFC v4.14] PCI: aadrvark: warm reset the cores and card Marek Behún
2018-10-24 22:00 ` Bjorn Helgaas
2018-11-19 17:09 ` Lorenzo Pieralisi
2018-11-19 21:57 ` Miquel Raynal [this message]
2018-12-19 8:41 ` Miquel Raynal
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=20181119225754.1284ee1b@xps13 \
--to=miquel.raynal@bootlin.com \
--cc=antoine.tenart@free-electrons.com \
--cc=gregory.clement@free-electrons.com \
--cc=helgaas@kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=lorenzo.pieralisi@arm.com \
--cc=marek.behun@nic.cz \
--cc=miquel.raynal@free-electrons.com \
--cc=thomas.petazzoni@bootlin.com \
--cc=thomas.petazzoni@free-electrons.com \
--cc=xigu@marvell.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.