28 Jul, 2016

1 commit


12 Jan, 2016

2 commits


01 Jan, 2016

2 commits


31 Dec, 2015

1 commit

  • In the case where transfer length is not a multiple of 4, KASAN
    reports 2 out-of-bounds memory accesses:
    - mtk_spi_interrupt: ioread32_rep writes past the end of
    trans->rx_buf.
    - mtk_spi_fifo_transfer: iowrite32_rep reads past the end of
    xfer->tx_buf.

    Fix this by using memcpy on the remainder of the bytes.

    Signed-off-by: Nicolas Boichat
    Signed-off-by: Mark Brown

    Nicolas Boichat
     

25 Nov, 2015

2 commits


21 Nov, 2015

1 commit


17 Nov, 2015

1 commit

  • When only one device is present, it is not necessary to specify
    cs_gpios, as the CS line can be controlled by the hardware
    module.

    Without this patch, older device tree bindings used before
    37457607 "spi: mediatek: mt8173 spi multiple devices support"
    would cause a panic on boot. This fixes the crash, and
    re-introduces backward compatibility.

    Signed-off-by: Nicolas Boichat
    Acked-by: Leilk Liu
    Signed-off-by: Mark Brown

    Nicolas Boichat
     

27 Oct, 2015

3 commits


23 Sep, 2015

1 commit


17 Sep, 2015

1 commit


08 Sep, 2015

1 commit

  • Mediatek spi HW can't set cs inactive(keep cs high) directly.
    Instead, it supplies pause mode to do it indirectly. If driver
    unsets SPI_CMD_PAUSE_MODE in CMD_REG, it also needs to reset
    internal state machine to let cs inactive at once.

    Signed-off-by: Leilk Liu
    Signed-off-by: Mark Brown

    Leilk Liu
     

31 Aug, 2015

2 commits


28 Aug, 2015

1 commit


26 Aug, 2015

4 commits


21 Aug, 2015

3 commits


20 Aug, 2015

1 commit


13 Aug, 2015

1 commit


12 Aug, 2015

1 commit

  • This patch fixes endian warnings detected by sparse:
    - sparse: incorrect type in argument 1 (different base types)
    expected unsigned int [unsigned] val
    got restricted __le32 [usertype]
    - sparse: incorrect type in argument 1 (different base types)
    expected unsigned int [unsigned] val
    got restricted __le32 [usertype]

    Signed-off-by: Leilk Liu
    Signed-off-by: Mark Brown

    Leilk Liu
     

11 Aug, 2015

1 commit


08 Aug, 2015

1 commit


07 Aug, 2015

1 commit