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)
committerPhil Elwell <phil@raspberrypi.com>
Thu, 27 Oct 2022 12:37:13 +0000 (13:37 +0100)
commit7f52d634c6e810fbc704d579e8e9614d3959c575
treec9be0a94cef921cf3dcf289d9a04044c7da13427
parentd3cfdbb75da06a7dd555d0b0d5686e0def37aadb
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