[PATCH] sf: Drop spl_flash_get_sw_write_prot

Jagan Teki jagan at amarulasolutions.com
Mon May 25 10:05:01 CEST 2020


On Thu, May 14, 2020 at 6:21 PM Jagan Teki <jagan at amarulasolutions.com> wrote:
>
> The get_sw_write_prot API is used to get the write-protected
> bits of flash by reading the status register and other wards
> it's API for reading register bits.
>
> 1) This kind of requirement can be achieved using existing
>    flash operations and flash locking API calls instead of
>    making a separate flash API.
> 2) Technically there is no real hardware user for this API to
>    use in the source tree.
> 3) Having a flash operations API for simple register read bits
>    also make difficult to extend the flash operations.
> 4) Instead of touching generic code, it is possible to have
>    this functionality inside spinor operations in the form of
>    flash hooks or fixups for associated flash chips.
>
> Considering all these points, this patch drops the get_sw_write_prot
> and associated code bases.
>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Vignesh R <vigneshr at ti.com>
> Signed-off-by: Jagan Teki <jagan at amarulasolutions.com>
> ---

Applied to u-boot-spi/master


More information about the U-Boot mailing list