Re: [PATCH v8 2/3] mtd: spi-nor: add rockchip serial flash controller driver

From: Boris Brezillon
Date: Fri May 18 2018 - 06:26:02 EST


Hi Andy,

Sorry for the late reply.

On Thu, 8 Feb 2018 20:18:47 +0800
Andy Yan <andy.yan@xxxxxxxxxxxxxx> wrote:

> From: Shawn Lin <shawn.lin@xxxxxxxxxxxxxx>

Commit message please.

>
> Add Rockchip SFC(serial flash controller) driver.
>
> Signed-off-by: Shawn Lin <shawn.lin@xxxxxxxxxxxxxx>
> Signed-off-by: Andy Yan <andy.yan@xxxxxxxxxxxxxx>
> Acked-by: Marek Vasut <marek.vasut@xxxxxxxxx>
>
> ---
>
> Changes in v8:
> - remove unused macro SFC_CMD_TRAN_BYTES_MASK
> - set max transfer length to 15.5KB
> - remove unnecessary buffer align check
> - remove the duplicate logic what spi-nor.c already does for spi_nor_write
> - add spi_nor_erase, as the SFC should get the erase address.

Would you mind sending a new version addressing the problem reported by
kbuild robots and the comments made by Ezequiel and Robin?

Also, maybe it's too much work, but it would be good to check if the
driver could use the spi_mem interface [1] so that you can move it to
drivers/spi/ and possibly get everything ready for SPI NANDs.

Thanks,

Boris

[1]https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git/tree/include/linux/spi/spi-mem.h?h=for-4.18