Re: [PATCH] bus: fsl_mc: Fix driver_managed_dma check

2025-05-17 Thread Christophe Leroy
On Fri, 25 Apr 2025 14:39:28 +0100, Robin Murphy wrote: > Since it's not currently safe to take device_lock() in the IOMMU probe > path, that can race against really_probe() setting dev->driver before > attempting to bind. The race itself isn't so bad, since we're only > concerned with dereferenc

Re: [PATCH] bus: fsl_mc: Fix driver_managed_dma check

2025-04-30 Thread William McVicker
On 04/25/2025, Robin Murphy wrote: > Since it's not currently safe to take device_lock() in the IOMMU probe > path, that can race against really_probe() setting dev->driver before > attempting to bind. The race itself isn't so bad, since we're only > concerned with dereferencing dev->driver itself

[PATCH] bus: fsl_mc: Fix driver_managed_dma check

2025-04-25 Thread Robin Murphy
Since it's not currently safe to take device_lock() in the IOMMU probe path, that can race against really_probe() setting dev->driver before attempting to bind. The race itself isn't so bad, since we're only concerned with dereferencing dev->driver itself anyway, but sadly my attempt to implement t