Linux-mtd Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mtd: cfi_cmdset_0002: Use status register where possible
@ 2020-10-22 15:45 Joakim Tjernlund
  2020-10-30 17:47 ` Miquel Raynal
  2020-11-05 15:57 ` Vignesh Raghavendra
  0 siblings, 2 replies; 10+ messages in thread
From: Joakim Tjernlund @ 2020-10-22 15:45 UTC (permalink / raw)
  To: linux-mtd @ lists . infradead . org; +Cc: Joakim Tjernlund, stable

Commit "mtd: cfi_cmdset_0002: Add support for polling status register"
added support for polling the status rather than using DQ polling.
However, status register is used only when DQ polling is missing.
Lets use status register when available as it is superior to DQ polling.

Signed-off-by: Joakim Tjernlund <joakim.tjernlund@infinera.com>
Cc: stable@vger.kernel.org
---
 drivers/mtd/chips/cfi_cmdset_0002.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/chips/cfi_cmdset_0002.c b/drivers/mtd/chips/cfi_cmdset_0002.c
index a1f3e1031c3d..ee9b322e63bb 100644
--- a/drivers/mtd/chips/cfi_cmdset_0002.c
+++ b/drivers/mtd/chips/cfi_cmdset_0002.c
@@ -117,7 +117,7 @@ static struct mtd_chip_driver cfi_amdstd_chipdrv = {
 static int cfi_use_status_reg(struct cfi_private *cfi)
 {
 	struct cfi_pri_amdstd *extp = cfi->cmdset_priv;
-	u8 poll_mask = CFI_POLL_STATUS_REG | CFI_POLL_DQ;
+	u8 poll_mask = CFI_POLL_STATUS_REG;
 
 	return extp->MinorVersion >= '5' &&
 		(extp->SoftwareFeatures & poll_mask) == CFI_POLL_STATUS_REG;
-- 
2.26.2


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-11-05 16:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-22 15:45 [PATCH] mtd: cfi_cmdset_0002: Use status register where possible Joakim Tjernlund
2020-10-30 17:47 ` Miquel Raynal
2020-10-30 18:39   ` Joakim Tjernlund
2020-10-30 18:52     ` Miquel Raynal
2020-10-31 11:26       ` Joakim Tjernlund
2020-11-04  5:42         ` Vignesh Raghavendra
2020-11-04  9:53           ` Joakim Tjernlund
2020-11-05 16:04             ` Vignesh Raghavendra
2020-11-05 16:44               ` Joakim Tjernlund
2020-11-05 15:57 ` Vignesh Raghavendra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox