imx: Efika: Add pata device
cover imx: Efika: Add pata device
This patchset is adding ressources, clock and device declarations for the pata device available on imx51. Last patch enables pata on efika platforms. To be complete, this patchset needs a driver, which is about to be sent for merge to ata developers.
v2: created a imx51_add_mxc_pata() as suggested
Arnaud
PATCH 1/3 imx51: add pata device
An embedded and charset-unspecified text was scrubbed...
Name: efika_pata_add_dev.patch
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20110722/be54f3a6/attachment.ksh>
PATCH 1/3 imx51: add pata device
On Fri, Jul 22, 2011 at 7:37 AM, Arnaud Patard
<[email protected]> wrote:
...
Quoted 4 lines
+#define
imx_mxc_pata_data_entry_single(soc)? ? ? ? ? ? ? ? ? ? ? ? ? ?\
+ ? ? ? { ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? \
+ ? ? ? ? ? ? ? .iobase = soc ##_ATA_BASE_ADDR, ? ? ? ? ? ? ? ? ? ? ? ?\
+ ? ? ? ? ? ? ? .irq = soc ##_MXC_INT_ATA, ? ? ? ? ? ? ? ? ? ? ? ? ? ? \
Why not imx_pata_data_entry_single instead?
"imx_mxc" looks redundant.
Regards,
Fabio Estevam
PATCH 1/3 imx51: add pata device
Quoted 11 lines · Fabio Estevam
On Fri, Jul 22, 2011 at 7:37 AM, Arnaud Patard
<[email protected]> wrote:
...Quoted 4 lines
+#define
imx_mxc_pata_data_entry_single(soc)? ? ? ? ? ? ? ? ? ? ? ? ? ?\
+ ? ? ? { ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? \
+ ? ? ? ? ? ? ? .iobase = soc ##_ATA_BASE_ADDR, ? ? ? ? ? ? ? ? ? ? ? ?\
+ ? ? ? ? ? ? ? .irq = soc ##_MXC_INT_ATA, ? ? ? ? ? ? ? ? ? ? ? ? ? ? \Why not
imx_pata_data_entry_singleinstead?"
imx_mxc" looks redundant.
imx is the platform prefix, mxc_pata the device's name. So IMHO the name is right and consistent with the other device registration stuff.
Best regards
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |
PATCH 1/3 imx51: add pata device
Quoted 14 lines · Uwe Kleine-K?nig
Quoted 11 lines · Fabio Estevam
On Fri, Jul 22, 2011 at 7:37 AM, Arnaud Patard
<[email protected]> wrote:
...Quoted 4 lines
+#define
imx_mxc_pata_data_entry_single(soc)? ? ? ? ? ? ? ? ? ? ? ? ? ?\
+ ? ? ? { ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? \
+ ? ? ? ? ? ? ? .iobase = soc ##_ATA_BASE_ADDR, ? ? ? ? ? ? ? ? ? ? ? ?\
+ ? ? ? ? ? ? ? .irq = soc ##_MXC_INT_ATA, ? ? ? ? ? ? ? ? ? ? ? ? ? ? \Why not
imx_pata_data_entry_singleinstead?"
imx_mxc" looks redundant.imx is the platform prefix,
mxc_patathe device's name. So IMHO the name is right and consistent with the other device registration stuff.
PATCH 1/3 imx51: add pata device
Quoted 13 lines · Arnaud Patard
Quoted 11 lines · Uwe Kleine-K?nig
Quoted 10 lines · Fabio Estevam
On Fri, Jul 22, 2011 at 7:37 AM, Arnaud Patard
<[email protected]> wrote:
...Quoted 4 lines
+#define
imx_mxc_pata_data_entry_single(soc)? ? ? ? ? ? ? ? ? ? ? ? ? ?\
+ ? ? ? { ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? \
+ ? ? ? ? ? ? ? .iobase = soc ##_ATA_BASE_ADDR, ? ? ? ? ? ? ? ? ? ? ? ?\
+ ? ? ? ? ? ? ? .irq = soc ##_MXC_INT_ATA, ? ? ? ? ? ? ? ? ? ? ? ? ? ? \Why not
imx_pata_data_entry_singleinstead?
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
"
imx_mxc" looks redundant.imx is the platform prefix,
mxc_patathe device's name. So IMHO the name is right and consistent with the other device registration stuff.From looking at
devices-imx51.h, I don't see no obvious consistant naming scheme :extern const struct
imx_fec_dataimx51_fec_data;
driver name: fec
Quoted 2 lines
...
extern const structimx_imx_i2c_dataimx51_imx_i2c_data[];
driver name: imx_i2c
Quoted 2 lines
...
extern const structimx_mxc_nand_dataimx51_mxc_nand_data;
driver name: mxc_nand
Quoted 2 lines
...
extern const structimx_spi_imx_dataimx51_cspi_data;
driver name: spi_imx
So the driver names are not consistent, ok. But the names used in devices-imx51.h match these. It's always imx_${drivername}_data.
Quoted 2 lines
So, I can use either
imx_pata_dataor keepimx_mxc_pata_dataorimx_imx_pata_dataorimx_pata_imx_data. What do you both prefer ?
So if your driver is called "mxc_pata", please use imx_mxc_pata_data_entry_single.
Best regards
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |
PATCH 1/3 imx51: add pata device
In reply to Arnaud Patard (Rtp)Hello Arnaud,
Quoted 1 line · Arnaud Patard
+extern const struct
imx_mxc_pata_dataim51_mxc_pata_data;
imx51 please
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |
PATCH 2/3 imx51: add pata clock
In reply to Arnaud Patard (Rtp)An embedded and charset-unspecified text was scrubbed...
Name: efika_pata_add_clock.patch
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20110722/27043c1c/attachment.ksh>
PATCH 3/3 imx: efika: Enable pata.
In reply to Arnaud Patard (Rtp)An embedded and charset-unspecified text was scrubbed...
Name: efika_pata_enable_pata.patch
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20110722/e1d30763/attachment.ksh>