460EX on-chip SATA driver<resubmisison>
PATCH 1/1 460EX on-chip SATA driver<resubmisison>
This patch enables the on-chip DWC SATA controller of the AppliedMicro processor 460EX.
---
This patch incorporates the changes advised in the mailing list. The device tree changes were submitted as a seperate patch.
drivers/ata/Kconfig | 9 + drivers/ata/Makefile | 1 + drivers/ata/sata_dwc_460ex.c | 1756 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 1766 insertions(+), 0 deletions(-) create mode 100644 drivers/ata/sata_dwc_460ex.c
drivers/ata/Kconfig +9 -0
@@ -98,6 +98,15 @@ config SATA_SIL24 If unsure, say N. +config SATA_DWC + tristate "DesignWare Cores SATA support" + depends on 460EX + help + This option enables support for the on-chip SATA controller of the + AppliedMicro processor 460EX. + + If unsure, say N. + config ATA_SFF bool "ATA SFF support" default y
drivers/ata/Makefile +1 -0
@@ -7,6 +7,7 @@ obj-$(CONFIG_SATA_AHCI_PLATFORM) += ahci_platform.o libahci.o obj-$(CONFIG_SATA_FSL) += sata_fsl.o obj-$(CONFIG_SATA_INIC162X) += sata_inic162x.o obj-$(CONFIG_SATA_SIL24) += sata_sil24.o +obj-$(CONFIG_SATA_DWC) += sata_dwc_460ex.o # SFF w/ custom DMA obj-$(CONFIG_PDC_ADMA) += pdc_adma.o
drivers/ata/sata_dwc_460ex.c new file +1756 -0
1,756 lines not on this page · raw message
Signature · 1 line
1.5.6.3
Dear Rupjyoti Sarmah,
Quoted 9 lines · In message <[email protected]> you wrote:
This patch enables the on-chip DWC SATA controller of the AppliedMicro processor 460EX.
Signed-off-by Rupjyoti Sarmah <[email protected]>Signed-off-by Mark Miesfeld <[email protected]>Signed-off-by Prodyut Hazarika <[email protected]>---
This patch incorporates the changes advised in the mailing list. The device tree changes were submitted as a seperate patch.
Which kernel is this patch supposed to be applied to?
Using current mainline (v2.6.35-rc3-262-g984bc96) the patch applies without problems, but when I enable it in the kernel configuration I get this:
drivers/ata/sata_dwc_460ex.c:43:1: warning: "DRV_NAME" redefined
In file included from drivers/ata/sata_dwc_460ex.c:38:drivers/ata/libata.h:31:1: warning: this is the location of the previous definition drivers/ata/sata_dwc_460ex.c:44:1: warning: "DRV_VERSION" redefineddrivers/ata/libata.h:32:1: warning: this is the location of the previous definition drivers/ata/sata_dwc_460ex.c: In function 'sata_dwc_scr_read':drivers/ata/sata_dwc_460ex.c:777: error: 'struct ata_port' has no member named 'ioaddr' drivers/ata/sata_dwc_460ex.c: In function 'sata_dwc_scr_write':drivers/ata/sata_dwc_460ex.c:793: error: 'struct ata_port' has no member named 'ioaddr' drivers/ata/sata_dwc_460ex.c: In function 'sata_dwc_error_intr':drivers/ata/sata_dwc_460ex.c:844: error: 'struct ata_port_operations' has no member named 'sff_check_status' drivers/ata/sata_dwc_460ex.c: In function 'sata_dwc_isr':drivers/ata/sata_dwc_460ex.c:953: error: 'struct ata_port_operations' has no member named 'sff_check_status' drivers/ata/sata_dwc_460ex.c:957: error: 'struct ata_port_operations' has no member named 'sff_check_status' drivers/ata/sata_dwc_460ex.c:991: error: implicit declaration of function 'ata_sff_hsm_move' drivers/ata/sata_dwc_460ex.c:1030: error: 'struct ata_port_operations' has no member named 'sff_check_status' drivers/ata/sata_dwc_460ex.c: At top level:drivers/ata/sata_dwc_460ex.c:1213: warning: 'struct ata_ioports' declared inside parameter list drivers/ata/sata_dwc_460ex.c:1213: warning: its scope is only this definition or declaration, which is probably not what you want drivers/ata/sata_dwc_460ex.c: In function 'sata_dwc_setup_port':drivers/ata/sata_dwc_460ex.c:1215: error: dereferencing pointer to incomplete type drivers/ata/sata_dwc_460ex.c:1216: error: dereferencing pointer to incomplete type drivers/ata/sata_dwc_460ex.c:1218: error: dereferencing pointer to incomplete type drivers/ata/sata_dwc_460ex.c:1219: error: dereferencing pointer to incomplete type drivers/ata/sata_dwc_460ex.c:1221: error: dereferencing pointer to incomplete type drivers/ata/sata_dwc_460ex.c:1223: error: dereferencing pointer to incomplete type drivers/ata/sata_dwc_460ex.c:1224: error: dereferencing pointer to incomplete type drivers/ata/sata_dwc_460ex.c:1225: error: dereferencing pointer to incomplete type drivers/ata/sata_dwc_460ex.c:1227: error: dereferencing pointer to incomplete type drivers/ata/sata_dwc_460ex.c:1228: error: dereferencing pointer to incomplete type drivers/ata/sata_dwc_460ex.c:1229: error: dereferencing pointer to incomplete type drivers/ata/sata_dwc_460ex.c:1231: error: dereferencing pointer to incomplete type drivers/ata/sata_dwc_460ex.c:1232: error: dereferencing pointer to incomplete type drivers/ata/sata_dwc_460ex.c: In function 'sata_dwc_port_start':drivers/ata/sata_dwc_460ex.c:1273: error: 'struct ata_port' has no member named 'bmdma_prd' drivers/ata/sata_dwc_460ex.c:1274: error: 'struct ata_port' has no member named 'bmdma_prd_dma' drivers/ata/sata_dwc_460ex.c: In function 'sata_dwc_exec_command_by_tag':drivers/ata/sata_dwc_460ex.c:1356: warning: passing argument 1 of 'ata_get_cmd_descript' makes integer from pointer without a cast drivers/ata/sata_dwc_460ex.c:1369: error: implicit declaration of function 'ata_sff_exec_command' drivers/ata/sata_dwc_460ex.c: In function 'sata_dwc_qc_issue':drivers/ata/sata_dwc_460ex.c:1512: error: 'struct ata_port_operations' has no member named 'sff_tf_load' drivers/ata/sata_dwc_460ex.c:1516: error: implicit declaration of function 'ata_sff_qc_issue' drivers/ata/sata_dwc_460ex.c: In function 'sata_dwc_error_handler':drivers/ata/sata_dwc_460ex.c:1545: error: implicit declaration of function 'ata_sff_error_handler' drivers/ata/sata_dwc_460ex.c: At top level:drivers/ata/sata_dwc_460ex.c:1564: error: 'ata_sff_port_ops' undeclared here (not in a function) drivers/ata/sata_dwc_460ex.c:1577: error: unknown field 'bmdma_setup' specified in initializer drivers/ata/sata_dwc_460ex.c:1577: warning: initialization from incompatible pointer type drivers/ata/sata_dwc_460ex.c:1578: error: unknown field 'bmdma_start' specified in initializer drivers/ata/sata_dwc_460ex.c:1578: warning: initialization from incompatible pointer type drivers/ata/sata_dwc_460ex.c: In function 'sata_dwc_probe':drivers/ata/sata_dwc_460ex.c:1638: error: 'struct ata_port' has no member named 'ioaddr' drivers/ata/sata_dwc_460ex.c:1639: error: 'struct ata_port' has no member named 'ioaddr' drivers/ata/sata_dwc_460ex.c:1641: error: 'struct ata_port' has no member named 'ioaddr'
make[2]: *** [drivers/ata/sata_dwc_460ex.o] Error 1
make[1]: *** [drivers/ata] Error 2
make: *** [drivers] Error 2
Does this require any specific kernel version?
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] A direct quote from the Boss: "We passed over a lot of good people to get the ones we hired."
Hi Wolfgang,
I took the mainline kernel v2.6.35-rc3 and downloaded using the git download link.
I created the patch on 6/24/2010 after doing a git pull.
With the kernel tree on 6/24/2010 the driver compiled. I also tested the functionality on the SATA drive & it worked.
Regards,
Rup
-----Original Message-----
From: Wolfgang Denk [mailto:[email protected]]
Sent: Wednesday, June 30, 2010 5:28 PM
To: Rupjyoti Sarmah
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH v1]460EX on-chip SATA driver<resubmisison>
Dear Rupjyoti Sarmah,
Quoted 1 line · In message <[email protected]> you wrote:
This patch enables the on-chip DWC SATA controller of the AppliedMicro
processor 460EX.
Quoted 7 lines
Signed-off-by Rupjyoti Sarmah <[email protected]>Signed-off-by Mark Miesfeld <[email protected]>Signed-off-by Prodyut Hazarika <[email protected]>---
This patch incorporates the changes advised in the mailing list. The
device
Quoted 1 line
tree changes were submitted as a seperate patch.
Which kernel is this patch supposed to be applied to?
Using current mainline (v2.6.35-rc3-262-g984bc96) the patch applies without problems, but when I enable it in the kernel configuration I get this:
drivers/ata/sata_dwc_460ex.c:43:1: warning: "DRV_NAME" redefined In file included from drivers/ata/sata_dwc_460ex.c:38:drivers/ata/libata.h:31:1: warning: this is the location of the previous definitiondrivers/ata/sata_dwc_460ex.c:44:1: warning: "DRV_VERSION" redefined drivers/ata/libata.h:32:1: warning: this is the location of the previous definitiondrivers/ata/sata_dwc_460ex.c: In function 'sata_dwc_scr_read':drivers/ata/sata_dwc_460ex.c:777: error: 'struct ata_port' has no member named 'ioaddr'drivers/ata/sata_dwc_460ex.c: In function 'sata_dwc_scr_write':drivers/ata/sata_dwc_460ex.c:793: error: 'struct ata_port' has no member named 'ioaddr'drivers/ata/sata_dwc_460ex.c: In function 'sata_dwc_error_intr':drivers/ata/sata_dwc_460ex.c:844: error: 'struct ata_port_operations' has no member named 'sff_check_status' drivers/ata/sata_dwc_460ex.c: In function 'sata_dwc_isr':drivers/ata/sata_dwc_460ex.c:953: error: 'struct ata_port_operations' has no member named 'sff_check_status' drivers/ata/sata_dwc_460ex.c:957: error: 'struct ata_port_operations' has no member named 'sff_check_status' drivers/ata/sata_dwc_460ex.c:991: error: implicit declaration of function 'ata_sff_hsm_move'drivers/ata/sata_dwc_460ex.c:1030: error: 'struct ata_port_operations' has no member named 'sff_check_status' drivers/ata/sata_dwc_460ex.c: At top level:drivers/ata/sata_dwc_460ex.c:1213: warning: 'struct ata_ioports' declared inside parameter listdrivers/ata/sata_dwc_460ex.c:1213: warning: its scope is only this definition or declaration, which is probably not what you want drivers/ata/sata_dwc_460ex.c: In function 'sata_dwc_setup_port':drivers/ata/sata_dwc_460ex.c:1215: error: dereferencing pointer to incomplete typedrivers/ata/sata_dwc_460ex.c:1216: error: dereferencing pointer to incomplete typedrivers/ata/sata_dwc_460ex.c:1218: error: dereferencing pointer to incomplete typedrivers/ata/sata_dwc_460ex.c:1219: error: dereferencing pointer to incomplete typedrivers/ata/sata_dwc_460ex.c:1221: error: dereferencing pointer to incomplete typedrivers/ata/sata_dwc_460ex.c:1223: error: dereferencing pointer to incomplete typedrivers/ata/sata_dwc_460ex.c:1224: error: dereferencing pointer to incomplete typedrivers/ata/sata_dwc_460ex.c:1225: error: dereferencing pointer to incomplete typedrivers/ata/sata_dwc_460ex.c:1227: error: dereferencing pointer to incomplete typedrivers/ata/sata_dwc_460ex.c:1228: error: dereferencing pointer to incomplete typedrivers/ata/sata_dwc_460ex.c:1229: error: dereferencing pointer to incomplete typedrivers/ata/sata_dwc_460ex.c:1231: error: dereferencing pointer to incomplete typedrivers/ata/sata_dwc_460ex.c:1232: error: dereferencing pointer to incomplete typedrivers/ata/sata_dwc_460ex.c: In function 'sata_dwc_port_start':drivers/ata/sata_dwc_460ex.c:1273: error: 'struct ata_port' has no member named 'bmdma_prd'drivers/ata/sata_dwc_460ex.c:1274: error: 'struct ata_port' has no member named 'bmdma_prd_dma'drivers/ata/sata_dwc_460ex.c: In function 'sata_dwc_exec_command_by_tag':drivers/ata/sata_dwc_460ex.c:1356: warning: passing argument 1 of 'ata_get_cmd_descript' makes integer from pointer without a cast drivers/ata/sata_dwc_460ex.c:1369: error: implicit declaration of function 'ata_sff_exec_command'drivers/ata/sata_dwc_460ex.c: In function 'sata_dwc_qc_issue':drivers/ata/sata_dwc_460ex.c:1512: error: 'struct ata_port_operations' has no member named 'sff_tf_load' drivers/ata/sata_dwc_460ex.c:1516: error: implicit declaration of function 'ata_sff_qc_issue'drivers/ata/sata_dwc_460ex.c: In function 'sata_dwc_error_handler':drivers/ata/sata_dwc_460ex.c:1545: error: implicit declaration of function 'ata_sff_error_handler'drivers/ata/sata_dwc_460ex.c: At top level:drivers/ata/sata_dwc_460ex.c:1564: error: 'ata_sff_port_ops' undeclared here (not in a function)drivers/ata/sata_dwc_460ex.c:1577: error: unknown field 'bmdma_setup' specified in initializerdrivers/ata/sata_dwc_460ex.c:1577: warning: initialization from incompatible pointer typedrivers/ata/sata_dwc_460ex.c:1578: error: unknown field 'bmdma_start' specified in initializerdrivers/ata/sata_dwc_460ex.c:1578: warning: initialization from incompatible pointer typedrivers/ata/sata_dwc_460ex.c: In function 'sata_dwc_probe':drivers/ata/sata_dwc_460ex.c:1638: error: 'struct ata_port' has no member named 'ioaddr'drivers/ata/sata_dwc_460ex.c:1639: error: 'struct ata_port' has no member named 'ioaddr'drivers/ata/sata_dwc_460ex.c:1641: error: 'struct ata_port' has no member named 'ioaddr'
make[2]: *** [drivers/ata/sata_dwc_460ex.o] Error 1
make[1]: *** [drivers/ata] Error 2
make: *** [drivers] Error 2
Does this require any specific kernel version?
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] A direct quote from the Boss: "We passed over a lot of good people to get the ones we hired."
Dear Rupjyoti Sarmah,
Quoted 7 lines · In message <[email protected]> you wrote:
I took the mainline kernel v2.6.35-rc3 and downloaded using the git download link.
I created the patch on 6/24/2010 after doing a git pull.With the kernel tree on 6/24/2010 the driver compiled. I also tested the functionality on the SATA drive & it worked.
v2.6.35-rc3 was released on June 11, 13 days before 6/24/2010.
Can you please give the exact git commit ID so I can try reproducing this?
Best regards,
Wolfgang Denk
Signature · 7 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] There comes to all races an ultimate crisis which you have yet to face .... One day our minds became so powerful we dared think of ourselves as gods. -- Sargon, "Return to Tomorrow", stardate 4768.3
Dear Rupjyoti Sarmah,
Quoted 4 lines · In message <[email protected]> you wrote:
I took the mainline kernel v2.6.35-rc3 and downloaded using the git download link.
I created the patch on 6/24/2010 after doing a git pull.
I don;t think that you used v2.6.35-rc3; using this version, I still get this:
drivers/ata/sata_dwc_460ex.c:43:1: warning: "DRV_NAME" redefined
In file included from drivers/ata/sata_dwc_460ex.c:38:drivers/ata/libata.h:31:1: warning: this is the location of the previous definition drivers/ata/sata_dwc_460ex.c:44:1: warning: "DRV_VERSION" redefineddrivers/ata/libata.h:32:1: warning: this is the location of the previous definition drivers/ata/sata_dwc_460ex.c: In function 'sata_dwc_scr_read':drivers/ata/sata_dwc_460ex.c:777: error: 'struct ata_port' has no member named 'ioaddr' drivers/ata/sata_dwc_460ex.c: In function 'sata_dwc_scr_write':drivers/ata/sata_dwc_460ex.c:793: error: 'struct ata_port' has no member named 'ioaddr' drivers/ata/sata_dwc_460ex.c: In function 'sata_dwc_error_intr':drivers/ata/sata_dwc_460ex.c:844: error: 'struct ata_port_operations' has no member named 'sff_check_status' drivers/ata/sata_dwc_460ex.c: In function 'sata_dwc_isr':drivers/ata/sata_dwc_460ex.c:953: error: 'struct ata_port_operations' has no member named 'sff_check_status' drivers/ata/sata_dwc_460ex.c:957: error: 'struct ata_port_operations' has no member named 'sff_check_status' drivers/ata/sata_dwc_460ex.c:991: error: implicit declaration of function 'ata_sff_hsm_move' drivers/ata/sata_dwc_460ex.c:1030: error: 'struct ata_port_operations' has no member named 'sff_check_status' drivers/ata/sata_dwc_460ex.c: At top level:drivers/ata/sata_dwc_460ex.c:1213: warning: 'struct ata_ioports' declared inside parameter list drivers/ata/sata_dwc_460ex.c:1213: warning: its scope is only this definition or declaration, which is probably not what you want drivers/ata/sata_dwc_460ex.c: In function 'sata_dwc_setup_port':drivers/ata/sata_dwc_460ex.c:1215: error: dereferencing pointer to incomplete type drivers/ata/sata_dwc_460ex.c:1216: error: dereferencing pointer to incomplete type drivers/ata/sata_dwc_460ex.c:1218: error: dereferencing pointer to incomplete type drivers/ata/sata_dwc_460ex.c:1219: error: dereferencing pointer to incomplete type drivers/ata/sata_dwc_460ex.c:1221: error: dereferencing pointer to incomplete type drivers/ata/sata_dwc_460ex.c:1223: error: dereferencing pointer to incomplete type drivers/ata/sata_dwc_460ex.c:1224: error: dereferencing pointer to incomplete type drivers/ata/sata_dwc_460ex.c:1225: error: dereferencing pointer to incomplete type drivers/ata/sata_dwc_460ex.c:1227: error: dereferencing pointer to incomplete type drivers/ata/sata_dwc_460ex.c:1228: error: dereferencing pointer to incomplete type drivers/ata/sata_dwc_460ex.c:1229: error: dereferencing pointer to incomplete type drivers/ata/sata_dwc_460ex.c:1231: error: dereferencing pointer to incomplete type drivers/ata/sata_dwc_460ex.c:1232: error: dereferencing pointer to incomplete type drivers/ata/sata_dwc_460ex.c: In function 'sata_dwc_port_start':drivers/ata/sata_dwc_460ex.c:1273: error: 'struct ata_port' has no member named 'bmdma_prd' drivers/ata/sata_dwc_460ex.c:1274: error: 'struct ata_port' has no member named 'bmdma_prd_dma' drivers/ata/sata_dwc_460ex.c: In function 'sata_dwc_exec_command_by_tag':drivers/ata/sata_dwc_460ex.c:1356: warning: passing argument 1 of 'ata_get_cmd_descript' makes integer from pointer without a cast drivers/ata/sata_dwc_460ex.c:1369: error: implicit declaration of function 'ata_sff_exec_command' drivers/ata/sata_dwc_460ex.c: In function 'sata_dwc_qc_issue':drivers/ata/sata_dwc_460ex.c:1512: error: 'struct ata_port_operations' has no member named 'sff_tf_load' drivers/ata/sata_dwc_460ex.c:1516: error: implicit declaration of function 'ata_sff_qc_issue' drivers/ata/sata_dwc_460ex.c: In function 'sata_dwc_error_handler':drivers/ata/sata_dwc_460ex.c:1545: error: implicit declaration of function 'ata_sff_error_handler' drivers/ata/sata_dwc_460ex.c: At top level:drivers/ata/sata_dwc_460ex.c:1564: error: 'ata_sff_port_ops' undeclared here (not in a function) drivers/ata/sata_dwc_460ex.c:1577: error: unknown field 'bmdma_setup' specified in initializer drivers/ata/sata_dwc_460ex.c:1577: warning: initialization from incompatible pointer type drivers/ata/sata_dwc_460ex.c:1578: error: unknown field 'bmdma_start' specified in initializer drivers/ata/sata_dwc_460ex.c:1578: warning: initialization from incompatible pointer type drivers/ata/sata_dwc_460ex.c: In function 'sata_dwc_probe':drivers/ata/sata_dwc_460ex.c:1638: error: 'struct ata_port' has no member named 'ioaddr' drivers/ata/sata_dwc_460ex.c:1639: error: 'struct ata_port' has no member named 'ioaddr' drivers/ata/sata_dwc_460ex.c:1641: error: 'struct ata_port' has no member named 'ioaddr'
make[2]: *** [drivers/ata/sata_dwc_460ex.o] Error 1
make[1]: *** [drivers/ata] Error 2
make: *** [drivers] Error 2
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] Often it is fatal to live too long. - Racine
Quoted 11 lines · Wolfgang Denk
Dear Rupjyoti Sarmah,
Quoted 4 lines · In message<[email protected]> you wrote:
I took the mainline kernel v2.6.35-rc3 and downloaded using the git download link.
I created the patch on 6/24/2010 after doing a git pull.I don;t think that you used v2.6.35-rc3; using this version, I still get this:
Quoted 11 lines
drivers/ata/sata_dwc_460ex.c:43:1: warning: "DRV_NAME" redefined
In file included fromdrivers/ata/sata_dwc_460ex.c:38:drivers/ata/libata.h:31:1: warning: this is the location of the previous definitiondrivers/ata/sata_dwc_460ex.c:44:1: warning: "DRV_VERSION" redefineddrivers/ata/libata.h:32:1: warning: this is the location of the previous definitiondrivers/ata/sata_dwc_460ex.c: In function 'sata_dwc_scr_read':drivers/ata/sata_dwc_460ex.c:777: error: 'structata_port' has no member named 'ioaddr'drivers/ata/sata_dwc_460ex.c: In function 'sata_dwc_scr_write':drivers/ata/sata_dwc_460ex.c:793: error: 'structata_port' has no member named 'ioaddr'drivers/ata/sata_dwc_460ex.c: In function 'sata_dwc_error_intr':drivers/ata/sata_dwc_460ex.c:844: error: 'structata_port_operations' has no member named 'sff_check_status'
It looks like -your- build config is missing CONFIG_ATA_SFF or similar.
If you actually look at include/linux/libata.h, you see that struct ata_port_operations most definitely has a member named sff_check_status, for example. Ditto ata_port and member ioaddr, etc.
Jeff
Quoted 24 lines · Jeff Garzik
Quoted 11 lines · Wolfgang Denk
Dear Rupjyoti Sarmah,
Quoted 4 lines · In message<[email protected]> you wrote:
I took the mainline kernel v2.6.35-rc3 and downloaded using the git download link.
I created the patch on 6/24/2010 after doing a git pull.I don;t think that you used v2.6.35-rc3; using this version, I still get this:
Quoted 11 lines
drivers/ata/sata_dwc_460ex.c:43:1: warning: "DRV_NAME" redefined
In file included fromdrivers/ata/sata_dwc_460ex.c:38:drivers/ata/libata.h:31:1: warning: this is the location of the previous definitiondrivers/ata/sata_dwc_460ex.c:44:1: warning: "DRV_VERSION" redefineddrivers/ata/libata.h:32:1: warning: this is the location of the previous definitiondrivers/ata/sata_dwc_460ex.c: In function 'sata_dwc_scr_read':drivers/ata/sata_dwc_460ex.c:777: error: 'structata_port' has no member named 'ioaddr'drivers/ata/sata_dwc_460ex.c: In function 'sata_dwc_scr_write':drivers/ata/sata_dwc_460ex.c:793: error: 'structata_port' has no member named 'ioaddr'drivers/ata/sata_dwc_460ex.c: In function 'sata_dwc_error_intr':drivers/ata/sata_dwc_460ex.c:844: error: 'structata_port_operations' has no member named 'sff_check_status'
Quoted 5 lines
It looks like -your- build config is missing
CONFIG_ATA_SFFor similar.If you actually look at
include/linux/libata.h, you see that structata_port_operationsmost definitely has a member namedsff_check_status, for example. Dittoata_portand member ioaddr, etc.
The driver doesn't depend on CONFIG_ATA_SFF in it's Kconfig file, but seems to require it at build time. Isn't that something that needs fixing in the driver?
josh
Dear Josh Boyer,
Quoted 4 lines · In message <[email protected]> you wrote:
The driver doesn't depend on
CONFIG_ATA_SFFin it'sKconfigfile, but seems to require it at build time. Isn't that something that needs fixing in the driver?
Right. Next question is if this is really needed for this driver.
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] Copy from one, it's plagiarism; copy from two, it's research.
Dear All,
The Synopsis design ware core is task file orientated so the driver would still need CONFIG_ATA_SFF.
I would be fixing the Kconfig file to make it dependent on the CONFIG_ATA_SFF.
Regards,
Rup
-----Original Message-----
From: Wolfgang Denk [mailto:[email protected]]
Sent: Thursday, July 01, 2010 4:25 AM
To: Josh Boyer
Cc: Jeff Garzik; [email protected]; [email protected]; Rupjyoti Sarmah; [email protected]; [email protected]
Subject: Re: [PATCH v1]460EX on-chip SATA driver<resubmisison>
Dear Josh Boyer,
Quoted 2 lines · In message <[email protected]> you wrote:
The driver doesn't depend on
CONFIG_ATA_SFFin it'sKconfigfile, but
seems to
Quoted 2 lines
require it at build time. Isn't that something that needs fixing in the driver?
Right. Next question is if this is really needed for this driver.
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] Copy from one, it's plagiarism; copy from two, it's research.