15 Sep, 2019

1 commit


30 Aug, 2019

1 commit

  • MODULE_DEVICE_TABLE is missing from the PCI part of the driver. Add it
    so userspace can autoload the the driver when it is built as module.

    Signed-off-by: Jarkko Nikula
    Link: https://lore.kernel.org/r/20190829125000.26303-1-jarkko.nikula@linux.intel.com
    Signed-off-by: Mark Brown

    Jarkko Nikula
     

23 Aug, 2019

1 commit


12 Aug, 2019

1 commit


25 Jul, 2019

1 commit

  • Instead of using to_pci_dev + pci_get_drvdata,
    use dev_get_drvdata to make code simpler.

    Signed-off-by: Chuhong Yuan
    Link: https://lore.kernel.org/r/20190724122331.21856-1-hslester96@gmail.com
    Signed-off-by: Mark Brown

    Chuhong Yuan
     

05 Jun, 2019

1 commit

  • Based on 1 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms and conditions of the gnu general public license
    version 2 as published by the free software foundation this program
    is distributed in the hope it will be useful but without any
    warranty without even the implied warranty of merchantability or
    fitness for a particular purpose see the gnu general public license
    for more details

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 263 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Allison Randal
    Reviewed-by: Alexios Zavras
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190529141901.208660670@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

12 May, 2016

1 commit


20 Oct, 2015

1 commit


24 Feb, 2015

1 commit

  • The commit d58cf5ff6500 brought a second controller to the list of supported
    devices and changed a number of the chip selects. Besides the previous number
    was wrong anyway the mentioned patch makes it wrong again meanwhile has a
    proper numbers in the commit message. Indeed, SPI1 has 5 bits and SPI2 has 2
    bits, but it does not mean to have power of two of this bits as a possible
    number of the chip selects. So, this patch fixes it eventually.

    Fixes: d58cf5ff6500 (spi: dw-pci: describe Intel MID controllers better)
    Signed-off-by: Andy Shevchenko
    Signed-off-by: Mark Brown
    Cc: stable@vger.kernel.org

    Andy Shevchenko
     

27 Jan, 2015

1 commit

  • The clock information is being kept in the custom register on Intel MID
    platforms. Each controller has its own dedicated custom register for that.
    Thus, to get a proper frequency we have to read value from the specific offset
    to the register block. This patch makes this happen.

    Fixes: d58cf5ff6500 (spi: dw-pci: describe Intel MID controllers better)
    Signed-off-by: Andy Shevchenko
    Signed-off-by: Mark Brown

    Andy Shevchenko
     

08 Jan, 2015

1 commit

  • There are more that one SPI controller on the Intel MID boards. This patch
    describes the status and IDs of them. From now on we also have to care about
    bus number that must be unique per host.

    According to the specification the SPI1 has 5 bits for chip selects and SPI2
    only 2 bits. The patch makes it depend to PCI ID.

    The first controller (SPI1) is DMA capable, meanwhile SPI2 can share same
    channels (via software switch) such functionality is not in the scope of this
    patch. Thus, attempt to init DMA for SPI2 will always fail for now.

    Signed-off-by: Andy Shevchenko
    Signed-off-by: Mark Brown

    Andy Shevchenko
     

03 Oct, 2014

1 commit


01 Sep, 2014

5 commits


27 Aug, 2014

1 commit

  • The commit 04f421e7 "spi: dw: use managed resources" changes drivers to use
    managed functions, but seems wasn't properly tested in PCI case. The regs field
    of struct dw_spi left uninitialized. Thus, kernel crashes when tries to access
    to the SPI controller registers. This patch fixes the issue.

    Fixes: 04f421e7 (spi: dw: use managed resources)
    Signed-off-by: Andy Shevchenko
    Signed-off-by: Mark Brown
    Cc: stable@vger.kernel.org

    Andy Shevchenko
     

23 Jan, 2014

1 commit


07 Jan, 2014

1 commit


06 Jan, 2014

1 commit

  • Commit 04f421e7b0b10 (spi: dw: use managed resources) introduced a typo in
    struct field reference. Fix it.

    Fixes build failure:

    drivers/spi/spi-dw-pci.c: In function 'spi_pci_probe':
    drivers/spi/spi-dw-pci.c:50:29: error: 'dev' undeclared (first use in this function)
    dwpci = devm_kzalloc(&pdev-dev, sizeof(struct dw_spi_pci), GFP_KERNEL);
    ^

    Reported-by: Stephen Rothwell
    Signed-off-by: Baruch Siach
    Signed-off-by: Mark Brown

    Baruch Siach
     

31 Dec, 2013

1 commit

  • Migrate mmio code and core driver to managed resources to reduce boilerplate
    error handling code. Also, handle clk_enable() failure while at it, and drop
    unused dw_spi iolen field.

    Signed-off-by: Baruch Siach
    Signed-off-by: Mark Brown

    Baruch Siach
     

04 Dec, 2013

1 commit


15 Oct, 2013

1 commit


17 Sep, 2013

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
     

11 Apr, 2012

1 commit

  • This patch converts the drivers in drivers/spi/* to use module_pci_driver()
    macro which makes the code smaller and a bit simpler.

    Signed-off-by: Axel Lin
    Signed-off-by: Grant Likely

    Axel Lin
     

10 Mar, 2012

1 commit


01 Nov, 2011

1 commit


06 Jun, 2011

1 commit

  • Sort the SPI makefile and enforce the naming convention spi_*.c for
    spi drivers.

    This change also rolls the contents of atmel_spi.h into the .c file
    since there is only one user of that particular include file.

    v2: - Use 'spi-' prefix instead of 'spi_' to match what seems to be
    be the predominant pattern for subsystem prefixes.
    - Clean up filenames in Kconfig and header comment blocks

    Signed-off-by: Grant Likely
    Acked-by: Wolfram Sang
    Acked-by: Linus Walleij

    Grant Likely