> My target is an embedded SoC which has PATA autodetect support. Nice. > First, I need to convert the vendor-supplied legacy IDE driver to a > PATA platform driver. Can you recommend best-of-breed existing PATA > drivers to use as a reference for this work? pata_platform is a dumb platform device driver and shows how to interface to the platform layer. I'm guessing your hardware is a bit smarter in which case you probably want to use pata_platform as a reference for setting up platform class interfaces with arbitary port mappings and something like pata_amd to see how the various cable detect, dma and pio timing functions can be used. If you've got hardware which supports master/slave but only single timing registers take a look at the code in pata_oldpiix and the oldpiix_qc_issue_prot function for how to do timing switching according to the device, and pata_atiixp is a worked example of how to do clock switching on the start/end of DMA operations. Any other questions just ask - To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html