lkml.org 
[lkml]   [2011]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v5 1/6] ata: make ata port as parent device of scsi host
    On 12/04/2011 08:20 PM, Lin Ming wrote:
    > 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>
    > ---
    > drivers/ata/libata-scsi.c | 2 +-
    > 1 files changed, 1 insertions(+), 1 deletions(-)

    applied 1-6, thanks





    \
     
     \ /
      Last update: 2011-12-07 21:07    [W:0.025 / U:34.696 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site