15 Oct, 2019

1 commit

  • For many places in the spi drivers, using the new `spi_transfer_delay`
    helper is straightforward.
    It's just replacing:
    ```
    if (t->delay_usecs)
    udelay(t->delay_usecs);
    ```
    with `spi_transfer_delay(t)` which handles both `delay_usecs` and the new
    `delay` field.

    This change replaces in all places (in the spi drivers) where this change
    is simple.

    Signed-off-by: Alexandru Ardelean
    Link: https://lore.kernel.org/r/20190926105147.7839-10-alexandru.ardelean@analog.com
    Signed-off-by: Mark Brown

    Alexandru Ardelean
     

08 Feb, 2019

1 commit


19 Jan, 2019

1 commit


29 Aug, 2018

1 commit


22 Dec, 2014

1 commit


20 Oct, 2014

1 commit


06 Jun, 2014

1 commit


15 Apr, 2014

1 commit

  • Rather than requesting the shyway_clk call clk_get with
    the device and a NULL con_id.

    This is in keeping with the way that clk_get() is called
    on other drivers used by Renesas Gen 1 SoCs. And I believe
    it is compatible with supplying clocks via DT, unlike the current code.

    It appears to me that the two uses of this driver are
    the r8a7778 and r8a7779 SoCs.

    The r8a7779 already has clocks setup to allow this driver to continue to work
    with this change applied.

    The r8a7778 has clocks incorrectly setup to allow this driver to continue
    to work with this change applied. This problem is addressed in
    "ARM: shmobile: r8a7778: Use clks as MSTP007 parent" which is thus
    a pre-requisite of this patch.

    Signed-off-by: Simon Horman
    Signed-off-by: Mark Brown

    Simon Horman
     

30 Mar, 2014

1 commit


11 Mar, 2014

1 commit


03 Mar, 2014

1 commit


27 Feb, 2014

1 commit


23 Feb, 2014

1 commit


16 Feb, 2014

1 commit

  • The purpose of commit 1e8a52e18cfb
    "spi: By default setup spi_masters with 1 chipselect and dynamics bus number"
    is to avoid setting default value for bus_num and num_chipselect in spi master
    drivers. So let's remove the duplicate code.

    Signed-off-by: Axel Lin
    Acked-by: Uwe Kleine-König
    Acked-By: David Daney
    Acked-by: Stephen Warren
    Signed-off-by: Mark Brown

    Axel Lin
     

23 Jan, 2014

1 commit


13 Jan, 2014

1 commit


08 Jan, 2014

1 commit

  • Make the modalias matches the driver name.
    Seems the MODULE_ALIAS is copied from drivers/spi/spi-sh-spi.c.
    So both spi-sh.ko and spi-sh-hspi.ko have the same alias. Fix it.

    Signed-off-by: Axel Lin
    Signed-off-by: Mark Brown

    Axel Lin
     

25 Oct, 2013

3 commits


15 Oct, 2013

1 commit


03 Oct, 2013

1 commit

  • 3e00a09d2fbd64f0ad98e7c8c29dbf9e038fc746
    (spi/hspi: Convert to core runtime PM)
    enabled master->auto_runtime_pm.
    Then, pm_runtime_enable() is required *before*
    spi_register_master() calling.
    This patch fixed it up.
    Kernel will hang up with "spi_master spi0: Failed to power device: -13"
    message without this patch.

    Signed-off-by: Kuninori Morimoto
    Signed-off-by: Mark Brown

    Kuninori Morimoto
     

26 Sep, 2013

1 commit


01 Sep, 2013

1 commit


30 Jul, 2013

1 commit


29 Jul, 2013

1 commit


26 Jun, 2013

1 commit


05 Jun, 2013

1 commit

  • Current HSPI driver is using msleep(20) on hspi_status_check_timeout(),
    but it was too long delay for SPI device.
    Bock-W board SPI access was too slow without this patch.
    This patch uses udelay(10) for it.

    Tested-by: Yusuke Goda
    Signed-off-by: Kuninori Morimoto
    Signed-off-by: Mark Brown

    Kuninori Morimoto
     

23 May, 2013

1 commit

  • Use the wrapper functions for getting and setting the driver data using
    platform_device instead of using dev_{get,set}_drvdata() with &pdev->dev,
    so we can directly pass a struct platform_device.

    Signed-off-by: Jingoo Han
    Signed-off-by: Mark Brown

    Jingoo Han
     

19 Dec, 2012

1 commit


08 Dec, 2012

1 commit

  • CONFIG_HOTPLUG is going away as an option. As result the __dev*
    markings will be going away.

    Remove use of __devinit, __devexit_p, __devinitdata, __devinitconst,
    and __devexit.

    Bill Pemberton has done most of the legwork on this series. I've used
    his script to purge the attributes from the drivers/gpio tree.

    Reported-by: Bill Pemberton
    Signed-off-by: Grant Likely

    Grant Likely
     

23 Nov, 2012

1 commit

  • The current HSPI driver used automatic CS control, leading to CS
    active for each byte transmitted. This patch changes the driver
    to manual CS control, and ensures CS is active thoughout a whole
    message. Additionally, it uses the cs_change field to determine
    if CS is disabled between transfers in the message.

    Signed-off-by: Phil Edworthy
    Signed-off-by: Grant Likely

    Phil Edworthy
     

06 Sep, 2012

1 commit

  • devm free functions should not have to be explicitly used.

    A semantic match that finds this problem is as follows:
    (http://coccinelle.lip6.fr/)

    //
    @@
    @@

    (
    * devm_kfree(...);
    |
    * devm_free_irq(...);
    |
    * devm_iounmap(...);
    |
    * devm_release_region(...);
    |
    * devm_release_mem_region(...);
    )
    //

    Signed-off-by: Julia Lawall
    Signed-off-by: Mark Brown

    Julia Lawall
     

15 Mar, 2012

3 commits


10 Mar, 2012

1 commit