[linux-yocto] [PATCH 33/34] dmaengine: dw: define DW_DMA_MAX_NR_MASTERS

2015-04-27 Thread wei . tee . ng
From: Andy Shevchenko Instead of using magic number in the code the patch provides DW_DMA_MAX_NR_MASTERS constant. While here, restrict the reading of data width array by amount of the actual number of AHB masters. Signed-off-by: Andy Shevchenko Signed-off-by: Vinod Koul (cherry picked from c

[linux-yocto] [PATCH 34/34] dmaengine: dw: don't handle interrupt when dmaengine is not used

2015-04-27 Thread wei . tee . ng
From: Jie Yang When dma controller is not used by any user and set off, we should disble interrupt handler, at least the interrupt reset part, for some subsystem, e.g. ADSP, may use the dma in its own logic, here reset the interrupt may make this subsystem work abnormally. Signed-off-by: Jie Yan

[linux-yocto] [PATCH 32/34] dmaengine: dw: provide DMA capabilities

2015-04-27 Thread wei . tee . ng
From: Andy Shevchenko The new DMAEngine requirement is to provide what the DMA controller can do, such as directions, bus widths, and residue granularity. The patch sets those properties for the DesignWare DMA controller driver. Signed-off-by: Andy Shevchenko Signed-off-by: Vinod Koul (cherry

[linux-yocto] [PATCH 31/34] dmaengine: dw: Split device_control

2015-04-27 Thread wei . tee . ng
From: Maxime Ripard Split the device_control callback of the DesignWare DMA driver to make use of the newly introduced callbacks, that will eventually be used to retrieve slave capabilities. Signed-off-by: Maxime Ripard Signed-off-by: Vinod Koul (cherry picked from commit a4b0d348f60122eb45c50

[linux-yocto] [PATCH 30/34] i2c: i801: Use managed pcim_* PCI device initialization and reservation

2015-04-27 Thread wei . tee . ng
From: Jarkko Nikula Simplifies the code a bit and makes easier to disable PCI device on driver detach by removing the pcim_pin_device() call in the future if needed. Reason why i2c-i801.c doesn't ever call pci_disable_device() was because it made some systems to hang during power-off. See commit

[linux-yocto] [PATCH 29/34] i2c: i801: Remove pci_enable_device() call from i801_resume()

2015-04-27 Thread wei . tee . ng
From: Jarkko Nikula Since pci_disable_device() is not called from i801_suspend() and power state is set already it means that subsequent pci_enable_device() calls do practically nothing but monotonically increase struct pci_dev enable_cnt. Signed-off-by: Jarkko Nikula Reviewed-by: Jean Delvare

[linux-yocto] [PATCH 28/34] i2c: i801: Use managed devm_* memory and irq allocation

2015-04-27 Thread wei . tee . ng
From: Jarkko Nikula This simplifies the error and remove paths. Signed-off-by: Jarkko Nikula Reviewed-by: Jean Delvare Signed-off-by: Wolfram Sang (cherry picked from commit 1621c59d94d13380015fb5131acc6c14ecd1c797) Signed-off-by: Ng Wei Tee --- drivers/i2c/busses/i2c-i801.c | 17 ++-

[linux-yocto] [PATCH 26/34] i2c: i801: Don't break user-visible strings

2015-04-27 Thread wei . tee . ng
From: Jarkko Nikula It makes more difficult to grep these error prints from sources if they are split to multiple source lines. Signed-off-by: Jarkko Nikula Reviewed-by: Jean Delvare Signed-off-by: Wolfram Sang (cherry picked from commit 9cbbf3dc994797f49cd30607a16182ca6c87863f) Signed-off-b

[linux-yocto] [PATCH 25/34] ACPI: Introduce has_acpi_companion()

2015-04-27 Thread wei . tee . ng
From: "Rafael J. Wysocki" Now that the ACPI companions of devices are represented by pointers to struct fwnode_handle, it is not quite efficient to check whether or not an ACPI companion of a device is present by evaluating the ACPI_COMPANION() macro. For this reason, introduce a special static

[linux-yocto] [PATCH 24/34] i2c: designware: Suppress error message if platform_get_irq() < 0

2015-04-27 Thread wei . tee . ng
From: Alexey Brodkin With -EPROBE_DEFER, this message is confusing and we hope for a centralized printout in the future anyhow. Signed-off-by: Alexey Brodkin Acked-by: Mika Westerberg Acked-by: Christian Ruppert Signed-off-by: Wolfram Sang (cherry picked from commit b20d386485e25934aef8aa24c

[linux-yocto] [PATCH 27/34] i2c: i801: Remove i801_driver forward declaration

2015-04-27 Thread wei . tee . ng
From: Jarkko Nikula struct pci_driver i801_driver forward declaration is needed only for accessing the name field. Remove it and use dev_driver_string() instead. Signed-off-by: Jarkko Nikula Reviewed-by: Jean Delvare Signed-off-by: Wolfram Sang (cherry picked from commit 256493c58625530a95829

[linux-yocto] [PATCH 21/34] i2c: designware: Add Intel Baytrail PMIC I2C bus support

2015-04-27 Thread wei . tee . ng
From: David Box This patch implements an I2C bus sharing mechanism between the host and platform hardware on select Intel BayTrail SoC platforms using the X-Powers AXP288 PMIC. On these platforms access to the PMIC must be shared with platform hardware. The hardware unit assumes full control of

[linux-yocto] [PATCH 23/34] i2c: designware-pci: no need to provide clk_khz

2015-04-27 Thread wei . tee . ng
From: Andy Shevchenko The clk_khz field makes sense only if SS counters are not provided. Since we provide them for Haswell and Baytrail explicitly we may omit the clk_khz parameter. Reviewed-by: Jarkko Nikula Signed-off-by: Andy Shevchenko Signed-off-by: Wolfram Sang (cherry picked from comm

[linux-yocto] [PATCH 22/34] i2c: designware-pci: remove Moorestown support

2015-04-27 Thread wei . tee . ng
From: Andy Shevchenko The Moorestown support bits were removed few years ago. This is a follow up to that changes. Suggested-by: David Cohen Signed-off-by: Andy Shevchenko Signed-off-by: Wolfram Sang (cherry picked from commit bd1179fd5626f84d0ba177fdfb2e2bb1ced4c996) Signed-off-by: Ng Wei T

[linux-yocto] [PATCH 20/34] i2c: designware: fixup return handling of wait_for_completion_timeout

2015-04-27 Thread wei . tee . ng
From: Nicholas Mc Guire return type of wait_for_completion_timeout is unsigned long not int, rather than introducing a new variable the wait_for_completion_timeout is moved into the if condition as the return value is only used to detect timeout. Signed-off-by: Nicholas Mc Guire Reviewed-by: Ja

[linux-yocto] [PATCH 19/34] i2c: designware: Do not calculate SCL timing parameters needlessly

2015-04-27 Thread wei . tee . ng
From: Jarkko Nikula Do SCL timing parameter calculation conditionally depending are custom parameters provided since calculated values will get instantly overwritten by provided parameters. Signed-off-by: Jarkko Nikula Signed-off-by: Wolfram Sang (cherry picked from commit 42ffd3907c1663441cd1

[linux-yocto] [PATCH 16/34] serial: 8250_dw: Fix get_mctrl behaviour

2015-04-27 Thread wei . tee . ng
From: Desmond Liu Fixed behaviour of get_mctrl() serial driver function as documented in: https://www.kernel.org/doc/Documentation/serial/driver Added device-tree properties 'dcd-override', 'dsr-override', 'cts-override', and 'ri-override' specific to the Synopsis 8250 DesignWare UART driver. Al

[linux-yocto] [PATCH 17/34] i2c: designware: use {readl|writel}_relaxed instead of readl/writel

2015-04-27 Thread wei . tee . ng
From: Jisheng Zhang readl/writel is too expensive especially on Cortex A9 w/ outer L2 cache. This introduces i2c read/write delays on Marvell BG2/BG2Q SoCs when there are heavy L2 cache maintenance operations at the same time. The driver does not perform DMA, so it's safe to use the relaxed vers

[linux-yocto] [PATCH 18/34] i2c: designware: Add i2c bus locking support

2015-04-27 Thread wei . tee . ng
From: David Box Adds support for acquiring and releasing a hardware bus lock in the i2c designware core transfer function. This is needed for i2c bus controllers that are shared with but not controlled by the kernel. Signed-off-by: David E. Box Reviewed-by: Mika Westerberg Signed-off-by: Wolfr

[linux-yocto] [PATCH 15/34] serial: 8250: add support for ACPI-probed serial port for X-Gene platform

2015-04-27 Thread wei . tee . ng
From: Feng Kan Enable APM X-Gene SoC serial port functionality when using ACPI table to initialize serial port. Signed-off-by: Feng Kan Signed-off-by: Greg Kroah-Hartman (cherry picked from commit 5e1aeea52f6a0763e79473b1767401fda88eb7e1) Signed-off-by: Ng Wei Tee --- drivers/tty/serial/825

[linux-yocto] [PATCH 12/34] serial: 8250_pci: remove one useless explicit type conversion

2015-04-27 Thread wei . tee . ng
From: Heikki Krogerus Signed-off-by: Heikki Krogerus Signed-off-by: Greg Kroah-Hartman (cherry picked from commit 0a0d412abe473c37ddec8d3f6c0b84c58f1bb061) Signed-off-by: Ng Wei Tee --- drivers/tty/serial/8250/8250_pci.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --gi

[linux-yocto] [PATCH 14/34] serial:8250:8250_pci: delete unneeded quirk entries

2015-04-27 Thread wei . tee . ng
From: Wang YanQing These quirk entries have the same effect as default quirk entry, so we can just delete them. Signed-off-by: Wang YanQing Signed-off-by: Greg Kroah-Hartman (cherry picked from commit 7cf91108d44dbef3d48766fd0e7f7347c2e48bda) Signed-off-by: Ng Wei Tee --- drivers/tty/serial

[linux-yocto] [PATCH 10/34] x86/irq, ACPI: Implement ACPI driver to support IOAPIC hotplug

2015-04-27 Thread wei . tee . ng
From: Jiang Liu Enable support of IOAPIC hotplug by: 1) reintroducing ACPI based IOAPIC driver 2) enhance pci_root driver to hook hotplug events The ACPI IOAPIC driver is always enabled if all of ACPI, PCI and IOAPIC are enabled. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luc

[linux-yocto] [PATCH 13/34] serial:8250:8250_pci: fix redundant entry report for WCH_CH352_2S

2015-04-27 Thread wei . tee . ng
From: Wang YanQing Commit 8b5c913f7ee6464849570bacb6bcd9ef0eaf7dce ("serial: 8250_pci: Add WCH CH352 quirk to avoid Xscale detection") trigger one redundant entry report message. This patch fix it. Reported-by: Russell King Signed-off-by: Wang YanQing Signed-off-by: Greg Kroah-Hartman (cherr

[linux-yocto] [PATCH 11/34] intel_idle: Add support for the Airmont Core in the Cherrytrail and Braswell SOCs

2015-04-27 Thread wei . tee . ng
From: Len Brown Support C-states for the Airmont core in the Cherrytrail and Braswell SOCs. The states are similar to those of Silvermont in Baytrail, except both flavors of C6 states are faster. Signed-off-by: Len Brown Cc: Kumar P Mahesh Cc: Alan Cox Cc: Mika Westerberg (cherry picked from

[linux-yocto] [PATCH 07/34] pinctrl: cherryview: Configure HiZ pins to be input when requested as GPIOs

2015-04-27 Thread wei . tee . ng
From: Mika Westerberg If the pin is in HiZ mode when it is requested as GPIO its value cannot be read (it always returns 0). In order to cope with the Linux GPIO subsystem where we do not have such state at all, turn the pin to be input instead. Reported-by: Jerome Blin Signed-off-by: Mika West

[linux-yocto] [PATCH 09/34] ACPI / LPSS: check the result of ioremap()

2015-04-27 Thread wei . tee . ng
From: Heikki Krogerus If it fails we have to skip the device. Signed-off-by: Heikki Krogerus Signed-off-by: Rafael J. Wysocki (cherry picked from commit 4483d59e29fea65ef428be92a866aed50e28c795) Signed-off-by: Ng Wei Tee --- drivers/acpi/acpi_lpss.c |2 ++ 1 file changed, 2 insertions(+

[linux-yocto] [PATCH 08/34] pinctrl: update direction_output function of cherryview driver

2015-04-27 Thread wei . tee . ng
From: "qipeng.zha" >From the comments of gpiod_direction_output(), need to set @value as initial output, so update the lowlevel routine to make it work. Signed-off-by: jason.cj.chen Signed-off-by: qipeng.zha Acked-by: Mika Westerberg Signed-off-by: Linus Walleij (cherry picked from commit 549

[linux-yocto] [PATCH 01/34] pinctrl: baytrail: Relax GPIO request rules

2015-04-27 Thread wei . tee . ng
From: Mika Westerberg Zotac ZBOX PI320, a Baytrail based mini-PC, has power button connected to a GPIO pin and it is exposed to the operating system as Windows 8 button array. This is implemented in Linux as a driver using gpio_keys. However, BIOS on this particula machine forgot to mux the pin

[linux-yocto] [PATCH 05/34] pinctrl: cherryview: Save and restore pin configs over system sleep

2015-04-27 Thread wei . tee . ng
From: Mika Westerberg Before resuming from system sleep BIOS restores its view of pin configuration. If we have configured some pins differently from that, for instance some driver requested a pin as a GPIO but it was not in GPIO mode originally, our view of the pin configuration will not match t

[linux-yocto] [PATCH 04/34] pinctrl: baytrail: Save pin context over system sleep

2015-04-27 Thread wei . tee . ng
From: Mika Westerberg The BIOS might reconfigure pins as it needs when S3 is entered. This might cause drivers using the GPIOs to fail because the state was wrong or interrupts stopped working. Fix this by saving and restoring enough pin context over system sleep. Reported-by: Hans Holmberg Si

[linux-yocto] [PATCH 03/34] pinctrl: baytrail: Rework interrupt handling

2015-04-27 Thread wei . tee . ng
From: Mika Westerberg Instead of handling everything in the driver's first level interrupt handler, we can take advantage of already existing flow handlers that are provided by the IRQ core. This changes the functionality a bit also. Previously the driver looped over pending interrupts in a sing

[linux-yocto] [PATCH 06/34] pinctrl: intel: drop owner assignment from platform_drivers

2015-04-27 Thread wei . tee . ng
From: Wolfram Sang This platform_driver does not need to set an owner, it will be populated by the driver core. Signed-off-by: Wolfram Sang Acked-by: Mika Westerberg Signed-off-by: Linus Walleij (cherry picked from commit 1ee68af8a5003bdda32ca02f93afc9701d50e871) Signed-off-by: Ng Wei Tee -

[linux-yocto] [PATCH 02/34] pinctrl: baytrail: Clear interrupt triggering from pins that are in GPIO mode

2015-04-27 Thread wei . tee . ng
From: Mika Westerberg If the pin is already configured as GPIO and it has any of the triggering flags set, we may get spurious interrupts depending on the state of the pin. Prevent this by clearing the triggering flags on such pins. However, if the pin is also configured as "direct IRQ" we leave

[linux-yocto] [PATCH 00/34] [linux-yocto-3.19] standard/base: Backport Braswell bug fixes patches from mainline kernel into Yocto Project linux kernel v3.19.

2015-04-27 Thread wei . tee . ng
From: Ng Wei Tee Hi all, This patch series is to backport Braswell bug fixes and feature improvement patches from upstream kernel into Yocto Project linux kernel v3.19. These back-ported patches had include I/O drivers such as HS-UART, I2C, SMBUS i801, Pinctrl driver, ACPI and DMA. This configu