Skip to contentSkip to conversation

misc: rtsx: do not setting OC_POWER_DOWN reg in rtsx_pci_init_ocp()

PATCH In review [email protected] 4 participants 8 messages Aug 24, 2020 – Oct 31, 2020 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 misc: rtsx: do not setting OC_POWER_DOWN reg in rtsx_pci_init_ocp()

From: Ricky Wu <[email protected]>

this power saving action in rtsx_pci_init_ocp() cause INTEL-NUC6 platform missing card reader

---
 drivers/misc/cardreader/rtsx_pcr.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/misc/cardreader/rtsx_pcr.c +0 -4
index 37ccc67f4914..3a4a7b0cc098 100644
@@ -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);
 		}
 	}
 }
Signature · 1 line
2.17.1
#1 lore raw

Hi Greg and Arnd,

Quoted 5 lines · On 24/08/2020 04:00, [email protected] wrote:

From: Ricky Wu <[email protected]>

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")

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.

Quoted 21 lines
---
 drivers/misc/cardreader/rtsx_pcr.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/misc/cardreader/rtsx_pcr.c +0 -4
index 37ccc67f4914..3a4a7b0cc098 100644
@@ -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);
 		}
 	}
 }
#2 lore raw
Quoted 18 lines · Chris Clayton

Hi Greg and Arnd,

Quoted 4 lines · On 24/08/2020 04:00, [email protected] wrote:

From: Ricky Wu <[email protected]>

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.

Quoted 2 lines
Fixes bede03a579b3 ("misc: rtsx: Enable OCP for rts522a rts524a rts525a rts5260")

Better lore link:

But I'm not sure the above is the most relevant. Seems like the one below is more to the point since it has the exact patch below and is part of a thread developing it:

Quoted 8 lines

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.

This would be accomplished by:

Quoted 21 lines
Quoted 21 lines
---
 drivers/misc/cardreader/rtsx_pcr.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/misc/cardreader/rtsx_pcr.c +0 -4
index 37ccc67f4914..3a4a7b0cc098 100644
@@ -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);
 		}
 	}
 }
#3 lore raw

Thanks Bjorn.

Quoted 24 lines · Bjorn Helgaas
Quoted 18 lines · Chris Clayton

Hi Greg and Arnd,

Quoted 4 lines · On 24/08/2020 04:00, [email protected] wrote:

From: Ricky Wu <[email protected]>

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.

Quoted 2 lines
Fixes bede03a579b3 ("misc: rtsx: Enable OCP for rts522a rts524a rts525a rts5260")

Better lore link:

Quoted 8 lines

But I'm not sure the above is the most relevant. Seems like the one below is more to the point since it has the exact patch below and is part of a thread developing it:

Yes, I meant to change the quote to that thread but ... more haste less speed.

Quoted 6 lines
Quoted 6 lines

bede03a579b3 introduced a bug which leaves the rts5229 PCI Express card reader on the Intel NUC6CAYH box.

Quoted 7 lines
Quoted 2 lines

My main point, however, is that the patch is also needed in the 5.4 (longterm) and 5.8 (stable) series kernels.

This would be accomplished by:

Thanks for the tip.

I'm about to set off on a 4-day journey, so I'll send an updated patch when I return on Friday,

Quoted 21 lines
Quoted 21 lines
Quoted 21 lines
---
 drivers/misc/cardreader/rtsx_pcr.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/misc/cardreader/rtsx_pcr.c +0 -4
index 37ccc67f4914..3a4a7b0cc098 100644
@@ -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);
 		}
 	}
 }
maintainer
#4 lore raw
In reply to Chris Clayton
Quoted 17 lines · Chris Clayton

Hi Greg and Arnd,

Quoted 5 lines · On 24/08/2020 04:00, [email protected] wrote:

From: Ricky Wu <[email protected]>

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.

Quoted 8 lines
Fixes bede03a579b3 ("misc: rtsx: Enable OCP for rts522a rts524a rts525a rts5260")

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.

It's too late to change the commit log now that it is in my tree, but once it hits Linus's tree for 5.9-rc1, I can backport it to those stable trees if someone reminds me :)

thanks,

greg k-h

#5 lore raw

Mmm, gmail on android seems to have snuck some html into my reply, so here goes again...

Quoted 23 lines · Greg KH
Quoted 22 lines · Chris Clayton

Hi Greg and Arnd,

Quoted 5 lines · On 24/08/2020 04:00, [email protected] wrote:

From: Ricky Wu <[email protected]>

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")
Quoted 8 lines
Quoted 3 lines

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.

It's too late to change the commit log now that it is in my tree, but once it hits Linus's tree for 5.9-rc1, I can backport it to those stable trees if someone reminds me :)

Thanks, Greg. I'll send the reminder.

Chris

Quoted 4 lines

thanks,

greg k-h

#6 lore raw

Hi Greg,

Quoted 34 lines · Chris Clayton

Mmm, gmail on android seems to have snuck some html into my reply, so here goes again...

Quoted 31 lines · Greg KH
Quoted 17 lines · Chris Clayton

Hi Greg and Arnd,

Quoted 5 lines · On 24/08/2020 04:00, [email protected] wrote:

From: Ricky Wu <[email protected]>

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.

Quoted 8 lines
Fixes bede03a579b3 ("misc: rtsx: Enable OCP for rts522a rts524a rts525a rts5260")

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.

It's too late to change the commit log now that it is in my tree, but once it hits Linus's tree for 5.9-rc1, I can backport it to those stable trees if someone reminds me :)

This is the reminder you suggested. The patch is now in Linus's tree and the commit id is 551b6729578a8981c46af964c10bf7d5d9ddca83.

Chris

Quoted 8 lines

Thanks, Greg. I'll send the reminder.

Chris

Quoted 4 lines

thanks,

greg k-h

maintainer
#7 lore raw
Quoted 33 lines · Chris Clayton

Hi Greg,

Quoted 30 lines · Chris Clayton

Mmm, gmail on android seems to have snuck some html into my reply, so here goes again...

Quoted 27 lines · Greg KH
Quoted 25 lines · Chris Clayton

Hi Greg and Arnd,

Quoted 5 lines · On 24/08/2020 04:00, [email protected] wrote:

From: Ricky Wu <[email protected]>

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")

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.

Quoted 7 lines
Quoted 4 lines
Quoted 4 lines

It's too late to change the commit log now that it is in my tree, but once it hits Linus's tree for 5.9-rc1, I can backport it to those stable trees if someone reminds me :)

This is the reminder you suggested. The patch is now in Linus's tree and the commit id is 551b6729578a8981c46af964c10bf7d5d9ddca83.

Now queued up, thanks.

greg k-h