Skip to contentSkip to conversation

SPI fixes for v5.10-rc4

GIT PULL Merged Mark Brown 2 participants 2 messages Nov 19, 2020 SPI

lore
Share & tools
lore

Mark Brown

author maintainer
#0 lore raw

The following changes since commit bc7f2cd7559c5595dc38b909ae9a8d43e0215994:

spi: bcm2835: remove use of uninitialized gpio flags variable (2020-11-06 11:23:26 +0000)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git tags/spi-fix-v5.10-rc4

for you to fetch changes up to 04a9cd51d3f3308a98cbc6adc07acb12fbade011:

spi: npcm-fiu: Don't leak SPI master in probe error path (2020-11-17 17:08:39 +0000)

----------------------------------------------------------------
spi: Fixes for v5.10

This is a relatively large set of fixes, the bulk of it being a series from Lukas Wunner which fixes confusion with the lifetime of driver data allocated along with the SPI controller structure that's been created as part of the conversion to devm APIs. The simplest fix, explained in detail in Lukas' commit message, is to move to a devm_ function for allocation of the controller and hence driver data in order to push the free of that after anything tries to reference the driver data in the remove path. This results in a relatively large diff due to the addition of a new function but isn't particularly complex.

There's also a fix from sven van Asbroeck which fixes yet more fallout from the conflicts between the various different places one can configure the polarity of GPIOs in modern systems.

Otherwise everything is fairly small and driver specific.

----------------------------------------------------------------
Eddie James (1):
spi: fsi: Fix transfer returning without finalizing message

Lukas Wunner (6):
spi: Introduce device-managed SPI controller allocation
spi: bcm2835: Fix use-after-free on unbind
spi: bcm2835aux: Fix use-after-free on unbind
spi: bcm-qspi: Fix use-after-free on unbind
spi: lpspi: Fix use-after-free on unbind
spi: npcm-fiu: Don't leak SPI master in probe error path

Mark Brown (1):
Merge series "Use-after-free be gone" from Lukas Wunner <[email protected]>:

Nathan Chancellor (1):
spi: bcm2835aux: Restore err assignment in bcm2835aux_spi_probe

Serge Semin (1):
spi: dw: Set transfer handler before unmasking the IRQs

Sven Van Asbroeck (1):
spi: fix client driver breakages when using GPIO descriptors

Zhihao Cheng (1):
spi: cadence-quadspi: Fix error return code in cqspi_probe

 drivers/spi/spi-bcm-qspi.c        | 34 ++++++----------
 drivers/spi/spi-bcm2835.c         | 24 ++++--------
 drivers/spi/spi-bcm2835aux.c      | 20 ++++------
 drivers/spi/spi-cadence-quadspi.c |  2 +
 drivers/spi/spi-dw-core.c         |  4 +-
 drivers/spi/spi-fsi.c             |  2 +-
 drivers/spi/spi-fsl-lpspi.c       |  3 --
 drivers/spi/spi-npcm-fiu.c        |  2 +-
 drivers/spi/spi.c                 | 81 ++++++++++++++++++++++++++++++---------
 include/linux/spi/spi.h           | 19 +++++++++
 10 files changed, 115 insertions(+), 76 deletions(-)
merge bot Merged
#1 lore raw
The pull request you sent on Thu, 19 Nov 2020 17:45:17 +0000:

The pull request you sent on Thu, 19 Nov 2020 17:45:17 +0000:

Quoted 1 line

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git tags/spi-fix-v5.10-rc4

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/fee3c824edf24fd4c497bb3b887d1447150ec4ec

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html