Hi Jagan, On Mon, Feb 15, 2016 at 9:07 PM, Jagan Teki <[email protected]> wrote: > Hi Bin, > > On 15 February 2016 at 16:46, Bin Meng <[email protected]> wrote: >> Hi Jagan, >> >> On Mon, Feb 15, 2016 at 4:49 AM, Jagan Teki <[email protected]> wrote: >>> mp2580 will take care of tx and rx mode's so there is >>> no need to differentiate these into spi layer level >>> hence replaced all mode_rx macros with mode. >>> >>> Cc: Simon Glass <[email protected]> >>> Cc: Bin Meng <[email protected]> >>> Cc: Mugunthan V N <[email protected]> >>> Cc: Michal Simek <[email protected]> >>> Cc: Siva Durga Prasad Paladugu <[email protected]> >>> Signed-off-by: Jagan Teki <[email protected]> >>> --- >>> drivers/mtd/spi-nor/m25p80.c | 2 +- >>> drivers/spi/ich.c | 6 ++---- >>> drivers/spi/spi-uclass.c | 11 ++++------- >>> drivers/spi/ti_qspi.c | 6 +++--- >>> include/spi.h | 14 ++++---------- >>> 5 files changed, 14 insertions(+), 25 deletions(-) >>> >>> diff --git a/drivers/mtd/spi-nor/m25p80.c b/drivers/mtd/spi-nor/m25p80.c >>> index 7e2702d..58e879c 100644 >>> --- a/drivers/mtd/spi-nor/m25p80.c >>> +++ b/drivers/mtd/spi-nor/m25p80.c >>> @@ -178,7 +178,7 @@ static int m25p80_spi_nor(struct spi_nor *nor) >>> return ret; >>> } >>> >>> - switch (spi->mode_rx) { >>> + switch (spi->mode) { >>> case SPI_RX_SLOW: >>> nor->read_mode = SNOR_READ; >>> break; >>> diff --git a/drivers/spi/ich.c b/drivers/spi/ich.c >>> index e543b8f..5f03508 100644 >>> --- a/drivers/spi/ich.c >>> +++ b/drivers/spi/ich.c >>> @@ -678,10 +678,8 @@ static int ich_spi_child_pre_probe(struct udevice *dev) >>> * ICH 7 SPI controller only supports array read command >>> * and byte program command for SST flash >>> */ >>> - if (plat->ich_version == PCHV_7) { >>> - slave->mode_rx = SPI_RX_SLOW; >>> - slave->mode = SPI_TX_BYTE; >>> - } >>> + if (plat->ich_version == PCHV_7) >>> + slave->mode = SPI_TX_BYTE | SPI_RX_SLOW; >> >> This won't apply. Please rebase this series on top of origin/master. I >> plan to give a test against this series soon. > > Did that on u-boot-spi/spi-nor please find it. >
Thanks. I see that. Will schedule some test soon. [snip] Regards, Bin _______________________________________________ U-Boot mailing list [email protected] http://lists.denx.de/mailman/listinfo/u-boot

