17 Jul, 2020

1 commit

  • The only way this driver can be probed by MFD via its parent device.

    No other reference to 'microchip,at91sam9g45-usart-spi' exists in the kernel.

    Fixes the following W=1 kernel build warning(s):

    drivers/spi/spi-at91-usart.c:684:34: warning: ‘at91_usart_spi_dt_ids’ defined but not used [-Wunused-const-variable=]
    684 | static const struct of_device_id at91_usart_spi_dt_ids[] = {
    | ^~~~~~~~~~~~~~~~~~~~~

    Suggested-by: Alexandre Belloni
    Signed-off-by: Lee Jones
    Acked-by: Alexandre Belloni
    Cc: Radu Pirea
    Cc: Nicolas Ferre
    Cc: Ludovic Desroches
    Link: https://lore.kernel.org/r/20200717135424.2442271-13-lee.jones@linaro.org
    Signed-off-by: Mark Brown

    Lee Jones
     

15 Nov, 2019

1 commit


08 May, 2019

1 commit

  • This patch adds support for DMA. Transfers are done with dma only if
    they are longer than 16 bytes in order to achieve a better performance.
    DMA setup introduces a little overhead and for transfers shorter than 16
    bytes there is no performance improvement.

    Signed-off-by: Radu Pirea
    Signed-off-by: Mark Brown

    Radu Pirea
     

25 Mar, 2019

1 commit


03 Dec, 2018

1 commit

  • Fix build errors when CONFIG_PINCTRL is not enabled.
    The header file handles both CONFIG_PINCTRL
    enabled and disabled cases.

    CC [M] drivers/spi/spi-at91-usart.o
    ../drivers/spi/spi-at91-usart.c: In function 'at91_usart_spi_runtime_suspend':
    ../drivers/spi/spi-at91-usart.c:409:2: error: implicit declaration of function 'pinctrl_pm_select_sleep_state' [-Werror=implicit-function-declaration]
    pinctrl_pm_select_sleep_state(dev);
    ../drivers/spi/spi-at91-usart.c: In function 'at91_usart_spi_runtime_resume':
    ../drivers/spi/spi-at91-usart.c:419:2: error: implicit declaration of function 'pinctrl_pm_select_default_state' [-Werror=implicit-function-declaration]
    pinctrl_pm_select_default_state(dev);

    Signed-off-by: Randy Dunlap
    Cc: Radu Pirea
    Cc: Mark Brown
    Cc: linux-spi@vger.kernel.org
    Signed-off-by: Mark Brown

    Randy Dunlap
     

27 Nov, 2018

1 commit


11 Sep, 2018

1 commit


10 Sep, 2018

1 commit

  • This is the driver for at91-usart in spi mode. The USART IP can be configured
    to work in many modes and one of them is SPI.

    The driver was tested on sama5d3-xplained and sama5d4-xplained boards with
    enc28j60 ethernet controller as slave.

    Signed-off-by: Radu Pirea
    Reviewed-by: Andy Shevchenko
    Reviwed-by: Mark Brown
    Acked-by: Nicolas Ferre
    Signed-off-by: Lee Jones

    Radu Pirea