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
23 Aug, 2019
1 commit
12 Aug, 2019
1 commit
-
Add support for Intel(R) Programmable Services Engine (Intel(R) PSE) SPI
controller in Intel Elkhart Lake when interface is assigned to the host
processor.Signed-off-by: Jarkko Nikula
Link: https://lore.kernel.org/r/20190812101344.3975-1-jarkko.nikula@linux.intel.com
Signed-off-by: Mark Brown
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
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 detailsextracted 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
12 May, 2016
1 commit
-
Signed-off-by: Geert Uytterhoeven
Signed-off-by: Mark Brown
20 Oct, 2015
1 commit
-
The pdev member is not used anywhere, thus remove it. Moreover struct
dw_spi_pci becomes an equivalent of struct dw_spi and therefore remove entire
struct dw_spi_pci.Signed-off-by: Andy Shevchenko
Signed-off-by: Mark Brown
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
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
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
03 Oct, 2014
1 commit
-
…dw' and 'spi/topic/fsl' into spi-next
01 Sep, 2014
5 commits
-
The FSF address is subject to change, thus remove it from the file. While here,
update a copyright line.Signed-off-by: Andy Shevchenko
Signed-off-by: Mark Brown -
Instead of checking for device and vendor IDs inside probe function let's
provide a helper function via driver_data.Signed-off-by: Andy Shevchenko
Signed-off-by: Mark Brown -
Convert system PM callbacks to use dev_pm_ops. In addition remove the PCI calls
related to a power state since the bus code cares about this already.Signed-off-by: Andy Shevchenko
Signed-off-by: Mark Brown -
Nevertheless pci_bar is 0 let's explicitly use it when map IO regions. While
here, use pci_name instead of dev_name.Signed-off-by: Andy Shevchenko
Signed-off-by: Mark Brown -
Let's print info message when controller is found and properly initialized.
Signed-off-by: Andy Shevchenko
Signed-off-by: Mark Brown
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
23 Jan, 2014
1 commit
-
…c/hspi', 'spi/topic/mpc512x', 'spi/topic/msiof', 'spi/topic/nuc900', 'spi/topic/oc-tiny', 'spi/topic/omap', 'spi/topic/orion' and 'spi/topic/pci' into spi-linus
07 Jan, 2014
1 commit
-
It's not necessary to free resources allocated with devm_*
and free them may lead to double free.Fixes: 04f421e7b0b1 ('spi: dw: use managed resources')
Signed-off-by: Wei Yongjun
Signed-off-by: Mark Brown
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
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
04 Dec, 2013
1 commit
-
Don't use DEFINE_PCI_DEVICE_TABLE macro, because this macro
is not preferred.Signed-off-by: Jingoo Han
Signed-off-by: Mark Brown
15 Oct, 2013
1 commit
-
Change raw printk() call to dev_info() to provide a better message
to userspace so it can properly identify the device.Signed-off-by: Jingoo Han
Signed-off-by: Mark Brown
17 Sep, 2013
1 commit
-
The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.Signed-off-by: Jingoo Han
Signed-off-by: Mark Brown
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
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
10 Mar, 2012
1 commit
-
Convert static struct pci_device_id *[] to static DEFINE_PCI_DEVICE_TABLE
tables.Signed-off-by: Axel Lin
Signed-off-by: Grant Likely
01 Nov, 2011
1 commit
-
We are clipping down the presence of module.h, since it was
everywhere. If you really need it, you better call it out,
as per this changeset.Signed-off-by: Paul Gortmaker
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 blocksSigned-off-by: Grant Likely
Acked-by: Wolfram Sang
Acked-by: Linus Walleij