[PATCH v3] mtd: rawnand: arasan: Fix double assertion of chip-select
Miquel Raynal
miquel.raynal at bootlin.com
Thu Dec 5 02:43:27 PST 2024
On Mon, 02 Dec 2024 13:51:07 +0100, Maciej Andrzejewski wrote:
> When two chip-selects are configured in the device tree, and the second is
> a non-native GPIO, both the GPIO-based chip-select and the first native
> chip-select may be asserted simultaneously. This double assertion causes
> incorrect read and write operations.
>
> The issue occurs because when nfc->ncs <= 2, nfc->spare_cs is always
> initialized to 0 due to static initialization. Consequently, when the
> second chip-select (GPIO-based) is selected in anfc_assert_cs(), it is
> detected by anfc_is_gpio_cs(), and nfc->native_cs is assigned the value 0.
> This results in both the GPIO-based chip-select being asserted and the
> NAND controller register receiving 0, erroneously selecting the native
> chip-select.
>
> [...]
Applied to mtd/fixes, thanks!
[1/1] mtd: rawnand: arasan: Fix double assertion of chip-select
Patche(s) will be available within hours on:
mtd/linux.git
Kind regards,
Miquèl
More information about the linux-mtd
mailing list