Re: [PATCHv2] ata: pata_ep93xx: fix PIO fallback when DMA init fails
Damien Le Moal <[email protected]> Thu, 23 Jul 2026 16:37:14 +0900
| Newsgroups | org.kernel.vger.linux-ide,org.kernel.vger.linux-kernel |
|---|---|
| Organization | Western Digital Research |
| Message-ID | <[email protected]> |
On 7/20/26 11:02, Rosen Penev wrote: > ep93xx_pata_dma_init() returns an error when dma_request_chan() fails, > which causes ep93xx_pata_probe() to abort entirely. The probe function > already has a PIO fallback path (it checks both channel pointers before > enabling UDMA), so the DMA init should not fail the probe on non-fatal > errors. > > Propagate -EPROBE_DEFER, such that we allow the DMA controller driver > to load, in case we got probed before the DMA controller driver. > For all other failures (e.g. -ENODEV when the DMA controller is missing > in the device tree), fall back to PIO. > > Assisted-by: Opencode:Big-Pickle > Signed-off-by: Rosen Penev <[email protected]> Applied to for-7.3. Thanks! -- Damien Le Moal Western Digital Research