From: Chris Clayton <chris2553@googlemail.com>
To: ricky_wu@realtek.com, arnd@arndb.de, gregkh@linuxfoundation.org,
bhelgaas@google.com, vaibhavgupta40@gmail.com,
rui_feng@realsil.com.cn, kdlnx@doth.eu,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] misc: rtsx: do not setting OC_POWER_DOWN reg in rtsx_pci_init_ocp()
Date: Sun, 13 Sep 2020 09:40:56 +0100 [thread overview]
Message-ID: <c06d7691-01ab-303c-e687-dd8c51a8a9c5@gmail.com> (raw)
In-Reply-To: <20200824030006.30033-1-ricky_wu@realtek.com>
Hi Greg and Arnd,
On 24/08/2020 04:00, ricky_wu@realtek.com wrote:
> From: Ricky Wu <ricky_wu@realtek.com>
>
> this power saving action in rtsx_pci_init_ocp() cause INTEL-NUC6 platform
> missing card reader
>
In his changelog above, Ricky didn't mention that this patch fixes a regression that was introduced (in 5.1) by commit
bede03a579b3.
The patch that I posted to LKML contained the appropriate Fixes, etc tags. After discussion, the patch was changed to
remove the code that effectively disables the RTS5229 cardreader on (at least some) Intel NUC boxes. I prepared the
patch that Ricky submitted but he didn't include my Signed-off-by or the Fixes tag. I think the following needs to be
added to the changelog.
Fixes: bede03a579b3 ("misc: rtsx: Enable OCP for rts522a rts524a rts525a rts5260")
Link: https://marc.info/?l=linux-kernel&m=159105912832257
Link: https://bugzilla.kernel.org/show_bug.cgi?id=204003
Signed-off-by: Chris Clayton <chris2553@googlemail.com>
bede03a579b3 introduced a bug which leaves the rts5229 PCI Express card reader on the Intel NUC6CAYH box.
My main point, however, is that the patch is also needed in the 5.4 (longterm) and 5.8 (stable) series kernels.
Thanks.
> Signed-off-by: Ricky Wu <ricky_wu@realtek.com>
> ---
> drivers/misc/cardreader/rtsx_pcr.c | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/drivers/misc/cardreader/rtsx_pcr.c b/drivers/misc/cardreader/rtsx_pcr.c
> index 37ccc67f4914..3a4a7b0cc098 100644
> --- a/drivers/misc/cardreader/rtsx_pcr.c
> +++ b/drivers/misc/cardreader/rtsx_pcr.c
> @@ -1155,10 +1155,6 @@ void rtsx_pci_init_ocp(struct rtsx_pcr *pcr)
> rtsx_pci_write_register(pcr, REG_OCPGLITCH,
> SD_OCP_GLITCH_MASK, pcr->hw_param.ocp_glitch);
> rtsx_pci_enable_ocp(pcr);
> - } else {
> - /* OC power down */
> - rtsx_pci_write_register(pcr, FPDCTL, OC_POWER_DOWN,
> - OC_POWER_DOWN);
> }
> }
> }
>
next prev parent reply other threads:[~2020-09-13 8:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-24 3:00 [PATCH] misc: rtsx: do not setting OC_POWER_DOWN reg in rtsx_pci_init_ocp() ricky_wu
2020-09-13 8:40 ` Chris Clayton [this message]
2020-09-13 16:49 ` Bjorn Helgaas
2020-09-14 7:55 ` Chris Clayton
2020-09-14 15:58 ` Greg KH
2020-09-18 14:35 ` Chris Clayton
2020-10-15 18:20 ` Chris Clayton
2020-10-31 10:34 ` Greg KH
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=c06d7691-01ab-303c-e687-dd8c51a8a9c5@gmail.com \
--to=chris2553@googlemail.com \
--cc=arnd@arndb.de \
--cc=bhelgaas@google.com \
--cc=gregkh@linuxfoundation.org \
--cc=kdlnx@doth.eu \
--cc=linux-kernel@vger.kernel.org \
--cc=ricky_wu@realtek.com \
--cc=rui_feng@realsil.com.cn \
--cc=vaibhavgupta40@gmail.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