Skip to contentSkip to conversation

DMA Driver Template Stub

DISCUSSION Eric Schwarz 1 participant 2 messages Sep 19, 2023 – Sep 28, 2023 dmaengine

lore
Share & tools
lore
#0 lore raw

Hello Mailing List,

what is your opinion about creating a driver template stub, which is regarded as gold standard, which driver implementers can copy then?

This template should be properly maintained.
Fixes should then be made first to that template and then be ported to the actual driver implementations.

I have seen quite some isolated locking fixes and also others on the mailing list which does not guarantee a homogenous quality standard.

As an example the altera-msgdma driver had been once derived from the zynqmp-dma driver but quite some fixes, improvements and extensions only made it back into zynqmp-dma and not the altera-msgdma driver (including a spinlock fix).

Apart we wouldn't maybe need to change 59 files in the future, twice.

Cheers
Eric

#1 lore raw

Hello Vinod,

is it worth putting effort into kind of that?

Cheers
Eric

Am 19.09.2023 um 16:26 schrieb Eric Schwarz:

Quoted 15 lines

Hello Mailing List,

what is your opinion about creating a driver template stub, which is regarded as gold standard, which driver implementers can copy then?

This template should be properly maintained.
Fixes should then be made first to that template and then be ported to the actual driver implementations.

I have seen quite some isolated locking fixes and also others on the mailing list which does not guarantee a homogenous quality standard.

As an example the altera-msgdma driver had been once derived from the zynqmp-dma driver but quite some fixes, improvements and extensions only made it back into zynqmp-dma and not the altera-msgdma driver (including a spinlock fix).

Apart we wouldn't maybe need to change 59 files in the future, twice.

Cheers
Eric