Re: [linux-yocto] [PATCH 0/9] ahci: backport AHCI runtime PM support to linux-yocto-4.1

2016-03-31 Thread Bruce Ashfield
On Thu, Mar 31, 2016 at 3:05 AM, wrote: > From: Lim Key Seong > > Hi Bruce, > > These patches are backport for enabling AHCI runtime PM support that > upstreamed to the mainline > Linux Kernel by Mika Westerberg. > These patches are targeted for

[linux-yocto] [PATCH 3/5] gpio-pca953x: add PCAL9535 interrupt support

2016-03-31 Thread Yong Li
Galileo gen 2 board uses the PCAL9535 as the GPIO expansion, it is different from PCA9535 and includes interrupt mask/status registers, The current driver does not support the interrupt registers configuration, it causes some gpio pins cannot trigger interrupt events, this patch fix this issue.

[linux-yocto] [PATCH 5/5] gpio-pca953x: add "drive" property

2016-03-31 Thread Yong Li
Galileo gen 2 has support for setting GPIO modes. Expose these properties through the GPIO sysfs interface. This approach is bit hacky, since it changes the interface semantics. The original patch was by Josef Ahmad and made on top of kernel 3.8. Signed-off-by: Ismo

[linux-yocto] [PATCH 2/5] Revert "gpio-pca953x: add "drive" property"

2016-03-31 Thread Yong Li
This reverts commit 3d2455f9da30f923c6bd69014fad4cc4ea738be6. Signed-off-by: Yong Li --- drivers/gpio/gpio-pca953x.c | 57 --- drivers/gpio/gpiolib-sysfs.c | 78 --- drivers/gpio/gpiolib.c| 18

[linux-yocto] [PATCH 4/5] gpio: pca953x: provide GPIO base based on _UID

2016-03-31 Thread Yong Li
Custom kernel for Intel Galileo Gen2 provides and moreover libmraa relies on the continuous GPIO space. To do such we have to configure GPIO base per each GPIO expander. The only value we can use is the ACPI _UID. Signed-off-by: Andy Shevchenko

[linux-yocto] [PATCH 1/5] Revert "gpio: pca953x: provide GPIO base based on _UID"

2016-03-31 Thread Yong Li
This reverts commit 81e166ec0a35ed5a01e2453603b0b1c73a0532cc. Signed-off-by: Yong Li --- drivers/gpio/gpio-pca953x.c | 44 +++- 1 file changed, 7 insertions(+), 37 deletions(-) diff --git a/drivers/gpio/gpio-pca953x.c

[linux-yocto] [PATCH 9/9] ahci: Add runtime PM support for the host controller

2016-03-31 Thread key . seong . lim
From: Mika Westerberg This patch adds runtime PM support for the AHCI host controller driver so that the host controller is powered down when all SATA ports are runtime suspended. Powering down the AHCI host controller can reduce power consumption and possibly

[linux-yocto] [PATCH 3/9] block: Add blk_set_runtime_active()

2016-03-31 Thread key . seong . lim
From: Mika Westerberg If block device is left runtime suspended during system suspend, resume hook of the driver typically corrects runtime PM status of the device back to "active" after it is resumed. However, this is not enough as queue's runtime PM status is

[linux-yocto] [PATCH 0/9] ahci: backport AHCI runtime PM support to linux-yocto-4.1

2016-03-31 Thread key . seong . lim
From: Lim Key Seong Hi Bruce, These patches are backport for enabling AHCI runtime PM support that upstreamed to the mainline Linux Kernel by Mika Westerberg. These patches are targeted for linux-yocto-4.1, standard/base branch. Thanks Best regards KS LIM Mika

[linux-yocto] [PATCH 7/9] ahci: Convert driver to use modern PM hooks

2016-03-31 Thread key . seong . lim
From: Mika Westerberg In order to add support for runtime PM to the ahci driver we first need to convert the driver to use modern non-legacy system suspend hooks. There should be no functional changes. tj: Updated .driver.pm init for older compilers as suggested

[linux-yocto] [PATCH 5/9] scsi: Drop runtime PM usage count after host is added

2016-03-31 Thread key . seong . lim
From: Mika Westerberg Runtime PM of the SCSI host is already handled by calls to scsi_autopm_get_host() and scsi_autopm_put_host() from appropriate places whenever the host needs to be powered on. This works fine when there is device connected to the host as once

[linux-yocto] [PATCH 8/9] ahci: Add functions to manage runtime PM of AHCI ports

2016-03-31 Thread key . seong . lim
From: Mika Westerberg Add new functions ahci_rpm_get_port()/ahci_rpm_put_port() that change runtime PM status of AHCI ports. Depending if the AHCI host has runtime PM enabled or disabled calling these may trigger runtime suspend/resume of the host controller. We

[linux-yocto] [PATCH 4/9] scsi: Set request queue runtime PM status back to active on resume

2016-03-31 Thread key . seong . lim
From: Mika Westerberg We treat system suspend of SCSI devices pretty much the same as runtime suspend. If the device is already runtime suspended we leave it to that state during system suspend. On resume from system sleep we then resume the device and correct

[linux-yocto] [PATCH 6/9] ahci: Cache host controller version

2016-03-31 Thread key . seong . lim
From: Mika Westerberg This allows sysfs nodes to read the cached value directly instead of powering up possibly runtime suspended controller. Signed-off-by: Mika Westerberg Signed-off-by: Tejun Heo (cherry

[linux-yocto] [PATCH 2/9] ahci: Store irq number in struct ahci_host_priv

2016-03-31 Thread key . seong . lim
From: Robert Richter Currently, ahci supports only msi and intx. To also support msix the handling of the irq number need to be changed. The irq number for msix devices is taken from msi_list instead of pci_dev. Thus, the irq number of a device needs to be stored in struct

[linux-yocto] [PATCH 1/9] ahci: Move interrupt enablement code to a separate function

2016-03-31 Thread key . seong . lim
From: Robert Richter This patch refactors ahci_init_interrupts() and moves msi code to a separate function. Need the split since we add msix initialization in a later patch. The initialization for msix will be done after msi but before intx. Signed-off-by: Robert Richter