drivers: dwc_otg: stop GCC from patching FIQ functions
authorJonathan Bell <jonathan@raspberrypi.com>
Wed, 26 Oct 2022 16:46:44 +0000 (17:46 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:33:24 +0000 (11:33 +0000)
commitfa2fbf57b61fba4a9464941856b9b787efb8d21d
treed360b4b559424d361501859bfddfb3193536c869
parentd618b208e92e1f1e19e7089412a908447a5d2e2e
drivers: dwc_otg: stop GCC from patching FIQ functions

Configuring GCC to use task stack protector canaries means it will
insert calls to check functions in FIQ code. This is bad, as a) the
FIQ's stack is banked and b) the failure invokes __stack_chk_fail which
eventually tries to call printk(). Printing to the console inside the
FIQ is generally fatal.

Add CFLAGS to stop this happening in FIQ code.

Also catch one function where notrace wasn't specified.

Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
drivers/usb/host/dwc_otg/Makefile
drivers/usb/host/dwc_otg/dwc_otg_fiq_fsm.c