History

spi: Go back to immediate teardown

Commit 412e6037324 ("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.

Mark Brown committed 7 years ago

Commit f0125f11 parent 51eea522 files · +33 −91Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/spi/spi.h+0−2
@@ -334,7 +334,6 @@ static inline void spi_unregister_driver(struct spi_driver *sdrv) · 333 unmodified lines
334334 * @kworker: thread struct for message pump
335335 * @kworker_task: pointer to task for message pump kworker thread
336336 * @pump_messages: work struct for scheduling work to the message pump
337− * @pump_idle_teardown: work structure for scheduling a teardown delayed
338337 * @queue_lock: spinlock to syncronise access to message queue
339338 * @queue: message queue
340339 * @idling: the device is entering idle state
@@ -533,7 +532,6 @@ struct spi_controller { · 192 unmodified lines
533532 struct kthread_worker kworker;
534533 struct task_struct *kworker_task;
535534 struct kthread_work pump_messages;
536− struct kthread_delayed_work pump_idle_teardown;
537535 spinlock_t queue_lock;
538536 struct list_head queue;
539537 struct spi_message *cur_msg;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t