12 Apr, 2014
1 commit
-
Pull spi fixes from Mark Brown:
"A few driver specific fixes, the main one being the fix for handling
of complete callbacks that are open coded in individual drivers to
allow callers to omit the completion. As we move things into the core
that sort of issue should become less and less common"* tag 'spi-v3.15-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi:
spi: qup: Depend on ARCH_QCOM
spi: efm32: Update binding document to make "efm32,location" property optional
spi: omap2-mcspi: Convert to use devm_kcalloc
spi: Always check complete callback before calling it
11 Apr, 2014
1 commit
-
…p2-mcspi' and 'spi/fix/qup' into spi-linus
08 Apr, 2014
1 commit
-
Commit 8fc1b0f87d9f ("ARM: qcom: Split Qualcomm support into legacy and
multiplatform") removed Kconfig symbol ARCH_MSM_DT. But that commit
left one (optional) dependency on ARCH_MSM_DT untouched.Three Kconfig symbols used to depend on ARCH_MSM_DT: ARCH_MSM8X60,
ARCH_MSM8960, and ARCH_MSM8974. These three symbols now depend on
ARCH_QCOM. So it appears this driver needs to depend on ARCH_QCOM too.Signed-off-by: Paul Bolle
Reviewed-by: Stephen Boyd
Signed-off-by: Mark Brown
03 Apr, 2014
3 commits
-
This saves a few unwind code and return proper error if devm_kcalloc fails.
Signed-off-by: Axel Lin
Signed-off-by: Mark Brown -
Since commit 1e25cd4729bd "spi: Do not require a completion", this checking is
required to prevent NULL pointer dereference.Signed-off-by: Axel Lin
Signed-off-by: Mark Brown -
Pull MIPS updates from Ralf Baechle:
- Support for Imgtec's Aptiv family of MIPS cores.
- Improved detection of BCM47xx configurations.
- Fix hiberation for certain configurations.
- Add support for the Chinese Loongson 3 CPU, a MIPS64 R2 core and
systems.
- Detection and support for the MIPS P5600 core.
- A few more random fixes that didn't make 3.14.
- Support for the EVA Extended Virtual Addressing
- Switch Alchemy to the platform PATA driver
- Complete unification of Alchemy support
- Allow availability of I/O cache coherency to be runtime detected
- Improvments to multiprocessing support for Imgtec platforms
- A few microoptimizations
- Cleanups of FPU support
- Paul Gortmaker's fixes for the init stuff
- Support for seccomp* 'mips-for-linux-next' of git://git.linux-mips.org/pub/scm/ralf/upstream-sfr: (165 commits)
MIPS: CPC: Use __raw_ memory access functions
MIPS: CM: use __raw_ memory access functions
MIPS: Fix warning when including smp-ops.h with CONFIG_SMP=n
MIPS: Malta: GIC IPIs may be used without MT
MIPS: smp-mt: Use common GIC IPI implementation
MIPS: smp-cmp: Remove incorrect core number probe
MIPS: Fix gigaton of warning building with microMIPS.
MIPS: Fix core number detection for MT cores
MIPS: MT: core_nvpes function to retrieve VPE count
MIPS: Provide empty mips_mt_set_cpuoptions when CONFIG_MIPS_MT=n
MIPS: Lasat: Replace del_timer by del_timer_sync
MIPS: Malta: Setup PM I/O region on boot
MIPS: Loongson: Add a Loongson-3 default config file
MIPS: Loongson 3: Add CPU hotplug support
MIPS: Loongson 3: Add Loongson-3 SMP support
MIPS: Loongson: Add Loongson-3 Kconfig options
MIPS: Loongson: Add swiotlb to support All-Memory DMA
MIPS: Loongson 3: Add serial port support
MIPS: Loongson 3: Add IRQ init and dispatch support
MIPS: Loongson 3: Add HT-linked PCI support
...
01 Apr, 2014
1 commit
30 Mar, 2014
12 commits
-
…ic/ti-qspi', 'spi/topic/ti-ssp', 'spi/topic/topcliff-pch', 'spi/topic/txx9', 'spi/topic/xcomm' and 'spi/topic/xfer' into spi-next
-
…topic/sh-hspi', 'spi/topic/sh-msiof', 'spi/topic/sh-sci', 'spi/topic/sirf' and 'spi/topic/spidev' into spi-next
-
…i/topic/omap2', 'spi/topic/orion', 'spi/topic/pl022', 'spi/topic/qup', 'spi/topic/rspi' and 'spi/topic/s3c24xx' into spi-next
-
…512x-psc', 'spi/topic/mpc52xx', 'spi/topic/mxs', 'spi/topic/nuc900', 'spi/topic/oc-tiny' and 'spi/topic/octeon' into spi-next
-
…fm32', 'spi/topic/ep93xx', 'spi/topic/fsl', 'spi/topic/fsl-dspi', 'spi/topic/fsl-espi' and 'spi/topic/gpio' into spi-next
-
…pic/clps711x', 'spi/topic/coldfire', 'spi/topic/completion' and 'spi/topic/davinci' into spi-next
-
…/au1550', 'spi/topic/bcm63xx', 'spi/topic/bcm63xx-hsspi', 'spi/topic/bfin5xx', 'spi/topic/bitbang' and 'spi/topic/bpw' into spi-next
-
The core implementation of cs_change didn't follow the documentation
which says that cs_change in the middle of the transfer means to briefly
deassert chip select, instead it followed buggy drivers which change the
polarity of chip select. Use a delay of 10us between deassert and
reassert simply from pulling numbers out of a hat.Reported-by: Gerhard Sittig
Signed-off-by: Mark Brown
29 Mar, 2014
3 commits
-
spi_bitbang_stop() never fails, so make it return void.
Signed-off-by: Axel Lin
Signed-off-by: Mark Brown -
This controller only supports 8-bit word length.
Set bits_per_word_mask so spi core will reject transfers that attempt to use
an unsupported bits_per_word value.
Also remove the duplicate code to test spi->mode, it is done by spi core.Signed-off-by: Axel Lin
Signed-off-by: Mark Brown -
The memory allocated for cs is not freed anywhere.
Convert to use devm_kzalloc to fix the memory leak.Signed-off-by: Axel Lin
Signed-off-by: Mark Brown
28 Mar, 2014
3 commits
-
With devm_kzalloc, the memory is automatically freed when spi_device detach from
the bus.Fixes: commit 43f627ac9de42 (spi: dw: fix memory leak on error path)
Signed-off-by: Axel Lin
Acked-by: Baruch Siach
Signed-off-by: Mark Brown
Cc: stabe@vger.kernel.org -
The memory allocated for chip is not freed anywhere.
Convert to use devm_kzalloc to fix the memory leak.Signed-off-by: Axel Lin
Signed-off-by: Mark Brown -
This fixes the following coccicheck warning:
linux-2.6/drivers/spi/spi-omap-uwire.c:485:2-8: ERROR: missing iounmap; ioremap on line 471 and execution via conditional on line 481Signed-off-by: Nishanth Menon
Signed-off-by: Mark Brown
27 Mar, 2014
4 commits
-
Set highest transfer speed to master->max_speed_hz and then we can remove
hw->max_speed.Signed-off-by: Axel Lin
Signed-off-by: Mark Brown -
This helps increasing build testing coverage.
Signed-off-by: Axel Lin
Signed-off-by: Mark Brown -
This patch merges support for all DB1xxx and PB1xxx
boards into a single image, along with a new single defconfig
for them.Run-tested on DB1300 and DB1500.
Signed-off-by: Manuel Lauss
Cc: Linux-MIPS
Patchwork: https://patchwork.linux-mips.org/patch/6577/
Patchwork: https://patchwork.linux-mips.org/patch/6659/
Signed-off-by: Ralf Baechle -
This driver sets the SPI_MASTER_HALF_DUPLEX flag, so the spi core will check
transfers to ensure they are not full duplex.Signed-off-by: Axel Lin
Signed-off-by: Mark Brown
26 Mar, 2014
5 commits
-
There is no real reason why we require transfers to have a completion and
the only user of the completion now checks to see if one has been provided
before using it so stop enforcing this. This makes it more convenient for
drivers to chain multiple asynchronous transfers together.Signed-off-by: Mark Brown
-
If during a SPI transfer with len larger than PCH_MAX_FIFO_DEPTH and the
IRQ handler happens to be called when the transmit FIFO is already empty,
and SPSR_FI_BIT is set consequently, the message
"spi_master spi32766: pch_spi_handler_sub : Transfer is not completed"
is spammed to the systemlog, because tx_index has already increased
further due to the next bytes to be written. This case is uncritical as
new bytes have already been written.Signed-off-by: Alexander Stein
Signed-off-by: Mark Brown -
spi core will use spi->max_speed_hz as transfer speed if the transfer speed was
not set. So we don't need to test t->speed_hz in mcfqspi_transfer_one().Signed-off-by: Axel Lin
Signed-off-by: Mark Brown -
Signed-off-by: Axel Lin
Signed-off-by: Mark Brown -
Wolfram Sang pointed out that "efm32,$device" is non-standard. So use the
common scheme and prefix device with "efm32-". The old compatible string
is left in place until arch/arm/boot/dts/efm32* is fixed.Signed-off-by: Uwe Kleine-König
Acked-by: Wolfram Sang
Signed-off-by: Mark Brown
Cc: stable@vger.kernel.org
25 Mar, 2014
1 commit
-
This patch removes dependency. This is performed
by replace hard coded used memory regions and interrupt to getting
these values from resources passed to the driver. For the system-wide
registers we now able to use SYSCON driver.Signed-off-by: Alexander Shiyan
Signed-off-by: Mark Brown
24 Mar, 2014
1 commit
-
Ensure all registered platform devices are unregistered on probe() error paths.
Signed-off-by: Axel Lin
Signed-off-by: Mark Brown
22 Mar, 2014
4 commits
-
Signed-off-by: Axel Lin
Signed-off-by: Mark Brown -
The definition of struct altera_spi_platform_data does not exist in current
tree. So remove the code to get platform_data which is never used.Signed-off-by: Axel Lin
Signed-off-by: Mark Brown -
of_mpc8xxx_spi_probe() allocates memory for pinfo but the memory is not freed
anywhere. of_mpc8xxx_spi_probe() is called in .probe() and pinfo should be
freed in .remove(), so convert kzalloc to devm_kzalloc to fix the memory leak.Signed-off-by: Axel Lin
Signed-off-by: Mark Brown -
This helps increasing build testing coverage.
Signed-off-by: Axel Lin
Reviewed-by: Max Filippov
Signed-off-by: Mark Brown