mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-17 12:21:29 +00:00
spi: Go back to immediate teardown
Commit 412e603732
("spi: core: avoid waking pump thread from spi_sync
instead run teardown delayed") introduced regressions on some boards,
apparently connected to spi_mem not triggering shutdown properly any
more. Since we've thus far been unable to figure out exactly where the
breakage is revert the optimisation for now.
Reported-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: kernel@martin.sperl.org
This commit is contained in:
parent
51eea52d26
commit
f0125f1a55
2 changed files with 33 additions and 91 deletions
|
@ -334,7 +334,6 @@ static inline void spi_unregister_driver(struct spi_driver *sdrv)
|
|||
* @kworker: thread struct for message pump
|
||||
* @kworker_task: pointer to task for message pump kworker thread
|
||||
* @pump_messages: work struct for scheduling work to the message pump
|
||||
* @pump_idle_teardown: work structure for scheduling a teardown delayed
|
||||
* @queue_lock: spinlock to syncronise access to message queue
|
||||
* @queue: message queue
|
||||
* @idling: the device is entering idle state
|
||||
|
@ -533,7 +532,6 @@ struct spi_controller {
|
|||
struct kthread_worker kworker;
|
||||
struct task_struct *kworker_task;
|
||||
struct kthread_work pump_messages;
|
||||
struct kthread_delayed_work pump_idle_teardown;
|
||||
spinlock_t queue_lock;
|
||||
struct list_head queue;
|
||||
struct spi_message *cur_msg;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue