Re: [RFC/RFT][PATCH 4/5] ACPI / LPSS: Support for device latency tolerance PM QoS

2014-01-20 Thread Mika Westerberg
On Fri, Jan 17, 2014 at 03:46:40PM +0100, Rafael J. Wysocki wrote: @@ -415,11 +472,12 @@ static int acpi_lpss_platform_notify(str return 0; } - if (action == BUS_NOTIFY_ADD_DEVICE) + if (action == BUS_NOTIFY_ADD_DEVICE) { ret =

Re: [PATCH] ACPI / LPSS: Add BYT ACPI mode PWM

2014-01-20 Thread Mika Westerberg
On Tue, Jan 21, 2014 at 03:12:02AM +0800, Chew Chiau Ee wrote: From: Chew, Chiau Ee chiau.ee.c...@intel.com Intel BayTrail LPSS consists of two PWM controllers which can be enumerated from ACPI namespace. Signed-off-by: Chew, Chiau Ee chiau.ee.c...@intel.com Acked-by: Mika Westerberg

Re: [PATCH] ssp/pxa2xx: add ssp support for mach-mmp

2013-12-18 Thread Mika Westerberg
On Wed, Dec 18, 2013 at 02:08:29PM +0800, Qiao Zhou wrote: mach-mmp also uses ssp request/free APIs. Add mach-mmp support. Otherwise there will be redefinition error. Signed-off-by: Qiao Zhou zhouq...@marvell.com Acked-by: Mika Westerberg mika.westerb...@linux.intel.com -- To unsubscribe

Re: [PATCH v2] x86, tsc: Add missing Baytrail frequency to the table

2014-01-27 Thread Mika Westerberg
On Sat, Jan 25, 2014 at 01:09:23AM -0800, Bin Gao wrote: diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c index a3acbac2ee72$ --- a/arch/x86/kernel/tsc.c +++ b/arch/x86/kernel/tsc.c @@ -655,10 +655,11 @@ unsigned long native_calibrate_tsc(void) local_irq_save(flags);

Re: [PATCH] HID: i2c-hid: add runtime PM support

2014-01-28 Thread Mika Westerberg
On Mon, Jan 27, 2014 at 10:36:25PM -0500, Benjamin Tissoires wrote: On Tue, Jan 14, 2014 at 5:13 AM, Mika Westerberg mika.westerb...@linux.intel.com wrote: This patch adds runtime PM support for the HID over I2C driver. When the i2c-hid device is first opened we power it on and on the last

Re: [PATCH v2] x86, tsc: Add missing Baytrail frequency to the table

2014-01-28 Thread Mika Westerberg
On Mon, Jan 27, 2014 at 12:20:02PM +0200, Mika Westerberg wrote: On Sat, Jan 25, 2014 at 01:09:23AM -0800, Bin Gao wrote: diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c index a3acbac2ee72$ --- a/arch/x86/kernel/tsc.c +++ b/arch/x86/kernel/tsc.c @@ -655,10 +655,11

Re: [PATCH] i2c-designware-pcidrv: fix the incorrect return of idle callback

2014-01-29 Thread Mika Westerberg
On Tue, Jan 28, 2014 at 07:30:35PM +0100, Wolfram Sang wrote: On Tue, Jan 28, 2014 at 01:48:28PM +0800, xinhui.pan wrote: From: xinhui.pan xinhuix@intel.com i2c_dw_pci_runtime_idle should return -EBUSY rather than zero if it do success. I don't understand... Otherwise

Re: [PATCH] HID: i2c-hid: add runtime PM support

2014-01-29 Thread Mika Westerberg
On Tue, Jan 28, 2014 at 09:19:33AM -0500, Benjamin Tissoires wrote: On Tue, Jan 28, 2014 at 4:12 AM, Mika Westerberg mika.westerb...@linux.intel.com wrote: On Mon, Jan 27, 2014 at 10:36:25PM -0500, Benjamin Tissoires wrote: On Tue, Jan 14, 2014 at 5:13 AM, Mika Westerberg mika.westerb

[PATCH v2] HID: i2c-hid: add runtime PM support

2014-01-29 Thread Mika Westerberg
with devices that are not wake capable. Signed-off-by: Mika Westerberg mika.westerb...@linux.intel.com --- v2: - Update changelog to mention that ACPI power domain for example can power off the device on suspend. - Make i2c_hid_power to just call RPM get/put drivers/hid/i2c-hid/i2c-hid.c

Re: [PATCH] i2c-designware-pcidrv: fix the incorrect return of idle callback

2014-01-29 Thread Mika Westerberg
On Wed, Jan 29, 2014 at 06:00:26PM +0800, xinhui.pan wrote: 于 2014年01月29日 16:35, Mika Westerberg 写道: On Tue, Jan 28, 2014 at 07:30:35PM +0100, Wolfram Sang wrote: On Tue, Jan 28, 2014 at 01:48:28PM +0800, xinhui.pan wrote: From: xinhui.pan xinhuix@intel.com

Re: [PATCH] HID: i2c-hid: add runtime PM support

2014-01-30 Thread Mika Westerberg
On Wed, Jan 29, 2014 at 09:57:00AM -0500, Benjamin Tissoires wrote: That's great. I hope this will also fix my Lenovo Miix 2 (the T100 is too expensive compared to the Dell Venue pro 8 and the Lenovo one) :) I think most of my problems are ACPI related (WIFI card not powered up, SD-ext reader

Re: [PATCH v3] gpiolib: return -ENOENT if no GPIO mapping exists

2013-12-11 Thread Mika Westerberg
occured during the GPIO resolution. Signed-off-by: Alexandre Courbot acour...@nvidia.com Reviewed-by: Andy Shevchenko andriy.shevche...@linux.intel.com Reviewed-by: Mika Westerberg mika.westerb...@linux.intel.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body

Re: [PATCH][update] ACPIPHP / radeon / nouveau: Fix VGA switcheroo problem related to hotplug events

2013-12-30 Thread Mika Westerberg
On Sun, Dec 29, 2013 at 10:36:56PM +0100, Rafael J. Wysocki wrote: From: Rafael J. Wysocki rafael.j.wyso...@intel.com The changes in the ACPI-based PCI hotplug (ACPIPHP) subsystem made during the 3.12 development cycle uncovered a problem with VGA switcheroo that on some systems, when the

Re: [PATCH] gpiolib: return -ENOENT when no GPIO mapping exists

2013-12-09 Thread Mika Westerberg
On Fri, Dec 06, 2013 at 11:06:56AM +0900, Alexandre Courbot wrote: Some devices drivers make use of optional GPIO parameters. For such drivers, it is important to discriminate between the case where no GPIO mapping has been defined for the function they are requesting, and the case where a

Re: [PATCH v3] pinctrl: baytrail: lock IRQs when starting them

2013-12-09 Thread Mika Westerberg
On Fri, Dec 06, 2013 at 03:03:12PM +0100, Linus Walleij wrote: This uses the new API for tagging GPIO lines as in use by IRQs. This enforces a few semantic checks on how the underlying GPIO line is used. Cc: Andy Shevchenko andriy.shevche...@linux.intel.com Cc: Mika Westerberg mika.westerb

[PATCH RESEND] serial: 8250_dw: add new ACPI IDs

2013-12-10 Thread Mika Westerberg
Newer Intel PCHs with LPSS have the same Designware controllers than Haswell but ACPI IDs are different. Add these IDs to the driver list. Signed-off-by: Mika Westerberg mika.westerb...@linux.intel.com --- drivers/tty/serial/8250/8250_dw.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH RESEND] mmc: sdhci-acpi: add new ACPI ID

2013-12-10 Thread Mika Westerberg
Newer Intel PCHs with LPSS have the same SDHCI controller than Haswell but ACPI ID is different. Add this ID to the driver list. Signed-off-by: Mika Westerberg mika.westerb...@linux.intel.com Acked-by: Adrian Hunter adrian.hun...@intel.com --- drivers/mmc/host/sdhci-acpi.c | 2 ++ 1 file changed

Re: [bisected] NULL pointer dereference in acpi_gpiochip_add (on modprobe ssb)

2014-03-24 Thread Mika Westerberg
On Mon, Mar 24, 2014 at 04:49:44PM +0100, Sabrina Dubroca wrote: Hi, With next-20140324, I get the BUG below when I modprobe ssb. I bisected it to aa92b6f689ac gpio / ACPI: Allocate ACPI specific data directly in acpi_gpiochip_add() The device that needs ssb is: 0c:00.0 Network

Re: [bisected] NULL pointer dereference in acpi_gpiochip_add (on modprobe ssb)

2014-03-24 Thread Mika Westerberg
On Mon, Mar 24, 2014 at 08:00:33PM +0200, Mika Westerberg wrote: On Mon, Mar 24, 2014 at 04:49:44PM +0100, Sabrina Dubroca wrote: Hi, With next-20140324, I get the BUG below when I modprobe ssb. I bisected it to aa92b6f689ac gpio / ACPI: Allocate ACPI specific data directly

Re: [bisected] NULL pointer dereference in acpi_gpiochip_add (on modprobe ssb)

2014-03-25 Thread Mika Westerberg
On Mon, Mar 24, 2014 at 07:31:11PM +0100, Sabrina Dubroca wrote: Actually gpiolib seems to handle -dev as optional. Can you try this patch instead? Thanks. diff --git a/drivers/gpio/gpiolib-acpi.c b/drivers/gpio/gpiolib-acpi.c index bf0f8b476696..642b2bf3360e 100644 ---

Re: [Patch V2 7/9] I2C/ACPI: Add i2c ACPI operation region support

2014-04-29 Thread Mika Westerberg
On Mon, Apr 28, 2014 at 10:27:46PM +0800, Lan Tianyu wrote: ACPI 5.0 spec(5.5.2.4.5) defines GenericSerialBus(i2c, spi, uart) operation region. It allows ACPI aml code able to access such kind of devices to implement some ACPI standard method. Looks good to me now, Reviewed-by: Mika

Re: [Patch V2 9/9] I2C/ACPI: Add CONFIG_I2C_ACPI config

2014-04-29 Thread Mika Westerberg
and support for ACPI I2C Operation Regions. Operation Regions allow firmware (BIOS) code to access I2C slave devices, such as smart batteries through an I2C host controller driver. But it is really up to you so, Reviewed-by: Mika Westerberg mika.westerb...@linux.intel.com -- To unsubscribe from

Re: [PATCH v2 0/2] i2c-designware-pci: Add Haswell ULT device support

2014-04-07 Thread Mika Westerberg
On Sun, Apr 06, 2014 at 05:31:04PM +0200, Wolfram Sang wrote: On Sun, Apr 06, 2014 at 04:54:24PM +0300, Kirill A. Shutemov wrote: On Mon, Oct 21, 2013 at 07:14:28PM +0300, Mika Westerberg wrote: On Mon, Oct 21, 2013 at 08:05:42AM -0700, Benson Leung wrote: Fixed 25Mhz clock instead

Re: [PATCH] pinctrl-baytrail: fix for irq descriptor conflict on ASUS T100TA

2014-04-25 Thread Mika Westerberg
[+Aubrey] On Fri, Apr 25, 2014 at 03:27:42PM +0800, Jin, Yao wrote: On 2014/4/25 5:33, Adam Williamson wrote: On Thu, 2014-04-24 at 21:30 +0800, Jin, Yao wrote: Jin, do you have any idea what is going on? Maybe neither the patch (http://dougvj.net/baytrail_gpio_quirk_v3.patch)

Re: [PATCH] pinctrl-baytrail: workaround for irq descriptor conflict on ASUS T100TA

2014-04-25 Thread Mika Westerberg
to be cleaned up as well, but that's a separate issue. Signed-off-by: Thomas Gleixner t...@linutronix.de Works here on my T100, Tested-by: Mika Westerberg mika.westerb...@linux.intel.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord

Re: [Resend Patch 1/9] ACPICA: Executer: Fix buffer allocation issue for generic_serial_bus region field accesses.

2014-04-22 Thread Mika Westerberg
. Reported by Lan Tianyu, Fixed by Lv Zheng. Signed-off-by: Lv Zheng lv.zh...@intel.com Signed-off-by: Lan Tianyu tianyu@intel.com Reviewed-by: Mika Westerberg mika.westerb...@linux.intel.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message

Re: [Resend Patch 2/9] ACPICA: Export acpi_buffer_to_resource symbol

2014-04-22 Thread Mika Westerberg
On Tue, Apr 22, 2014 at 02:24:08PM +0800, Lan Tianyu wrote: The acpi_buffer_to_resource is needed in i2c module to convert aml buffer to struct acpi_resource Signed-off-by: Lan Tianyu tianyu@intel.com Reviewed-by: Mika Westerberg mika.westerb...@linux.intel.com -- To unsubscribe from

Re: [Resend Patch 3/9] ACPI: Add acpi_bus_attach_private_data() to facilitate to attach data to ACPI handle

2014-04-22 Thread Mika Westerberg
; +} +EXPORT_SYMBOL(acpi_bus_attach_private_data); When I added GPIO operation region support, Rafael mentioned that we might want to add this private data to the struct acpi_device instead. Either way, looks good to me, Reviewed-by: Mika Westerberg mika.westerb...@linux.intel.com -- To unsubscribe from

Re: [Resend Patch 4/9] ACPI/Thermal: Use acpi_bus_attach_private_data() to attach private data

2014-04-22 Thread Mika Westerberg
On Tue, Apr 22, 2014 at 02:24:10PM +0800, Lan Tianyu wrote: Use acpi_bus_attach_private_data() to attach private data instead of acpi_attach_data(). Signed-off-by: Lan Tianyu tianyu@intel.com Reviewed-by: Mika Westerberg mika.westerb...@linux.intel.com -- To unsubscribe from this list

Re: [Resend Patch 5/9] I2C: Add smbus quick read/write helper function

2014-04-22 Thread Mika Westerberg
On Tue, Apr 22, 2014 at 02:24:11PM +0800, Lan Tianyu wrote: Add i2c_smbus_quick_write/read() helper function. These will be used in the implementation of i2c ACPI address space handler. Signed-off-by: Lan Tianyu tianyu@intel.com Reviewed-by: Mika Westerberg mika.westerb

Re: [Resend Patch 6/9] I2C: Add smbus word/block process call helper function

2014-04-22 Thread Mika Westerberg
On Tue, Apr 22, 2014 at 02:24:12PM +0800, Lan Tianyu wrote: Add i2c_smbus_word/block_proc_call() helper function. These will be used in the implementation of i2c ACPI address space handler. Signed-off-by: Lan Tianyu tianyu@intel.com Reviewed-by: Mika Westerberg mika.westerb

Re: [Resend Patch 7/9] I2C/ACPI: Add i2c ACPI operation region support

2014-04-22 Thread Mika Westerberg
On Tue, Apr 22, 2014 at 02:24:13PM +0800, Lan Tianyu wrote: diff --git a/drivers/i2c/i2c-acpi.c b/drivers/i2c/i2c-acpi.c new file mode 100644 index 000..942abdf --- /dev/null +++ b/drivers/i2c/i2c-acpi.c @@ -0,0 +1,282 @@ +/* + * I2C ACPI code + * + * Copyright (C) 2014 Intel Corp +

Re: [Resend Patch 8/9] I2C/ACPI: Move ACPI related code to i2c-acpi.c

2014-04-22 Thread Mika Westerberg
*adap) {}; Semicolon is not needed here. Apart from that, Reviewed-by: Mika Westerberg mika.westerb...@linux.intel.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org

Re: [Resend Patch 9/9] I2C/ACPI: Add CONFIG_I2C_ACPI config

2014-04-22 Thread Mika Westerberg
On Tue, Apr 22, 2014 at 02:24:15PM +0800, Lan Tianyu wrote: This patch is to add CONFIG_I2C_ACPI. Current there is a race between removing I2C ACPI operation region and ACPI AML code accessing. So make i2c core built-in if CONFIG_I2C_ACPI is set. Signed-off-by: Lan Tianyu

Re: [PATCH v3] pwm_lpss: Add support for PCI devices

2014-04-22 Thread Mika Westerberg
...@intel.com Reviewed-by: Mika Westerberg mika.westerb...@linux.intel.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http

Re: [PATCH] pinctrl-baytrail: fix for irq descriptor conflict on ASUS T100TA

2014-04-22 Thread Mika Westerberg
On Wed, Apr 16, 2014 at 08:05:59PM +0800, Jin Yao wrote: A crash is triggered on the ASUS T100TA Baytrail-T because of a irq descriptor conflict. There are two gpio triggered acpi events in this device, GPIO 6 and 18. These gpios are translated to irqs by calling gpio_to_irq which in turn

Re: [PATCH 2/2] spi/pxa2xx-pci: Pass host clock rate info from PCI glue layer

2014-04-22 Thread Mika Westerberg
On Fri, Apr 18, 2014 at 05:30:54PM +0100, Mark Brown wrote: On Fri, Apr 18, 2014 at 12:26:07AM +0800, Chew Chiau Ee wrote: From: Chew, Chiau Ee chiau.ee.c...@intel.com Intel BayTrail PCI mode LPSS devices inclusive of SPI do not rely on common clock framework. Thus, this patch allows the

Re: [PATCH 2/2] spi/pxa2xx-pci: Pass host clock rate info from PCI glue layer

2014-04-22 Thread Mika Westerberg
On Tue, Apr 22, 2014 at 01:09:48PM +0100, Mark Brown wrote: On Tue, Apr 22, 2014 at 02:57:17PM +0300, Mika Westerberg wrote: On Fri, Apr 18, 2014 at 05:30:54PM +0100, Mark Brown wrote: As you mention we already have a clock API for passing around information about clocks, it would

Re: [Resend Patch 7/9] I2C/ACPI: Add i2c ACPI operation region support

2014-04-23 Thread Mika Westerberg
On Wed, Apr 23, 2014 at 09:53:21AM +0800, Lan Tianyu wrote: Hi Mika: Thanks a lot for your review. On 2014年04月22日 19:36, Mika Westerberg wrote: + +client.adapter = adapter; +client.addr = sb-slave_address; +client.flags = 0; I'm not sure

Re: [Resend Patch 9/9] I2C/ACPI: Add CONFIG_I2C_ACPI config

2014-04-23 Thread Mika Westerberg
On Wed, Apr 23, 2014 at 06:47:05AM +, Zheng, Lv wrote: Hi, Tianyu From: Lan, Tianyu Sent: Wednesday, April 23, 2014 1:40 PM On 2014年04月22日 19:45, Mika Westerberg wrote: On Tue, Apr 22, 2014 at 02:24:15PM +0800, Lan Tianyu wrote: This patch is to add CONFIG_I2C_ACPI. Current

Re: [PATCH] pinctrl-baytrail: fix for irq descriptor conflict on ASUS T100TA

2014-04-23 Thread Mika Westerberg
On Tue, Apr 22, 2014 at 10:16:50PM -0700, Adam Williamson wrote: Well, I can't actually concur. See my results in https://bugzilla.kernel.org/show_bug.cgi?id=68291#c44 . 1. A kernel with neither patch applied (and no hid-rmi driver) results in a working touchscreen. 2. A kernel with only v3

Re: [PATCH] pinctrl-baytrail: fix for irq descriptor conflict on ASUS T100TA

2014-04-23 Thread Mika Westerberg
On Wed, Apr 23, 2014 at 11:34:30AM +0300, Mika Westerberg wrote: On Tue, Apr 22, 2014 at 10:16:50PM -0700, Adam Williamson wrote: Well, I can't actually concur. See my results in https://bugzilla.kernel.org/show_bug.cgi?id=68291#c44 . 1. A kernel with neither patch applied (and no hid

Re: [PATCH] pwm_lpss: Add support for PCI devices

2014-04-15 Thread Mika Westerberg
On Tue, Apr 15, 2014 at 08:41:02AM +, Chew, Chiau Ee wrote: +static struct pwm_lpss_chip *pwm_lpss_probe(struct device *dev, + struct resource *r, struct pwm_lpss_boardinfo *info) { struct pwm_lpss_chip *lpwm; - struct resource *r; int ret; -

Re: [PATCH v2] pwm_lpss: Add support for PCI devices

2014-04-17 Thread Mika Westerberg
...@intel.com Reviewed-by: Mika Westerberg mika.westerb...@linux.intel.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http

Re: Oops in acpi_gpiochip_add on MacBookPro with Linux v3.14-12042-g69cd9eba3886

2014-04-10 Thread Mika Westerberg
On Thu, Apr 10, 2014 at 08:22:12AM -0400, Josh Boyer wrote: On Thu, Apr 10, 2014 at 2:50 AM, Rafał Miłecki zaj...@gmail.com wrote: 2014-04-09 23:09 GMT+02:00 Josh Boyer jwbo...@fedoraproject.org: With Linux v3.14-12042-g69cd9eba3886 I get an oops from the bcma module on the MacBookPro 10,2

Re: Oops in acpi_gpiochip_add on MacBookPro with Linux v3.14-12042-g69cd9eba3886

2014-04-11 Thread Mika Westerberg
On Thu, Apr 10, 2014 at 08:47:23PM +0200, Linus Walleij wrote: On Thu, Apr 10, 2014 at 2:40 PM, Mika Westerberg mika.westerb...@linux.intel.com wrote: On Thu, Apr 10, 2014 at 08:22:12AM -0400, Josh Boyer wrote: On Thu, Apr 10, 2014 at 2:50 AM, Rafał Miłecki zaj...@gmail.com wrote: 2014-04

Re: [PATCH] pwm_lpss: Add support for PCI devices

2014-04-14 Thread Mika Westerberg
); +} MODULE_DESCRIPTION(PWM driver for Intel LPSS); MODULE_AUTHOR(Mika Westerberg mika.westerb...@linux.intel.com); MODULE_LICENSE(GPL v2); MODULE_ALIAS(platform:pwm-lpss); + +module_init(pwm_init); +module_exit(pwm_exit); Maybe move these to follow the function defitions, like: pwm_init

Re: [PATCH] pwm_lpss: Add support for PCI devices

2014-04-14 Thread Mika Westerberg
On Mon, Apr 14, 2014 at 02:05:25AM +, Chew, Chiau Ee wrote: MODULE_DESCRIPTION(PWM driver for Intel LPSS); MODULE_AUTHOR(Mika Westerberg mika.westerb...@linux.intel.com); MODULE_LICENSE(GPL v2); MODULE_ALIAS(platform:pwm-lpss); Looks a good idea to combine pci and acpi

[PATCH] gpio / ACPI: Don't crash on NULL chip-dev

2014-03-31 Thread Mika Westerberg
/0x230 [c131e219] driver_register+0x59/0xe0 ... Fix this by checking chip-dev pointer against NULL first. Also we can now remove redundant check in acpi_gpiochip_request/free_interrupts(). Reported-by: Sabrina Dubroca s...@queasysnail.net Signed-off-by: Mika Westerberg mika.westerb

[PATCH] gpio / ACPI: Prevent potential wrap of GPIO value on OpRegion read

2014-04-01 Thread Mika Westerberg
Carpenter dan.carpen...@oracle.com Signed-off-by: Mika Westerberg mika.westerb...@linux.intel.com --- drivers/gpio/gpiolib-acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpiolib-acpi.c b/drivers/gpio/gpiolib-acpi.c index d5be56fe689e..401add28933f 100644

Re: [PATCH 2/6] PCI: acpiphp: enable_device(): rescan even if no new devices on slot

2013-06-27 Thread Mika Westerberg
On Wed, Jun 26, 2013 at 05:37:58PM -0600, Bjorn Helgaas wrote: On Tue, Jun 25, 2013 at 10:22 AM, Mika Westerberg mika.westerb...@linux.intel.com wrote: From: Kirill A. Shutemov kirill.shute...@linux.intel.com pci_scan_slot() returns number of new devices connected *directly* connected

Re: [PATCH 2/6] PCI: acpiphp: enable_device(): rescan even if no new devices on slot

2013-06-27 Thread Mika Westerberg
On Wed, Jun 26, 2013 at 06:20:24PM -0700, Yinghai Lu wrote: On Tue, Jun 25, 2013 at 9:22 AM, Mika Westerberg mika.westerb...@linux.intel.com wrote: From: Kirill A. Shutemov kirill.shute...@linux.intel.com pci_scan_slot() returns number of new devices connected *directly* connected

Re: [PATCH 6/6] x86/PCI: quirk Thunderbolt PCI-to-PCI bridges

2013-06-27 Thread Mika Westerberg
On Wed, Jun 26, 2013 at 04:15:01PM -0600, Alex Williamson wrote: On Wed, 2013-06-26 at 14:59 -0600, Bjorn Helgaas wrote: [+cc Alex] On Wed, Jun 26, 2013 at 6:17 AM, Mika Westerberg mika.westerb...@linux.intel.com wrote: On Tue, Jun 25, 2013 at 02:15:56PM -0700, Jesse Barnes wrote

Re: [PATCH 6/6] x86/PCI: quirk Thunderbolt PCI-to-PCI bridges

2013-06-27 Thread Mika Westerberg
On Wed, Jun 26, 2013 at 04:18:53PM -0600, Bjorn Helgaas wrote: On Tue, Jun 25, 2013 at 10:22 AM, Mika Westerberg mika.westerb...@linux.intel.com wrote: Thunderbolt PCI-to-PCI bridges typically use BIOS assisted enumeration. This means that the BIOS will allocate bridge resources based

Re: [PATCH 6/6] x86/PCI: quirk Thunderbolt PCI-to-PCI bridges

2013-06-27 Thread Mika Westerberg
On Wed, Jun 26, 2013 at 03:26:59PM -0700, Yinghai Lu wrote: On Wed, Jun 26, 2013 at 3:18 PM, Bjorn Helgaas bhelg...@google.com wrote: On Tue, Jun 25, 2013 at 10:22 AM, Mika Westerberg mika.westerb...@linux.intel.com wrote: Thunderbolt PCI-to-PCI bridges typically use BIOS assisted

Re: [PATCH 6/6] x86/PCI: quirk Thunderbolt PCI-to-PCI bridges

2013-06-27 Thread Mika Westerberg
On Thu, Jun 27, 2013 at 04:54:05PM +0300, Mika Westerberg wrote: I think that we can get this working so that we add a new flag to struct pci_dev, something like 'no_additional_hotplug_bus_space' and in this quirk set that. Then in __pci_bus_size_bridges() we do

Re: [PATCH 2/6] PCI: acpiphp: enable_device(): rescan even if no new devices on slot

2013-06-27 Thread Mika Westerberg
On Thu, Jun 27, 2013 at 04:02:29PM +0300, Mika Westerberg wrote: On Wed, Jun 26, 2013 at 05:37:58PM -0600, Bjorn Helgaas wrote: @@ -707,8 +702,11 @@ static int __ref enable_device(struct acpiphp_slot *slot) dev-hdr_type == PCI_HEADER_TYPE_CARDBUS

Re: [ACPI+PM] Changes for v3.11 merge window, no more new material for v3.11 (please)

2013-06-27 Thread Mika Westerberg
On Thu, Jun 27, 2013 at 02:27:01PM +0200, Rafael J. Wysocki wrote: Hi All, Below is a summary of my current queue for the v3.11 merge window. I will be very reluctant to add anything that is not a fix for a serious problem to it from now on. If you have such a fix, please let me know,

Re: [ACPI+PM] Changes for v3.11 merge window, no more new material for v3.11 (please)

2013-06-27 Thread Mika Westerberg
On Thu, Jun 27, 2013 at 09:15:50PM +0200, Rafael J. Wysocki wrote: On Thursday, June 27, 2013 10:08:42 PM Mika Westerberg wrote: On Thu, Jun 27, 2013 at 02:27:01PM +0200, Rafael J. Wysocki wrote: Hi All, Below is a summary of my current queue for the v3.11 merge window. I

Re: [PATCH 2/8] spi: spi-ep93xx: use bits_per_word_mask

2013-06-30 Thread Mika Westerberg
On Fri, Jun 28, 2013 at 11:43:07AM -0700, H Hartley Sweeten wrote: This driver supports 16 to 4 bits per work. Set the bits_per_word_mask to allows the spi core to handle validation. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ryan Mallon rmal...@gmail.com Cc: Mika

Re: [PATCH 4/8] spi: spi-ep93xx: remove bits_per_word() helper

2013-06-30 Thread Mika Westerberg
transfer. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ryan Mallon rmal...@gmail.com Cc: Mika Westerberg mika.westerb...@iki.fi Cc: Mark Brown broo...@kernel.org Cc: Grant Likely grant.lik...@linaro.org --- drivers/spi/spi-ep93xx.c | 16 +--- 1 file

Re: [PATCH 5/8] spi: spi-ep93xx: remove 'dss' from per chip private data

2013-06-30 Thread Mika Westerberg
the t-bits_per_word directly to ep93xx_spi_chip_setup() in ep93xx_spi_process_transfer() and remove 'dss' from the per chip private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ryan Mallon rmal...@gmail.com Cc: Mika Westerberg mika.westerb...@iki.fi Cc: Mark Brown

Re: [PATCH 3/8] spi: spi-ep93xx: always handle transfer specific settings

2013-06-30 Thread Mika Westerberg
hswee...@visionengravers.com Cc: Ryan Mallon rmal...@gmail.com Cc: Mika Westerberg mika.westerb...@iki.fi Acked-by: Mika Westerberg mika.westerb...@iki.fi -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo

Re: [PATCH 6/8] spi: spi-ep93xx: don't bother calculating the divisors in ep93xx_spi_setup()

2013-06-30 Thread Mika Westerberg
: Ryan Mallon rmal...@gmail.com Cc: Mika Westerberg mika.westerb...@iki.fi Acked-by: Mika Westerberg mika.westerb...@iki.fi -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org

Re: [PATCH 7/8] spi: spi-ep93xx: move the clock divider calcs into ep93xx_spi_chip_setup()

2013-06-30 Thread Mika Westerberg
: Mika Westerberg mika.westerb...@iki.fi Acked-by: Mika Westerberg mika.westerb...@iki.fi -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read

Re: [PATCH 8/8] spi: spi-ep93xx: convert to the queued driver infrastructure

2013-06-30 Thread Mika Westerberg
this. Acked-by: Mika Westerberg mika.westerb...@iki.fi -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH 1/6] PCI: acpiphp: do not check for SLOT_ENABLED in enable_device()

2013-07-01 Thread Mika Westerberg
On Fri, Jun 28, 2013 at 08:54:45PM +0200, Rafael J. Wysocki wrote: On Friday, June 28, 2013 11:00:31 AM Bjorn Helgaas wrote: On Fri, Jun 28, 2013 at 3:51 AM, Kirill A. Shutemov kirill.shute...@linux.intel.com wrote: Bjorn Helgaas wrote: On Tue, Jun 25, 2013 at 10:22 AM, Mika Westerberg

Re: [PATCH 1/6] PCI: acpiphp: do not check for SLOT_ENABLED in enable_device()

2013-07-01 Thread Mika Westerberg
On Mon, Jul 01, 2013 at 04:01:37PM +0200, Rafael J. Wysocki wrote: Given the fact that SLOT_ENABLED is only checked in acpiphp_enable_slot() (after this patch) and that /sys/bus/pci/slots/*/power uses SLOT_POWEREDON anyway, should we remove the whole flag? Sure, if it is not necessary any

Re: [PATCH 3/6] tty: serial: 8250 core: add runtime pm

2014-07-21 Thread Mika Westerberg
On Wed, Jul 09, 2014 at 07:49:34PM +0200, Sebastian Andrzej Siewior wrote: While comparing the OMAP-serial and the 8250 part of this I noticed that the the latter does not use runtime-pm. Here are the pieces. It is basically a get before first register access and a last_busy + put after last

Re: [PATCH v2] gpiolib: Export gpiochip_request_own_desc and gpiochip_free_own_desc

2014-07-22 Thread Mika Westerberg
documentation in Documentation/gpio/driver.txt? Cc: Mika Westerberg mika.westerb...@linux.intel.com Signed-off-by: Guenter Roeck li...@roeck-us.net --- v2: Move function declarations from consumer.h to driver.h. drivers/gpio/gpiolib.c | 2 ++ drivers/gpio/gpiolib.h | 3 --- include

Re: [PATCH v2] gpiolib: Export gpiochip_request_own_desc and gpiochip_free_own_desc

2014-07-22 Thread Mika Westerberg
On Mon, Jul 21, 2014 at 11:53:27PM -0700, Guenter Roeck wrote: On 07/21/2014 11:43 PM, Mika Westerberg wrote: On Mon, Jul 21, 2014 at 10:18:25PM -0700, Guenter Roeck wrote: Both functions were introduced to let gpio drivers request their own gpio pins. Without exporting the functions, this can

Re: [PATCH v3] gpiolib: Export gpiochip_request_own_desc and gpiochip_free_own_desc

2014-07-23 Thread Mika Westerberg
of gpiochip_request_own_desc and gpiochip_free_own_desc. Export both function so they can be used from modules and from platform initialization code. Cc: Mika Westerberg mika.westerb...@linux.intel.com Looks good to me, thanks. Reviewed-by: Mika Westerberg mika.westerb...@linux.intel.com -- To unsubscribe

Re: [PATCH v3 2/6] net: rfkill: gpio: convert to descriptor-based GPIO interface

2013-12-23 Thread Mika Westerberg
On Wed, Dec 11, 2013 at 01:00:18PM +0100, Linus Walleij wrote: On Tue, Nov 26, 2013 at 11:05 AM, Mika Westerberg mika.westerb...@linux.intel.com wrote: From: Heikki Krogerus heikki.kroge...@linux.intel.com Convert to the safer gpiod_* family of API functions. Signed-off-by: Heikki

[PATCH v3 2/2] x86, tsc: Add missing Baytrail frequency to the table

2014-02-06 Thread Mika Westerberg
Intel Baytrail is based on Silvermont core so MSR_FSB_FREQ[2:0] == 0 means that the CPU reference clock runs at 83.3MHz. Add this missing frequency to the table. Signed-off-by: Mika Westerberg mika.westerb...@linux.intel.com --- arch/x86/kernel/tsc_msr.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH v3 1/2] x86, tsc: Fallback to normal calibration if fast MSR calibration fails

2014-02-06 Thread Mika Westerberg
Prevent this from happening by falling back to normal TSC calibration if MSR based one fails. Signed-off-by: Mika Westerberg mika.westerb...@linux.intel.com --- Changes to v2: split the patch into two as suggested by Ingo. arch/x86/kernel/tsc.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions

Re: [PATCH v3 1/2] x86, tsc: Fallback to normal calibration if fast MSR calibration fails

2014-02-06 Thread Mika Westerberg
On Thu, Feb 06, 2014 at 03:34:18PM +0100, Thomas Gleixner wrote: On Thu, 6 Feb 2014, Mika Westerberg wrote: arch/x86/kernel/tsc.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c index 19e5adb49a27..56facfc54575

Re: [PATCH] ACPI / video: Add HP EliteBook Revolve 810 to the blacklist

2014-02-07 Thread Mika Westerberg
On Fri, Feb 07, 2014 at 09:29:58AM +0800, Aaron Lu wrote: On 02/03/2014 06:59 PM, Mika Westerberg wrote: On HP EliteBook Revolve 810 the ACPI backlight device doesn't work as expected. For example when resuming from system sleep, it seems to lose backlight settings. Forcing Intel

Re: [PATCH] spi/pxa2xx-pci: Enable DMA binding through device name

2014-07-28 Thread Mika Westerberg
On Fri, Jul 25, 2014 at 12:19:02PM +0200, Arnd Bergmann wrote: On Friday 25 July 2014 12:55:59 Mika Westerberg wrote: On Fri, Jul 25, 2014 at 12:07:14PM +0300, Mika Westerberg wrote: On Fri, Jul 25, 2014 at 10:38:36AM +0200, Arnd Bergmann wrote: On Friday 25 July 2014 11:22:49 Mika

Re: [PATCH v2] intel_idle: add idle values for Cherrytrail/Braswell

2014-08-25 Thread Mika Westerberg
On Fri, Aug 22, 2014 at 10:06:21PM +0800, Li, Aubrey wrote: On 2014/8/22 19:39, Mika Westerberg wrote: From: Mahesh Kumar P mahesh.kuma...@intel.com Cherrytrail/Braswell is a successor of Intel Baytrail but has slighly different CPU idle values and latencies. Signed-off-by: Kumar P

Re: [PATCH v2] intel_idle: add idle values for Cherrytrail/Braswell

2014-08-26 Thread Mika Westerberg
On Tue, Aug 26, 2014 at 10:38:32AM +0800, Li, Aubrey wrote: On 2014/8/25 18:12, Mika Westerberg wrote: On Fri, Aug 22, 2014 at 10:06:21PM +0800, Li, Aubrey wrote: On 2014/8/22 19:39, Mika Westerberg wrote: From: Mahesh Kumar P mahesh.kuma...@intel.com Cherrytrail/Braswell is a successor

Re: [Bugfix] x86, irq: Fix bug in setting IOAPIC pin attributes

2014-08-26 Thread Mika Westerberg
On Tue, Aug 26, 2014 at 04:45:01PM +0800, Jiang Liu wrote: On startup, IOAPIC driver preallocates IRQ descriptors and programs IOAPIC pins with default level and polarity attributes for all legacy IRQs. Later legacy IRQ users may fail to set IOAPIC pin attributes if the requested attributes

Re: [Bugfix] x86, irq: Fix bug in setting IOAPIC pin attributes

2014-08-27 Thread Mika Westerberg
attributes. Reported-by: Mika Westerberg mika.westerb...@linux.intel.com Signed-off-by: Jiang Liu jiang@linux.intel.com --- Hi Mika, We have a plan to kill function mp_set_gsi_attr() later, so I have slightly modified your changes. Could you please help to test it again? Works fine

Re: [PATCH] i2c: designware: deduce speed mode from device tree setting

2014-08-20 Thread Mika Westerberg
-by: Mika Westerberg mika.westerb...@linux.intel.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[PATCH] mmc: sdhci: Add PCI IDs for Intel Braswell

2014-08-20 Thread Mika Westerberg
From: Alan Cox a...@linux.intel.com The hardware is the same as used in Baytrail. Add these new PCI IDs to the driver's list of supported IDs. Signed-off-by: Alan Cox a...@linux.intel.com Signed-off-by: Mika Westerberg mika.westerb...@linux.intel.com --- drivers/mmc/host/sdhci-pci.c | 23

[PATCH] spi/pxa2xx: Add ACPI ID for Intel Braswell

2014-08-20 Thread Mika Westerberg
From: Alan Cox a...@linux.intel.com The SPI host controller is the same as used in Baytrail, only the ACPI ID is different so add this new ID to the list. Signed-off-by: Alan Cox a...@linux.intel.com Signed-off-by: Mika Westerberg mika.westerb...@linux.intel.com --- drivers/spi/spi-pxa2xx.c | 1

Re: [RFC PATCH 5/9] mfd: Add ACPI support

2014-08-21 Thread Mika Westerberg
On Wed, Aug 20, 2014 at 04:54:59PM +0100, Lee Jones wrote: On Sat, 16 Aug 2014, Mika Westerberg wrote: If an MFD device is backed by ACPI namespace, we should allow subdevice drivers to access their corresponding ACPI companion devices through normal means (e.g using ACPI_COMPANION

[PATCH v2] mfd: lpc_ich: Add PCI ID for Intel Braswell

2014-08-21 Thread Mika Westerberg
From: Alan Cox a...@linux.intel.com This is the same as used in Baytrail so add the new PCI ID to the driver's list of supported IDs. Signed-off-by: Alan Cox a...@linux.intel.com Signed-off-by: Mika Westerberg mika.westerb...@linux.intel.com --- Changed the PCI ID to be in lower case letters

Re: [PATCH] ACPI: Add GPIO-signaled event emulator.

2014-08-21 Thread Mika Westerberg
On Wed, Aug 20, 2014 at 04:58:20PM +0200, Tomasz Nowicki wrote: GPIO-signaled events is quite new thing in Linux kernel. There are not many board which can take advantage of it. However, GPIO events are very useful feature during work on ACPI subsystems. This commit emulates GPIO h/w

Re: [Patch V4 29/42] x86, irq: introduce two helper functions to support irqdomain map operation

2014-08-21 Thread Mika Westerberg
On Mon, Jun 09, 2014 at 04:19:58PM +0800, Jiang Liu wrote: Currently there are multiple entries to program IOAPIC pins, such as io_apic_setup_irq_pin_once(), io_apic_set_pci_routing() and setup_IO_APIC_irq_extra() etc. This patch introduces two functions to help consolidate the code to

Re: [PATCH] ACPI: Add GPIO-signaled event emulator.

2014-08-21 Thread Mika Westerberg
On Thu, Aug 21, 2014 at 04:39:46PM +0200, Tomasz Nowicki wrote: +{ + struct gpio_pin_data *pin_data, *temp; + + list_for_each_entry_safe(pin_data, temp, pin_data_list, list) + kfree(pin_data); I suppose you want to first remove the directory entries and then the pin data.

Re: [Patch V4 29/42] x86, irq: introduce two helper functions to support irqdomain map operation

2014-08-21 Thread Mika Westerberg
On Thu, Aug 21, 2014 at 05:17:29PM +0300, Mika Westerberg wrote: On Mon, Jun 09, 2014 at 04:19:58PM +0800, Jiang Liu wrote: Currently there are multiple entries to program IOAPIC pins, such as io_apic_setup_irq_pin_once(), io_apic_set_pci_routing() and setup_IO_APIC_irq_extra() etc

[PATCH] intel_idle: add idle values for Cherrytrail/Braswell

2014-08-22 Thread Mika Westerberg
From: Kumar Mahesh mahesh.kuma...@intel.com Braswell is a successor of Intel Baytrail but has slighly different CPU idle values and latencies. Signed-off-by: Kumar Mahesh mahesh.kuma...@intel.com Signed-off-by: Alan Cox a...@linux.intel.com Signed-off-by: Mika Westerberg mika.westerb

[PATCH] cpufreq: intel_pstate: Add CPU ID for Braswell processor

2014-08-22 Thread Mika Westerberg
This is pretty much the same as Intel Baytrail, only the CPU ID is different. Add the new ID to the supported CPU list. Signed-off-by: Mika Westerberg mika.westerb...@linux.intel.com Cc: Dirk Brandewie dirk.j.brande...@intel.com --- drivers/cpufreq/intel_pstate.c | 1 + 1 file changed, 1

[PATCH v2] intel_idle: add idle values for Cherrytrail/Braswell

2014-08-22 Thread Mika Westerberg
From: Mahesh Kumar P mahesh.kuma...@intel.com Cherrytrail/Braswell is a successor of Intel Baytrail but has slighly different CPU idle values and latencies. Signed-off-by: Kumar P Mahesh mahesh.kuma...@intel.com Signed-off-by: Alan Cox a...@linux.intel.com Signed-off-by: Mika Westerberg

Re: [Patch V4 29/42] x86, irq: introduce two helper functions to support irqdomain map operation

2014-08-22 Thread Mika Westerberg
On Fri, Aug 22, 2014 at 03:00:48AM +0800, Jiang Liu wrote: Hi Mika, I'm out of office until next Tuesday. Will handle this when back to work. Could you please help to take a look at mp_set_gsi_attr() to check whether it could be used to resolve this issue. The problem seems to be that

Re: [PATCH] I2C: Make I2C core able to be module when I2C_ACPI is selected.

2014-08-12 Thread Mika Westerberg
On Mon, Aug 11, 2014 at 03:00:55PM +0800, Lan Tianyu wrote: Commit da3c6647(I2C/ACPI: Clean up I2C ACPI code and Add CONFIG_I2C_ACPI config) adds a new kernel config I2C_ACPI and make I2C core built in when the config is selected. This is wrong because distributions etc generally compile I2C

Re: [RFC] ACPI: Add GPIO-signaled event simulator.

2014-08-12 Thread Mika Westerberg
On Fri, Aug 08, 2014 at 02:36:02PM +0200, Linus Walleij wrote: On Thu, Jul 24, 2014 at 5:51 PM, Tomasz Nowicki tomasz.nowi...@linaro.org wrote: GPIO signaled events is quite new thing in Linux kernel. AFAIK, there are not many board which can take advantage of it. However, GPIO events

Re: [RFC] ACPI: Add GPIO-signaled event simulator.

2014-08-12 Thread Mika Westerberg
On Tue, Aug 12, 2014 at 07:15:41AM -0700, Alexandre Courbot wrote: On Tue, Aug 12, 2014 at 3:01 AM, Mika Westerberg mika.westerb...@linux.intel.com wrote: On Fri, Aug 08, 2014 at 02:36:02PM +0200, Linus Walleij wrote: On Thu, Jul 24, 2014 at 5:51 PM, Tomasz Nowicki tomasz.nowi

Re: [PATCH] I2C: Make I2C core able to be module when I2C_ACPI is selected.

2014-08-13 Thread Mika Westerberg
On Wed, Aug 13, 2014 at 10:50:32AM +0800, Lan Tianyu wrote: On 2014年08月13日 10:03, Wolfram Sang wrote: On Tue, Aug 12, 2014 at 12:53:21PM +0300, Mika Westerberg wrote: On Mon, Aug 11, 2014 at 03:00:55PM +0800, Lan Tianyu wrote: Commit da3c6647(I2C/ACPI: Clean up I2C ACPI code and Add

Re: [PATCH] pinctrl: baytrail: resolve unbalanced IRQ wake disable warning

2014-08-13 Thread Mika Westerberg
On Mon, Aug 11, 2014 at 04:51:55PM +0300, Mathias Nyman wrote: Add the IRQCHIP_SKIP_SET_WAKE flag to baytrail gpio irq_chip to resolve unbalaced IRQ wake disable warnings. Suggested-by: Borun Fu borun...@intel.com Signed-off-by: Mathias Nyman mathias.ny...@linux.intel.com Reviewed-by: Mika

<    3   4   5   6   7   8   9   10   11   12   >