From patchwork Mon Jan 6 14:09:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rasmus Villemoes X-Patchwork-Id: 239158 List-Id: U-Boot discussion From: rasmus.villemoes at prevas.dk (Rasmus Villemoes) Date: Mon, 6 Jan 2020 14:09:45 +0000 Subject: [PATCH 0/4] spi: mpc8xxx_spi: bug fixes and real ->set_speed Message-ID: <20200106140931.1136-1-rasmus.villemoes@prevas.dk> Patch 3/4 is the important one. Without it, reads and writes of certain lengths from spi-nor fails, and stuff at physical address 0x0 gets overwritten even if no input buffer is supplied (e.g. when sending a command). Tested on an mpc8309-derived board. It would be nice if someone with access to the gazerbeam board can test that this doesn't break that - in particular, the "only do transfers that are multiple of 8 bits" part. Rasmus Villemoes (4): gazerbeam: add clocks property to SPI node mpc8xxx_spi: put max_cs to use mpc8xxx_spi: always use 8-bit characters, don't read or write garbage mpc8xxx_spi: implement real ->set_speed arch/powerpc/dts/gdsys/mpc8308.dtsi | 7 ++ drivers/spi/mpc8xxx_spi.c | 141 ++++++++++++++++------------ 2 files changed, 88 insertions(+), 60 deletions(-)