linux_dsm_epyc7002/include/linux/spi
Chris Lesiak a836f5856a [PATCH] spi: destroy workqueue after spi_unregister_master
Fix a bug in the cleanup of an spi_bitbang bus.

The workqueue associated with the bus was destroyed before the call to
spi_unregister_master.  That meant that spi devices on that bus would be
unable to do IO in their remove method.  The shutdown flag should have been
able to prevent a segfault, but was never getting set.  By waiting to
destroy the workqueue until after the master is unregistered, devices are
able to do IO in their remove methods.  An added benefit is that neither
the shutdown flag nor a wait for the queue of messages to empty is needed.

Signed-off-by: Chris Lesiak <chris.lesiak@licor.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-03-16 19:25:04 -07:00
..
ads7846.h Input: ads7846 - optionally leave Vref on during differential measurements 2007-01-18 00:45:21 -05:00
eeprom.h [PATCH] SPI eeprom driver 2007-02-12 09:48:31 -08:00
flash.h [PATCH] spi: M25 series SPI flash 2006-01-13 16:29:55 -08:00
spi_bitbang.h [PATCH] spi: destroy workqueue after spi_unregister_master 2007-03-16 19:25:04 -07:00
spi.h [PATCH] SPI doc clarifications 2007-02-12 09:48:31 -08:00