diff options
| author | Takatoshi Akiyama <[email protected]> | 2017-02-27 15:56:31 +0900 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2017-03-14 10:59:04 +0800 |
| commit | 3c9101766b502a0163d1d437fada5801cf616be2 (patch) | |
| tree | 7425bab15a23f264d748c841e583a3ae2a74a438 /tools/perf/scripts/python/bin | |
| parent | 713b93f1b849527e8c440753fc92cc6c202f2092 (diff) | |
serial: sh-sci: Fix panic when serial console and DMA are enabled
This patch fixes an issue that kernel panic happens when DMA is enabled
and we press enter key while the kernel booting on the serial console.
* An interrupt may occur after sci_request_irq().
* DMA transfer area is initialized by setup_timer() in sci_request_dma()
and used in interrupt.
If an interrupt occurred between sci_request_irq() and setup_timer() in
sci_request_dma(), DMA transfer area has not been initialized yet.
So, this patch changes the order of sci_request_irq() and
sci_request_dma().
Fixes: 73a19e4c0301 ("serial: sh-sci: Add DMA support.")
Signed-off-by: Takatoshi Akiyama <[email protected]>
[Shimoda changes the commit log]
Signed-off-by: Yoshihiro Shimoda <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions