Skip to contentSkip to conversation

bcma: use of_dma_configure() to set initial dma mask

PATCH Arnd Bergmann 3 participants 3 messages Sep 5, 2016 – Sep 6, 2016 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 8 lines · CEST Kalle Valo
Quoted 7 lines · Arnd Bergmann

While fixing another bug, I noticed that bcma manually sets up a dma_mask pointer for its child devices. We have a generic helper for that now, which should be able to cope better with any variations that might be needed to deal with cache coherency, unusual DMA address offsets, iommus, or limited DMA masks, none of which are currently handled here.

Quoted 8 lines
Quoted 5 lines

This changes the core to use the of_dma_configure(), like we do for platform devices that are probed directly from DT.

Nobody tested this, so I'll drop the patch.

Should I resend it? I think it's still required.

Arnd

#2 lore raw
Quoted 13 lines · Arnd Bergmann
Quoted 12 lines · CEST Kalle Valo
Quoted 11 lines · Arnd Bergmann

While fixing another bug, I noticed that bcma manually sets up a dma_mask pointer for its child devices. We have a generic helper for that now, which should be able to cope better with any variations that might be needed to deal with cache coherency, unusual DMA address offsets, iommus, or limited DMA masks, none of which are currently handled here.

This changes the core to use the of_dma_configure(), like we do for platform devices that are probed directly from DT.

Quoted 6 lines
Quoted 4 lines
Quoted 1 line

Nobody tested this, so I'll drop the patch.

Should I resend it? I think it's still required.

Maybe you should request some bcma users (Rafał?) explicitly to test this. I have no equipment with CONFIG_OF enabled over here.

Regards,
Arend

#3 lore raw
In reply to Arnd Bergmann
Quoted 13 lines · Arnd Bergmann
Quoted 12 lines · CEST Kalle Valo
Quoted 11 lines · Arnd Bergmann

While fixing another bug, I noticed that bcma manually sets up a dma_mask pointer for its child devices. We have a generic helper for that now, which should be able to cope better with any variations that might be needed to deal with cache coherency, unusual DMA address offsets, iommus, or limited DMA masks, none of which are currently handled here.

This changes the core to use the of_dma_configure(), like we do for platform devices that are probed directly from DT.

Quoted 5 lines
Quoted 3 lines
Quoted 1 line

Nobody tested this, so I'll drop the patch.

Should I resend it? I think it's still required.

Sorry, I misunderstood your comments then. No need to resend, I readded this to my queue:

https://patchwork.kernel.org/patch/8608751/

Signature · 1 line
Kalle Valo