Re: [PATCH 4/6] mtd: spi_nor: Add nor->setup() method

2019-08-04 Thread Tudor.Ambarus
On 08/01/2019 09:36 AM, Boris Brezillon wrote: > On Wed, 31 Jul 2019 09:12:14 + > wrote: > > >> static inline bool spi_nor_protocol_is_dtr(enum spi_nor_protocol proto) >> { >> return !!(proto & SNOR_PROTO_IS_DTR); >> @@ -384,6 +522,7 @@ struct flash_info; >> *

Re: [PATCH 4/6] mtd: spi_nor: Add nor->setup() method

2019-07-31 Thread Boris Brezillon
On Wed, 31 Jul 2019 09:12:14 + wrote: > static inline bool spi_nor_protocol_is_dtr(enum spi_nor_protocol proto) > { > return !!(proto & SNOR_PROTO_IS_DTR); > @@ -384,6 +522,7 @@ struct flash_info; > * useful when pagesize is not a power-of-2 > * @disable_writ

[PATCH 4/6] mtd: spi_nor: Add nor->setup() method

2019-07-31 Thread Tudor.Ambarus
From: Tudor Ambarus To be used by some manufacturers to configure the spi-nor flash memory. Right now the only user will be the S3AN chips, but other manufacturers can implement it if needed. Move spi_nor_flash_parameter and spi_nor_hwcaps related code to avoid forward declarations. Signed-off-