Re: [PATCH] spi: dw: Fix broken dw_spi_mem_ops()

2022-02-24 Thread Jagan Teki
On Wed, Feb 9, 2022 at 4:22 AM Niklas Cassel wrote: > > From: Niklas Cassel > > The driver is currently using sizeof(op->cmd.opcode) in the op_len > calculation. Commit d15de623013c ("spi: spi-mem: allow specifying a > command's extension") changed op->cmd.opcode from one byte to two. > > Instead

Re: [PATCH] spi: dw: Fix broken dw_spi_mem_ops()

2022-02-10 Thread Damien Le Moal
On 2/9/22 07:52, Niklas Cassel wrote: > From: Niklas Cassel > > The driver is currently using sizeof(op->cmd.opcode) in the op_len > calculation. Commit d15de623013c ("spi: spi-mem: allow specifying a > command's extension") changed op->cmd.opcode from one byte to two. > > Instead, a new struct

Re: [PATCH] spi: dw: Fix broken dw_spi_mem_ops()

2022-02-09 Thread Pratyush Yadav
On 08/02/22 10:52PM, Niklas Cassel wrote: > From: Niklas Cassel > > The driver is currently using sizeof(op->cmd.opcode) in the op_len > calculation. Commit d15de623013c ("spi: spi-mem: allow specifying a > command's extension") changed op->cmd.opcode from one byte to two. > > Instead, a new str

[PATCH] spi: dw: Fix broken dw_spi_mem_ops()

2022-02-08 Thread Niklas Cassel
From: Niklas Cassel The driver is currently using sizeof(op->cmd.opcode) in the op_len calculation. Commit d15de623013c ("spi: spi-mem: allow specifying a command's extension") changed op->cmd.opcode from one byte to two. Instead, a new struct member op->cmd.nbytes is supposed to be used. For re