Lin Ming 9a6d6a2dda ata: make ata port as parent device of scsi host
Currently, the device tree of ata port and scsi host looks as below,

        /sys/devices/pci0000:00/0000:00:1f.2    (ahci controller)
        |-- ata1                                (ata port)
        |-- host0                               (scsi host)
           |-- target0:0:0                      (scsi target)
               |-- 0:0:0:0                      (disk)

This patch makes ata port as parent device of scsi host, then it becomes

        /sys/devices/pci0000:00/0000:00:1f.2    (ahci controller)
        |-- ata1                                (ata port)
            |-- host0                           (scsi host)
                |-- target0:0:0                 (scsi target)
                    |-- 0:0:0:0                 (disk)

With this change, the ata port runtime PM is easier.
For example, the ata port runtime suspend will happen as,

disk suspend --> scsi target suspend --> scsi host suspend --> ata port
suspend.

Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2012-01-08 19:14:57 -05:00
..
2011-11-09 01:38:00 -05:00
2011-11-17 02:11:42 -05:00
2011-07-23 18:07:27 -04:00
2011-10-14 13:10:42 -04:00
2011-10-14 13:10:46 -04:00
2011-08-18 23:57:58 -04:00
2011-10-08 00:07:16 -04:00
2011-10-14 13:22:54 -04:00
2011-10-08 00:07:15 -04:00
2011-11-09 01:36:49 -05:00
2011-07-23 17:57:36 -04:00