]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: spi-nor-core: Invert logic to reflect sst26 flash unlocked
authorAlgapally Santosh Sagar <santoshsagar.algapally@amd.com>
Tue, 22 Nov 2022 05:18:33 +0000 (22:18 -0700)
committerMichal Simek <michal.simek@amd.com>
Mon, 5 Dec 2022 09:01:45 +0000 (10:01 +0100)
commit7ad3c09e7911e71c9a16a30aa052093a8f9b7e7c
tree377bbe1f2260b1caa7d6b630391d0154b3c9ebd5
parentb40d154ced47d43005f683f7e089b9c016c8ea3d
mtd: spi-nor-core: Invert logic to reflect sst26 flash unlocked

flash_is_locked is changed to flash_is_unlocked with commit 513c6071ce73
("mtd: spi: Convert is_locked callback to is_unlocked"). sst26_is_locked()
is also changed to sst26_is_unlocked() but the logic remained same.
Invert the logic for the flash lock/unlock to work properly.

Signed-off-by: Algapally Santosh Sagar <santoshsagar.algapally@amd.com>
Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@amd.com>
Reviewed-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Dhruva Gole <d-gole@ti.com>
Link: https://lore.kernel.org/r/20221122051833.13306-1-ashok.reddy.soma@amd.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
drivers/mtd/spi/spi-nor-core.c