Skip to contentSkip to conversation

SATA framework and Freescale SATA controller support

PATCH Superseded Dave Liu 3 participants 4 messages Mar 26, 2008 – Mar 27, 2008

lore
Share & tools
lore

Dave Liu

author
#0 lore raw

v4 cover SATA framework and Freescale SATA controller support

Dear Wolfgang,

According to your suggestion, I re-spinned the patch series. The ata_piix driver is only used by x86 sc520_cdp board, I have not the board, so I can not test it. but building/compiling it is passed!

I hope it meet your requirement now.
please apply it.

Very thanks,
Dave

The following changes since commit 18e69a35efbb078403db0c0063986470dad7d082:
Anton Vorontsov (1):
83xx/fdt_support: let user specifiy FSL USB Dual-Role controller
role

are available in the git repository at:

git://git.ap.freescale.net/scm/u-boot.git develop

Dave Liu (11):
ata: merge the ata_piix driver
ata: merge the header of ata_piix driver
ata: add the support for SATA framework
ata: make the ata_piix driver using new SATA framework
ata: add the libata support
ata: add the fis struct for SATA
ata: enable the sata initialize on boot up
ata: add the readme for SATA command line
mpc83xx: initialize serdes for MPC837xEMDS boards
mpc83xx: enable the SATA interface on mpc837xemds board
drivers: add the support for Freescale SATA controller

 board/freescale/mpc837xemds/mpc837xemds.c |   33 +
 common/Makefile                           |    2 +-
 common/cmd_sata.c                         |  766 +++
+--------------------
 disk/part.c                               |   14 +
 disk/part_dos.c                           |    2 +
 disk/part_iso.c                           |    2 +
 disk/part_mac.c                           |    1 +
 doc/README.sata                           |   69 +++
 drivers/block/Makefile                    |    2 +
 drivers/block/ata_piix.c                  |  572 ++++++++++++++++++-
 drivers/block/ata_piix.h                  |   90 +++
 drivers/block/fsl_sata.c                  |  916 ++++++++++++++++++++++
+++++++
 drivers/block/fsl_sata.h                  |  374 ++++++++++++
 drivers/block/libata.c                    |  158 +++++
 include/configs/MPC837XEMDS.h             |   28 +
 include/configs/sc520_cdp.h               |   27 +-
 include/fis.h                             |  156 +++++
 include/libata.h                          |  205 +++++++
 include/part.h                            |    3 +
 include/sata.h                            |  112 +----
 lib_ppc/board.c                           |    8 +
 21 files changed, 2751 insertions(+), 789 deletions(-)
 create mode 100644 doc/README.sata
 create mode 100644 drivers/block/ata_piix.h
 create mode 100644 drivers/block/fsl_sata.c
 create mode 100644 drivers/block/fsl_sata.h
 create mode 100644 drivers/block/libata.c
 create mode 100644 include/fis.h
 create mode 100644 include/libata.h
#1 lore raw

v4 cover SATA framework and Freescale SATA controller support

Dear Dave,

Quoted 4 lines · in message <[email protected]> you wrote:

According to your suggestion, I re-spinned the patch series. The ata_piix driver is only used by x86 sc520_cdp board, I have not the board, so I can not test it. but building/compiling it is passed!

Understood.

Quoted 2 lines

I hope it meet your requirement now.
please apply it.

I will apply it so we make some progress, but please see comments below.

Quoted 4 lines

Dave Liu (11):
ata: merge the ata_piix driver
ata: merge the header of ata_piix driver
ata: add the support for SATA framework

Quoted 8 lines

ata: make the ata_piix driver using new SATA framework
ata: add the libata support
ata: add the fis struct for SATA
ata: enable the sata initialize on boot up
ata: add the readme for SATA command line
mpc83xx: initialize serdes for MPC837xEMDS boards
mpc83xx: enable the SATA interface on mpc837xemds board
drivers: add the support for Freescale SATA controller

Applied, but please provide new (incremental) patches to fix the following remaining issues:

doc/README.sata:

Please apply Jerry Van Baren's "proposed English polishing."

drivers/block/ata_piix.h:

Please add a file header which contains appropriate copyright and license information.

Also, please make the file idempotent.

Also, please change format strings like "49==0x%04x" into "49=0x%04x" or "49 = 0x%04x" or (IMHO best) "49 = %04X". Please do this globally (some other files, too).

drivers/block/fsl_sata.c:

Generic S-ATA code like ata_low_level_rw_lba48(), ata_low_level_rw_lba28(), sata_read(), sata_write(), or scan_sata() is in no way FSL-specific and thus has no place in fsl_sata.c; please move this into a separate file.

I think it would be kind of funny if the sc520 board will only compile when fsl_sata.c is included.

Thanks!

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: wd at denx.de
                  Nail here --X-- for new monitor.
Applied
#2 lore raw

v4 cover SATA framework and Freescale SATA controller support

Dear Wolfgang,

I have to use the stupid webmail now, sorry for that.

<snip>

Applied, but please provide new (incremental) patches to fix the following remaining issues:

[dave] Thank you very much, I will do that.

drivers/block/ata_piix.h:

Please add a file header which contains appropriate copyright and license information.

[dave] The original include/sata.h has *not* any copyright and license
info in it. so I don't know how to handle it.
can I copy the ata_piix.c's copyright to ata_piix.h?

Thanks,
Dave

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20080327/787ff33f/attachment.htm

author
#3 lore raw

v4 cover SATA framework and Freescale SATA controller support

In reply to Wolfgang Denk
Quoted 6 lines

Applied, but please provide new (incremental) patches to fix the following remaining issues:

doc/README.sata:

Please apply Jerry Van Baren's "proposed English polishing."

done.

Quoted 4 lines

drivers/block/ata_piix.h:

Please add a file header which contains appropriate copyright and license information.

The original include/sata.h have *not* any copyright and license information, I think it is better to keep the original state. so, I don't add the copyright/license info to ata_piix.h

Quoted 6 lines

Also, please make the file idempotent.

Also, please change format strings like "49==0x%04x" into "49=0x%04x" or "49 = 0x%04x" or (IMHO best) "49 = %04X". Please do this globally (some other files, too).

done.

Quoted 6 lines

drivers/block/fsl_sata.c:

Generic S-ATA code like ata_low_level_rw_lba48(), ata_low_level_rw_lba28(), sata_read(), sata_write(), or scan_sata() is in no way FSL-specific and thus has no place in fsl_sata.c; please move this into a separate file.

I will do it in next day.

Thanks,
Dave