From: Kishon Vijay Abraham I <kishon@ti.com>
To: Rolf Evers-Fischer <embedded24@evers-fischer.de>,
<linux-kernel@vger.kernel.org>
Cc: Rolf Evers-Fischer <rolf.evers.fischer@aptiv.com>
Subject: Re: [PATCH] phy: ti-pipe3: Do not overwrite the whole PROGRAMMABILITY register
Date: Tue, 26 Feb 2019 14:56:47 +0530 [thread overview]
Message-ID: <1dd2c361-2219-05c7-6ca6-27dc049a9c7d@ti.com> (raw)
In-Reply-To: <20190226092421.13440-1-embedded24@evers-fischer.de>
Rolf,
On 26/02/19 2:54 PM, Rolf Evers-Fischer wrote:
> From: Rolf Evers-Fischer <rolf.evers.fischer@aptiv.com>
>
> Previously, ti_pipe3_calibrate() wrote all bits in the
> PCIEPHYRX_ANA_PROGRAMMABILITY register, thus overwriting bits,
> which should not be modified.
> Fix ti_pipe3_calibrate() so that it only modifies LOSD and
> INTERFACE bits.
A patch to fix this was sent a week earlier by Colin
https://lkml.org/lkml/2019/2/19/459
Thanks
Kishon
>
> Signed-off-by: Rolf Evers-Fischer <rolf.evers.fischer@aptiv.com>
> ---
> drivers/phy/ti/phy-ti-pipe3.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/phy/ti/phy-ti-pipe3.c b/drivers/phy/ti/phy-ti-pipe3.c
> index 68ce4a082b9b..693acc167351 100644
> --- a/drivers/phy/ti/phy-ti-pipe3.c
> +++ b/drivers/phy/ti/phy-ti-pipe3.c
> @@ -303,7 +303,7 @@ static void ti_pipe3_calibrate(struct ti_pipe3 *phy)
>
> val = ti_pipe3_readl(phy->phy_rx, PCIEPHYRX_ANA_PROGRAMMABILITY);
> val &= ~(INTERFACE_MASK | LOSD_MASK | MEM_PLLDIV);
> - val = (0x1 << INTERFACE_SHIFT | 0xA << LOSD_SHIFT);
> + val |= (0x1 << INTERFACE_SHIFT | 0xA << LOSD_SHIFT);
> ti_pipe3_writel(phy->phy_rx, PCIEPHYRX_ANA_PROGRAMMABILITY, val);
>
> val = ti_pipe3_readl(phy->phy_rx, PCIEPHYRX_DIGITAL_MODES);
>
next prev parent reply other threads:[~2019-02-26 9:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-26 9:24 Rolf Evers-Fischer
2019-02-26 9:26 ` Kishon Vijay Abraham I [this message]
2019-02-26 9:45 ` Rolf Evers-Fischer
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=1dd2c361-2219-05c7-6ca6-27dc049a9c7d@ti.com \
--to=kishon@ti.com \
--cc=embedded24@evers-fischer.de \
--cc=linux-kernel@vger.kernel.org \
--cc=rolf.evers.fischer@aptiv.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®