aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDoug Berger <[email protected]>2023-03-09 11:02:24 -0800
committerGreg Kroah-Hartman <[email protected]>2023-03-17 15:01:52 +0100
commit15ac1122fd6d4bf408a03e6f23c7ad4f60b22f9e (patch)
tree7818865ef683f6f886e41817788dcf02181d0ff6 /tools/perf/scripts/python
parent035173c91c6b53144295a5b546c6bad3f40fb8a9 (diff)
serial: 8250_bcm7271: Fix arbitration handling
The arbitration of the UART DMA is mishandled for a few exceptional cases when probing and releasing the driver. It is possible that the DMA register spaces are not defined in device tree for an instance of the driver, so attempts to access the registers in brcmuart_arbitration() would use NULL pointers. It is also possible for the probe function to return an error while still holding the UART DMA. This would prevent the UART DMA from being claimed by an instance that could use it. These errors are addressed by only releasing the UART DMA if it is held by this instance (i.e. priv->dma_enabled == 1) and directing early error paths in probe to this common release_dma handling. Fixes: 41a469482de2 ("serial: 8250: Add new 8250-core based Broadcom STB driver") Signed-off-by: Doug Berger <[email protected]> Acked-by: Florian Fainelli <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions