[PATCH v2] usb: host: ohci-at91: add support to enter suspend using SMC
Alan Stern
stern at rowland.harvard.edu
Wed Jun 8 06:54:58 PDT 2022
On Tue, Jun 07, 2022 at 03:34:54PM +0200, Clément Léger wrote:
> When Linux is running under OP-TEE, the SFR is set as secured and thus
> the AT91_OHCIICR_USB_SUSPEND register isn't accessible. Add a SMC to
> do the appropriate call to suspend the controller.
> The SMC id is fetched from the device-tree property
> "microchip,suspend-smc-id". if present, then the syscon regmap is not
> used to enter suspend and a SMC is issued.
>
> Signed-off-by: Clément Léger <clement.leger at bootlin.com>
> ---
>
> Notes:
> Changes in V2:
> - Change check order in ohci_at91_port_suspend()
> - Renamed smc_id to suspend_smc_id for clarity
Acked-by: Alan Stern <stern at rowland.harvard.edu>
More information about the linux-arm-kernel
mailing list