Skip to content
  • Tejun Heo's avatar
    libata: convert the remaining SATA drivers to new init model · 4447d351
    Tejun Heo authored
    Convert ahci, sata_sil, sata_sil24, sata_svw, sata_qstor, sata_mv,
    sata_sx4, sata_vsc and sata_inic162x to new init model.
    Now that host and ap are available during intialization, functions are
    converted to take either host or ap instead of low level parameters
    which were inevitable for functions shared between init and other
    paths.  This simplifies code quite a bit.
    * init_one()'s now follow more consistent init order
    * ahci_setup_port() and ahci_host_init() collapsed into
      ahci_init_one() for init order consistency
    * sata_vsc uses port_info instead of setting fields manually
    * in sata_svw, k2_board_info converted to port_info (info is now in
      port flags).  port number is honored now.
    Tested on ICH7/8 AHCI, jmb360, sil3112, 3114, 3124 and 3132.
    Signed-off-by: default avatarTejun Heo <>
    Signed-off-by: default avatarJeff Garzik <>