diff options
author | Mark Brown <broonie@kernel.org> | 2023-12-04 15:31:42 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-12-04 15:31:42 +0300 |
commit | 06891af2709b5dfa4081ff1f07b9f4c2743834b7 (patch) | |
tree | 672f337b94d3af79268a54b5307af1392f708a1a /scripts | |
parent | 7a030abc0185b30a3fd19a7431347c6f5a82c588 (diff) | |
parent | 9b2ef250b31d46f7ef522bd1bd84942f998bb3f9 (diff) | |
download | linux-06891af2709b5dfa4081ff1f07b9f4c2743834b7.tar.xz |
spi: spl022: fix sleeping in interrupt context
Merge series from Nam Cao <namcao@linutronix.de>:
While running the spl022, I got the following warning:
BUG: sleeping function called from invalid context at drivers/spi/spi.c:1428
This is because between spi transfers, spi_transfer_delay_exec() (who
may sleep if the delay is >10us) is called in interrupt context. This is
a problem for anyone who runs this driver and need more than 10us delay.
Patch 1 adds an error reporting mechanism, needed by patch 2 who switch
to use the default spi_transfer_one_message(), which fix the problem.
The series is tested with polling transfer mode and interrupt transfer
mode. I can't test the DMA mode, so some help testing here is very
appreciated.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/checkstack.pl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/checkstack.pl b/scripts/checkstack.pl index 84f5fb7f1cec..d83ba5d8f3f4 100755 --- a/scripts/checkstack.pl +++ b/scripts/checkstack.pl @@ -97,8 +97,7 @@ my (@stack, $re, $dre, $sub, $x, $xs, $funcre, $min_stack); # 11160: a7 fb ff 60 aghi %r15,-160 # or # 100092: e3 f0 ff c8 ff 71 lay %r15,-56(%r15) - $re = qr/.*(?:lay|ag?hi).*\%r15,-(([0-9]{2}|[3-9])[0-9]{2}) - (?:\(\%r15\))?$/ox; + $re = qr/.*(?:lay|ag?hi).*\%r15,-([0-9]+)(?:\(\%r15\))?$/o; } elsif ($arch eq 'sparc' || $arch eq 'sparc64') { # f0019d10: 9d e3 bf 90 save %sp, -112, %sp $re = qr/.*save.*%sp, -(([0-9]{2}|[3-9])[0-9]{2}), %sp/o; |