15 May, 2013

1 commit

  • While registering host controller track port number based upon number
    of ports available on the controller, export port_no attribute through
    /sys. This patch is needed by udev for composing persistent links in
    /dev/disk/by-path.

    /sys/devices/pci0000:00/0000:00:1f.2/ata8/ata_port/ata8
    total 0
    lrwxrwxrwx. 1 root root 0 Mar 6 12:43 device -> ../../../ata8
    -r--r--r--. 1 root root 4096 Mar 6 12:43 idle_irq
    -r--r--r--. 1 root root 4096 Mar 6 12:43 nr_pmp_links
    -r--r--r--. 1 root root 4096 Mar 6 12:43 port_no
    drwxr-xr-x. 2 root root 0 Mar 6 12:42 power
    lrwxrwxrwx. 1 root root 0 Mar 6 12:41 subsystem -> ../../../../../../class/ata_port
    -rw-r--r--. 1 root root 4096 Mar 6 12:40 uevent
    1

    Signed-off-by: David Milburn
    Signed-off-by: Tejun Heo

    David Milburn
     

26 Jul, 2012

1 commit

  • Functions not referenced outside of a source file should be marked
    static to prevent it from being exposed globally.

    This quiets the sparse warnings:

    warning: symbol 'ata_is_port' was not declared. Should it be static?
    warning: symbol 'ata_is_link' was not declared. Should it be static?
    warning: symbol 'ata_is_ata_dev' was not declared. Should it be static?

    Signed-off-by: H Hartley Sweeten
    Signed-off-by: Jeff Garzik

    H Hartley Sweeten
     

19 Apr, 2012

1 commit


18 Jan, 2012

1 commit

  • This saves devices suspend/resume time.

    Tested system suspend/resume with SATA IDE/AHCI mode 3 times.
    Below is the time took for devices suspend/resume.

    SATA mode vanilla-kernel patched-kernel
    --------- --------------------- ---------------------
    IDE suspend: 0.744 suspend: 0.432
    (0.716, 0.768, 0.748) (0.440, 0.428, 0.428)

    resume: 5.084 resume: 2.209
    (5.100, 5.064, 5.088) (2.168, 2.232, 2.228)

    AHCI: suspend: 0.725 suspend: 0.449
    (0.740, 0.708, 0.728) (0.456, 0.448, 0.444)

    resume: 2.556 resume: 1.896
    (2.604, 2.492, 2.572) (1.932, 1.872, 1.884)

    Signed-off-by: Lin Ming
    Signed-off-by: Jeff Garzik

    Lin Ming
     

09 Jan, 2012

2 commits


22 Oct, 2010

2 commits