[PATCH v4 0/2] mtd: spi-nor: Fix SST AAI write mode

Sanjaikumar V S posted 2 patches 3 weeks, 1 day ago
drivers/mtd/spi-nor/core.c |  2 +-
drivers/mtd/spi-nor/sst.c  | 13 +++++++++++++
2 files changed, 14 insertions(+), 1 deletion(-)
[PATCH v4 0/2] mtd: spi-nor: Fix SST AAI write mode
Posted by Sanjaikumar V S 3 weeks, 1 day ago
From: Sanjaikumar V S <sanjaikumar.vs@dicortech.com>

This patch series addresses two distinct problems affecting SST flash
Auto Address Increment write functionality:

1. When writes begin at odd addresses, a single byte is programmed first
   using byte program command, which clears the Write Enable Latch. The
   driver fails to re-enable writes before the AAI sequence.

2. When the SPI controller lacks direct mapping support, the fallback
   path uses a probe-time operation template with standard page program
   opcodes instead of AAI opcodes.

Changes in v4:
- Resent as new thread (v3 was incorrectly sent as reply to v2)
- Patch 2/2: Added Fixes tag

Changes in v3:
- Patch 1/2: Use local boolean 'needs_write_enable' for clarity as
  suggested by Michael Walle
- Patch 1/2: Improved comment explaining the fix
- Patch 1/2: Added Fixes tag

Changes in v2:
- Split fixes into separate patches
- Added detailed commit messages

Sanjaikumar V S (2):
  mtd: spi-nor: sst: Fix write enable before AAI sequence
  mtd: spi-nor: core: Fix AAI mode when dirmap is not available

 drivers/mtd/spi-nor/core.c |  2 +-
 drivers/mtd/spi-nor/sst.c  | 13 +++++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)

--
2.43.0
Re: [PATCH v4 0/2] mtd: spi-nor: Fix SST AAI write mode
Posted by Sanjaikumar V S 3 days, 5 hours ago
Hi,

I wanted to follow up on this patch series fixing SST AAI write mode
issues. It has received Tested-by and Reviewed-by tags from Hendrik
Donner.

Could you please let me know if any further changes or actions are
required for these patches to be considered for inclusion?

Thanks,
Sanjaikumar
Re: [PATCH v4 0/2] mtd: spi-nor: Fix SST AAI write mode
Posted by Pratyush Yadav 2 days, 22 hours ago
On Mon, Mar 30 2026, Sanjaikumar V S wrote:

> Hi,
>
> I wanted to follow up on this patch series fixing SST AAI write mode
> issues. It has received Tested-by and Reviewed-by tags from Hendrik
> Donner.
>
> Could you please let me know if any further changes or actions are
> required for these patches to be considered for inclusion?

Applied patch 1 to spi-nor/next. Thanks!

For patch 2, I left a comment. I am not sure if it takes the right
approach.

-- 
Regards,
Pratyush Yadav