Skip to contentSkip to conversation

imx: Efika: Add pata device

PATCH New Arnaud Patard (Rtp) 3 participants 9 messages Jul 22, 2011

lore
Share & tools
lore
#0 lore raw

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

#2 lore raw

PATCH 1/3 imx51: add pata device

In reply to Arnaud Patard (Rtp)

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

#3 lore raw

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_single instead?

"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/  |
#6 lore raw

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_data im51_mxc_pata_data;

imx51 please

Uwe

Signature · 2 lines
Pengutronix e.K.                           | Uwe Kleine-K?nig            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
#4 lore raw

PATCH 1/3 imx51: add pata device

In reply to Uwe Kleine-König
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_single instead?

"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.

#5 lore raw

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_single instead?

Quoted 8 lines
Quoted 3 lines
Quoted 1 line

"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.

From looking at devices-imx51.h, I don't see no obvious consistant naming scheme :

extern const struct imx_fec_data imx51_fec_data;

driver name: fec

Quoted 2 lines

...
extern const struct imx_imx_i2c_data imx51_imx_i2c_data[];

driver name: imx_i2c

Quoted 2 lines

...
extern const struct imx_mxc_nand_data imx51_mxc_nand_data;

driver name: mxc_nand

Quoted 2 lines

...
extern const struct imx_spi_imx_data imx51_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_data or keep imx_mxc_pata_data or imx_imx_pata_data or imx_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/  |