Home
last modified time | relevance | path

Searched hist:df227dc8a68d81b7fe3416eca16d1f21d0b537f0 (Results 1 – 2 of 2) sorted by relevance

/linux/include/linux/soc/ti/
H A Dti-msgmgr.hdiff df227dc8a68d81b7fe3416eca16d1f21d0b537f0 Thu Feb 10 05:16:31 CET 2022 Dave Gerlach <d-gerlach@ti.com> mailbox: ti-msgmgr: Operate mailbox in polled mode during system suspend

During the system suspend path we must set all queues to operate in
polled mode as it is possible for any protocol built using this mailbox,
such as TISCI, to require communication during the no irq phase of suspend,
and we cannot rely on interrupts there.

Polled mode is implemented by allowing the mailbox user to define an
RX channel as part of the message that is sent which is what gets polled
for a response. If polled mode is enabled, this will immediately be
polled for a response at the end of the mailbox send_data op before
returning success for the data send or timing out if no response is
received.

Finally, to ensure polled mode is always enabled during system suspend,
iterate through all queues to set RX queues to polled mode during system
suspend and disable polled mode for all in the resume handler.

Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
/linux/drivers/mailbox/
H A Dti-msgmgr.cdiff df227dc8a68d81b7fe3416eca16d1f21d0b537f0 Thu Feb 10 05:16:31 CET 2022 Dave Gerlach <d-gerlach@ti.com> mailbox: ti-msgmgr: Operate mailbox in polled mode during system suspend

During the system suspend path we must set all queues to operate in
polled mode as it is possible for any protocol built using this mailbox,
such as TISCI, to require communication during the no irq phase of suspend,
and we cannot rely on interrupts there.

Polled mode is implemented by allowing the mailbox user to define an
RX channel as part of the message that is sent which is what gets polled
for a response. If polled mode is enabled, this will immediately be
polled for a response at the end of the mailbox send_data op before
returning success for the data send or timing out if no response is
received.

Finally, to ensure polled mode is always enabled during system suspend,
iterate through all queues to set RX queues to polled mode during system
suspend and disable polled mode for all in the resume handler.

Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>