RE: [PATCH] ACPICA: make acpi_load_table() return table index

2019-09-26 Thread Nikolaus Voss
On Thu, 26 Sep 2019, Schmauss, Erik wrote: -Original Message- From: linux-acpi-ow...@vger.kernel.org On Behalf Of Shevchenko, Andriy Sent: Thursday, September 26, 2019 9:35 AM To: Schmauss, Erik Cc: Nikolaus Voss ; Rafael J. Wysocki ; Moore, Robert ; Len Brown ; Jacek Anaszewski

RE: [PATCH] ACPICA: make acpi_load_table() return table index

2019-09-26 Thread Nikolaus Voss
Hi Erik, On Thu, 26 Sep 2019, Schmauss, Erik wrote: -Original Message- From: Nikolaus Voss Sent: Thursday, September 12, 2019 1:08 AM To: Shevchenko, Andriy ; Schmauss, Erik ; Rafael J. Wysocki ; Moore, Robert Cc: Len Brown ; Jacek Anaszewski ; Pavel Machek ; Dan Murphy ; linux

Re: [PATCH] ACPICA: Introduce acpi_load_table_with_index()

2019-09-25 Thread Nikolaus Voss
On Tue, 24 Sep 2019, Andy Shevchenko wrote: On Mon, Sep 23, 2019 at 11:47:01AM +0200, Nikolaus Voss wrote: For unloading an ACPI table, it is necessary to provide the index of the table. The method intended for dynamically loading or hotplug addition of tables, acpi_load_table(), does

Re: [PATCH] ACPICA: Introduce acpi_load_table_with_index()

2019-09-25 Thread Nikolaus Voss
On Tue, 24 Sep 2019, Shevchenko, Andriy wrote: On Tue, Sep 24, 2019 at 03:07:34PM +0300, Shevchenko, Andriy wrote: On Mon, Sep 23, 2019 at 11:47:01AM +0200, Nikolaus Voss wrote: For unloading an ACPI table, it is necessary to provide the index of the table. The method intended for dynamically

RE: [PATCH] ACPICA: make acpi_load_table() return table index

2019-09-25 Thread Nikolaus Voss
tion my favorite being the API change. Niko -----Original Message- From: Nikolaus Voss Sent: Monday, September 23, 2019 2:05 AM To: Moore, Robert Cc: Ferry Toth ; Shevchenko, Andriy ; Schmauss, Erik ; Rafael J. Wysocki ; Len Brown ; Jacek Anaszewski ; Pavel Machek ; Dan Murphy ; l

[PATCH] ACPICA: Introduce acpi_load_table_with_index()

2019-09-23 Thread Nikolaus Voss
loads") Signed-off-by: Nikolaus Voss --- drivers/acpi/acpi_configfs.c | 2 +- drivers/acpi/acpica/tbxfload.c | 43 ++ include/acpi/acpixf.h | 6 + 3 files changed, 50 insertions(+), 1 deletion(-) diff --git a/drivers/acpi/acpi_configfs.c b/dr

Re: [PATCH] ACPICA: make acpi_load_table() return table index

2019-09-23 Thread Nikolaus Voss
On Thu, 19 Sep 2019, Rafael J. Wysocki wrote: On Thursday, September 12, 2019 10:07:42 AM CEST Nikolaus Voss wrote: For unloading an ACPI table, it is necessary to provide the index of the table. The method intended for dynamically loading or hotplug addition of tables, acpi_load_table

RE: [PATCH] ACPICA: make acpi_load_table() return table index

2019-09-23 Thread Nikolaus Voss
On Thu, 19 Sep 2019, Moore, Robert wrote: -Original Message- From: Nikolaus Voss [mailto:n...@vosn.de] Sent: Wednesday, September 18, 2019 7:32 AM To: Moore, Robert Cc: Ferry Toth ; Shevchenko, Andriy ; Schmauss, Erik ; Rafael J. Wysocki ; Len Brown ; Jacek Anaszewski ; Pavel Machek

RE: [PATCH] ACPICA: make acpi_load_table() return table index

2019-09-18 Thread Nikolaus Voss
On Wed, 18 Sep 2019, Moore, Robert wrote: -Original Message- From: Nikolaus Voss [mailto:n...@vosn.de] Sent: Monday, September 16, 2019 2:47 AM To: Moore, Robert Cc: Ferry Toth ; Shevchenko, Andriy ; Schmauss, Erik ; Rafael J. Wysocki ; Len Brown ; Jacek Anaszewski ; Pavel Machek

RE: [PATCH] ACPICA: make acpi_load_table() return table index

2019-09-16 Thread Nikolaus Voss
On Fri, 13 Sep 2019, Moore, Robert wrote: -Original Message- From: Ferry Toth [mailto:fnt...@gmail.com] Sent: Friday, September 13, 2019 9:48 AM To: Shevchenko, Andriy ; Moore, Robert Cc: Nikolaus Voss ; Schmauss, Erik ; Rafael J. Wysocki ; Len Brown ; Jacek Anaszewski ; Pavel

RE: [PATCH] ACPICA: make acpi_load_table() return table index

2019-09-13 Thread Nikolaus Voss
Bob, On Thu, 12 Sep 2019, Moore, Robert wrote: The ability to unload an ACPI table (especially AML tables such as SSDTs) is in the process of being deprecated in ACPICA -- since it is also deprecated in the current ACPI specification. This is being done because of the difficulty of deleting

[PATCH] ACPICA: make acpi_load_table() return table index

2019-09-12 Thread Nikolaus Voss
function of acpi_configfs. Reported-by: Andy Shevchenko Fixes: d06c47e3dd07f ("ACPI: configfs: Resolve objects on host-directed table loads") Signed-off-by: Nikolaus Voss --- drivers/acpi/acpi_configfs.c | 2 +- drivers/acpi/acpica/dbfileio.c | 2 +- drivers/acpi/acpica/tbxf

Re: [PATCH 1/3] ACPI: Resolve objects on host-directed table loads

2019-09-12 Thread Nikolaus Voss
On Fri, 6 Sep 2019, Shevchenko, Andriy wrote: On Wed, Sep 04, 2019 at 09:20:03AM +0200, Nikolaus Voss wrote: On Fri, 30 Aug 2019, Shevchenko, Andriy wrote: On Fri, Aug 16, 2019 at 01:57:26PM +0200, Nikolaus Voss wrote: On Wed, 14 Aug 2019, Schmauss, Erik wrote: -Original Message

Re: [PATCH v2 1/2] ASoC: tas5720.c: cleanup variant management

2019-07-03 Thread Nikolaus Voss
On Wed, 3 Jul 2019, Andrew F. Davis wrote: On 7/2/19 6:12 AM, Nikolaus Voss wrote: On Mon, 1 Jul 2019, Andrew F. Davis wrote: On 7/1/19 11:35 AM, Nikolaus Voss wrote: On Mon, 1 Jul 2019, Andrew F. Davis wrote: On 7/1/19 9:42 AM, Nikolaus Voss wrote: Replace enum tas572x_type with struct

Re: [PATCH 1/2] drivers/usb/typec/tps6598x.c: fix portinfo width

2019-07-03 Thread Nikolaus Voss
On Wed, 3 Jul 2019, Greg Kroah-Hartman wrote: On Fri, Jun 28, 2019 at 12:10:41PM +0200, Nikolaus Voss wrote: On Fri, 28 Jun 2019, Heikki Krogerus wrote: On Fri, Jun 28, 2019 at 11:01:08AM +0200, Nikolaus Voss wrote: Portinfo bit field is 3 bits wide, not 2 bits. This led to a wrong driver

Re: [PATCH v2 1/2] ASoC: tas5720.c: cleanup variant management

2019-07-02 Thread Nikolaus Voss
On Mon, 1 Jul 2019, Andrew F. Davis wrote: On 7/1/19 11:35 AM, Nikolaus Voss wrote: On Mon, 1 Jul 2019, Andrew F. Davis wrote: On 7/1/19 9:42 AM, Nikolaus Voss wrote: Replace enum tas572x_type with struct tas5720_variant which aggregates variant specific stuff and can be directly referenced

Re: [PATCH v2 1/2] ASoC: tas5720.c: cleanup variant management

2019-07-01 Thread Nikolaus Voss
On Mon, 1 Jul 2019, Andrew F. Davis wrote: On 7/1/19 9:42 AM, Nikolaus Voss wrote: Replace enum tas572x_type with struct tas5720_variant which aggregates variant specific stuff and can be directly referenced from an id table. Signed-off-by: Nikolaus Voss --- sound/soc/codecs/tas5720.c | 98

[PATCH v2 2/2] ASoC: tas5720.c: add ACPI enumeration support

2019-07-01 Thread Nikolaus Voss
Add ACPI IDs for tas5720 and tas5722 and use device match API to determine the variant. Signed-off-by: Nikolaus Voss --- sound/soc/codecs/tas5720.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/sound/soc/codecs/tas5720.c b/sound/soc/codecs/tas5720.c index

[PATCH v2 1/2] ASoC: tas5720.c: cleanup variant management

2019-07-01 Thread Nikolaus Voss
Replace enum tas572x_type with struct tas5720_variant which aggregates variant specific stuff and can be directly referenced from an id table. Signed-off-by: Nikolaus Voss --- sound/soc/codecs/tas5720.c | 98 +- 1 file changed, 33 insertions(+), 65 deletions

[PATCH v2 0/2] ASoC: tas5720.c: add ACPI enumeration support

2019-07-01 Thread Nikolaus Voss
as suggested by Mark Brown and Andrew F. Davis. - don't integrate variant data into variant struct but reference it (suggested by Andrew F. Davis). Nikolaus Voss (2): ASoC: tas5720.c: cleanup variant management ASoC: tas5720.c: add ACPI enumeration support sound/soc/codecs/tas5720.c | 111

Re: [PATCH] sound/soc/codecs/tas5720.c: add ACPI support

2019-07-01 Thread Nikolaus Voss
On Fri, 28 Jun 2019, Andrew F. Davis wrote: On 6/28/19 8:34 AM, Nikolaus Voss wrote: Add support for ACPI enumeration for tas5720 and tas5722. Use device_match API to unify access to driver data for DT and ACPI. Aggregate variant stuff into its own struct and directly reference it in variant

Re: [PATCH] sound/soc/codecs/tas5720.c: add ACPI support

2019-07-01 Thread Nikolaus Voss
On Fri, 28 Jun 2019, Mark Brown wrote: On Fri, Jun 28, 2019 at 02:34:16PM +0200, Nikolaus Voss wrote: Add support for ACPI enumeration for tas5720 and tas5722. Use device_match API to unify access to driver data for DT and ACPI. Aggregate variant stuff into its own struct and directly reference

[PATCH] sound/soc/codecs/tas5720.c: add ACPI support

2019-06-28 Thread Nikolaus Voss
Add support for ACPI enumeration for tas5720 and tas5722. Use device_match API to unify access to driver data for DT and ACPI. Aggregate variant stuff into its own struct and directly reference it in variant data for i2c/of/acpi_device_id. Signed-off-by: Nikolaus Voss --- sound/soc/codecs

Re: [PATCH 1/2] drivers/usb/typec/tps6598x.c: fix portinfo width

2019-06-28 Thread Nikolaus Voss
On Fri, 28 Jun 2019, Heikki Krogerus wrote: On Fri, Jun 28, 2019 at 11:01:08AM +0200, Nikolaus Voss wrote: Portinfo bit field is 3 bits wide, not 2 bits. This led to a wrong driver configuration for some tps6598x configurations. Fixes: 0a4c005bd171 ("usb: typec: driver for TI TPS6598

[PATCH 2/2] drivers/usb/typec/tps6598x.c: fix 4CC cmd write

2019-06-28 Thread Nikolaus Voss
: 0a4c005bd171 ("usb: typec: driver for TI TPS6598x USB Power Delivery controllers") Signed-off-by: Nikolaus Voss --- drivers/usb/typec/tps6598x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/typec/tps6598x.c b/drivers/usb/typec/tps6598x.c index a1

[PATCH 1/2] drivers/usb/typec/tps6598x.c: fix portinfo width

2019-06-28 Thread Nikolaus Voss
Portinfo bit field is 3 bits wide, not 2 bits. This led to a wrong driver configuration for some tps6598x configurations. Fixes: 0a4c005bd171 ("usb: typec: driver for TI TPS6598x USB Power Delivery controllers") Signed-off-by: Nikolaus Voss --- drivers/usb/typec/tps6598x.c | 2

[PATCH] drivers/usb/typec/tps6598x.c: fix two bugs

2019-06-28 Thread Nikolaus Voss
this enforces the constness of the pointer to propagate to tps6598x_block_write(), so add the const qualifier there to avoid the warning. Signed-off-by: Nikolaus Voss --- drivers/usb/typec/tps6598x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/typec/tps6598x.c

RE: [PATCH v2 1/3] ACPI: Resolve objects on host-directed table loads

2019-06-20 Thread Nikolaus Voss
On Wed, 19 Jun 2019, Moore, Robert wrote: -Original Message- From: Nikolaus Voss [mailto:n...@vosn.de] Sent: Wednesday, June 19, 2019 2:31 AM To: Moore, Robert Cc: Rafael J. Wysocki ; Rafael J. Wysocki ; Len Brown ; Schmauss, Erik ; Jacek Anaszewski ; Pavel Machek ; Dan Murphy

RE: [PATCH v2 1/3] ACPI: Resolve objects on host-directed table loads

2019-06-19 Thread Nikolaus Voss
Hi Bob, On Tue, 18 Jun 2019, Moore, Robert wrote: -Original Message- From: Moore, Robert Sent: Tuesday, June 18, 2019 1:25 PM To: 'Nikolaus Voss' Cc: 'Rafael J. Wysocki' ; 'Rafael J. Wysocki' ; 'Len Brown' ; Schmauss, Erik ; 'Jacek Anaszewski' ; 'Pavel Machek' ; 'Dan Murphy

RE: [PATCH v2 1/3] ACPI: Resolve objects on host-directed table loads

2019-06-18 Thread Nikolaus Voss
On Mon, 17 Jun 2019, Moore, Robert wrote: -Original Message- From: Nikolaus Voss [mailto:n...@vosn.de] Sent: Sunday, June 16, 2019 11:24 PM To: Moore, Robert Cc: Rafael J. Wysocki ; Rafael J. Wysocki ; Len Brown ; Schmauss, Erik ; Jacek Anaszewski ; Pavel Machek ; Dan Murphy ; Thierry

RE: [PATCH v2 1/3] ACPI: Resolve objects on host-directed table loads

2019-06-17 Thread Nikolaus Voss
Bob, On Fri, 14 Jun 2019, Moore, Robert wrote: -Original Message- From: Nikolaus Voss [mailto:n...@vosn.de] Sent: Friday, June 14, 2019 2:26 AM To: Rafael J. Wysocki Cc: Rafael J. Wysocki ; Len Brown ; Moore, Robert ; Schmauss, Erik ; Jacek Anaszewski ; Pavel Machek ; Dan Murphy

Re: [PATCH v2 1/3] ACPI: Resolve objects on host-directed table loads

2019-06-14 Thread Nikolaus Voss
Hi Rafael, On Fri, 14 Jun 2019, Rafael J. Wysocki wrote: On Wed, Jun 12, 2019 at 10:36 AM Nikolaus Voss wrote: If an ACPI SSDT overlay is loaded after built-in tables have been loaded e.g. via configfs or efivar_ssdt_load() it is necessary to rewalk the namespace to resolve references

[PATCH v2 2/3] PWM framework: add support referencing PWMs from ACPI

2019-06-12 Thread Nikolaus Voss
The firmware-node framework could be used to unify both paths in a future patch. To support leds-pwm driver, an additional method devm_fwnode_pwm_get() which supports both ACPI and DT configuration is exported. Signed-off-by: Nikolaus Voss --- drivers/pwm/core.c | 113 +

[PATCH v2 3/3] leds-pwm.c: support ACPI via firmware-node framework

2019-06-12 Thread Nikolaus Voss
{ Package () {"label", "alarm-led"}, Package () {"pwms", Package () {\_SB_.PCI0.PWM, 0, 60, 0}}, Package () {"linux,def

[PATCH v2 0/3] PWM framework: add support referencing PWMs from ACPI

2019-06-12 Thread Nikolaus Voss
ries makes leds-pwm use the ACPI-enabled PWM framework. v2: - fixes by Pavel Machek and Dan Murphy Nikolaus Voss (3): ACPI: Resolve objects on host-directed table loads PWM framework: add support referencing PWMs from ACPI leds-pwm.c: support ACPI via firmware-node framework drivers/acpi/

[PATCH v2 1/3] ACPI: Resolve objects on host-directed table loads

2019-06-12 Thread Nikolaus Voss
load use the same method as efivar_ssdt_load(). Signed-off-by: Nikolaus Voss --- drivers/acpi/acpi_configfs.c | 6 +- drivers/acpi/acpica/tbxfload.c | 11 +++ 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/drivers/acpi/acpi_configfs.c b/drivers/acpi/acpi_configfs.c

Re: [PATCHv3] usb: typec: tps6598x: handle block writes separately with plain-I2C adapters

2019-02-21 Thread Nikolaus Voss
On Thu, 21 Feb 2019, Heikki Krogerus wrote: On Wed, Feb 20, 2019 at 04:11:38PM +0100, Nikolaus Voss wrote: From: Nikolaus Voss Commit 1a2f474d328f handles block _reads_ separately with plain-I2C adapters, but the problem described with regmap-i2c not handling SMBus block transfers (i.e. read

Re: [PATCHv3] usb: typec: tps6598x: handle block writes separately with plain-I2C adapters

2019-02-21 Thread Nikolaus Voss
Hi Guenther, On Wed, 20 Feb 2019, Guenter Roeck wrote: On 2/20/19 7:11 AM, Nikolaus Voss wrote: From: Nikolaus Voss Commit 1a2f474d328f handles block _reads_ separately with plain-I2C adapters, but the problem described with regmap-i2c not handling SMBus block transfers (i.e. read and writes

Re: [PATCHv2] usb: typec: tps6598x: handle block writes separately with plain-I2C adapters

2019-02-21 Thread Nikolaus Voss
Hi Greg, On Wed, 20 Feb 2019, Greg Kroah-Hartman wrote: On Wed, Feb 20, 2019 at 04:22:00PM +0100, Nikolaus Voss wrote: v2: fix tps6598x_exec_cmd also --- drivers/usb/typec/tps6598x.c | 26 -- 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/drivers/usb

Re: [PATCHv2] usb: typec: tps6598x: handle block writes separately with plain-I2C adapters

2019-02-20 Thread Nikolaus Voss
On Wed, 20 Feb 2019, Greg Kroah-Hartman wrote: On Wed, Feb 20, 2019 at 01:57:30PM +0100, Nikolaus Voss wrote: Commit 1a2f474d328f handles block _reads_ separately with plain-I2C adapters, but the problem described with regmap-i2c not handling SMBus block transfers (i.e. read and writes

Re: [PATCHv2] usb: typec: tps6598x: handle block writes separately with plain-I2C adapters

2019-02-20 Thread Nikolaus Voss
On Wed, 20 Feb 2019, Guenter Roeck wrote: On 2/20/19 4:57 AM, Nikolaus Voss wrote: Commit 1a2f474d328f handles block _reads_ separately with plain-I2C adapters, but the problem described with regmap-i2c not handling SMBus block transfers (i.e. read and writes) correctly also exists with writes

[PATCHv3] usb: typec: tps6598x: handle block writes separately with plain-I2C adapters

2019-02-20 Thread Nikolaus Voss
From: Nikolaus Voss Commit 1a2f474d328f handles block _reads_ separately with plain-I2C adapters, but the problem described with regmap-i2c not handling SMBus block transfers (i.e. read and writes) correctly also exists with writes. As workaround, this patch adds a block write function the same

Re: [PATCHv2] usb: typec: tps6598x: handle block writes separately with plain-I2C adapters

2019-02-20 Thread Nikolaus Voss
On Wed, 20 Feb 2019, Heikki Krogerus wrote: On Wed, Feb 20, 2019 at 04:14:23PM +0200, Heikki Krogerus wrote: On Wed, Feb 20, 2019 at 02:38:47PM +0100, Nikolaus Voss wrote: On Wed, 20 Feb 2019, Heikki Krogerus wrote: On Wed, Feb 20, 2019 at 01:57:30PM +0100, Nikolaus Voss wrote: Commit

Re: [PATCHv2] usb: typec: tps6598x: handle block writes separately with plain-I2C adapters

2019-02-20 Thread Nikolaus Voss
On Wed, 20 Feb 2019, Heikki Krogerus wrote: On Wed, Feb 20, 2019 at 01:57:30PM +0100, Nikolaus Voss wrote: Commit 1a2f474d328f handles block _reads_ separately with plain-I2C adapters, but the problem described with regmap-i2c not handling SMBus block transfers (i.e. read and writes) correctly

[PATCHv2] usb: typec: tps6598x: handle block writes separately with plain-I2C adapters

2019-02-20 Thread Nikolaus Voss
a block read function. Fixes: 1a2f474d328f ("usb: typec: tps6598x: handle block reads separately with plain-I2C adapters") Fixes: 0a4c005bd171 ("usb: typec: driver for TI TPS6598x USB Power Delivery controllers") Signed-off-by: Nikolaus Voss --- v2: fix tps6598x_exec_cmd a

Re: [PATCH] usb: typec: tps6598x: handle block writes separately with plain-I2C adapters

2019-02-20 Thread Nikolaus Voss
Hi, On Wed, 20 Feb 2019, Heikki Krogerus wrote: Hi, On Mon, Sep 10, 2018 at 07:05:01AM +0200, Nikolaus Voss wrote: Commit 1a2f474d328f handles block _reads_ separately with plain-I2C adapters, but the problem described with regmap-i2c not handling SMBus block transfers (i.e. read and writes

[PATCH] usb: typec: tps6598x: handle block writes separately with plain-I2C adapters

2019-02-20 Thread Nikolaus Voss
a block read function. Fixes: 1a2f474d328f ("usb: typec: tps6598x: handle block reads separately with plain-I2C adapters") Fixes: 0a4c005bd171 ("usb: typec: driver for TI TPS6598x USB Power Delivery controllers") Signed-off-by: Nikolaus Voss --- drivers/usb/t

[PATCH 1/2] drivers/gpio/gpio-adp5588.c: add device tree support

2019-02-05 Thread Nikolaus Voss
Make platform data optional and add DT id table. Switch to dynamically mapped GPIOs and IRQs if not provided via platform data. Signed-off-by: Nikolaus Voss --- drivers/gpio/gpio-adp5588.c | 151 1 file changed, 68 insertions(+), 83 deletions(-) diff --git

[PATCH 2/2] drivers/gpio/gpio-adp5588.c: switch to events system

2019-02-05 Thread Nikolaus Voss
interrupts for both edges and to generate only one interrupt per state change. Thus it is possible to chain the gpio-keys driver for some GPIOs. Signed-off-by: Nikolaus Voss --- drivers/gpio/gpio-adp5588.c | 85 ++--- 1 file changed, 32 insertions(+), 53 deletions

Re: [PATCH v3 4/4] regmap-i2c: Add smbus i2c block support

2018-09-06 Thread Nikolaus Voss
Hi Markus, On Thu, 27 Aug 2015, Markus Pargmann wrote: This allows to read/write up to 32 bytes of data and is to be prefered if supported before the register read/write smbus support. Signed-off-by: Markus Pargmann --- drivers/base/regmap/regmap-i2c.c | 49

Re: [PATCH v3 4/4] regmap-i2c: Add smbus i2c block support

2018-09-06 Thread Nikolaus Voss
Hi Markus, On Thu, 27 Aug 2015, Markus Pargmann wrote: This allows to read/write up to 32 bytes of data and is to be prefered if supported before the register read/write smbus support. Signed-off-by: Markus Pargmann --- drivers/base/regmap/regmap-i2c.c | 49

[PATCH] init/do_mounts.c: add root=PARTLABEL= support

2018-08-22 Thread Nikolaus Voss
there is an A/B rootfs partition scheme for interruptible firmware updates (i.e. rootfsA/ rootfsB). The partition label can be queried with the blkid command. Signed-off-by: Nikolaus Voss --- init/do_mounts.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/init

[PATCH] init/do_mounts.c: add root=PARTLABEL= support

2018-08-22 Thread Nikolaus Voss
there is an A/B rootfs partition scheme for interruptible firmware updates (i.e. rootfsA/ rootfsB). The partition label can be queried with the blkid command. Signed-off-by: Nikolaus Voss --- init/do_mounts.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/init

Re: [PATCH v2] ACPI: bus.c: Let acpi_device_get_match_data() return DT compatibility data

2018-07-24 Thread Nikolaus Voss
On Mon, 9 Jul 2018, Rafael J. Wysocki wrote: On Wednesday, July 4, 2018 4:40:34 PM CEST Andy Shevchenko wrote: On Tue, Jul 3, 2018 at 9:09 AM, Nikolaus Voss wrote: When using ACPI with ACPI_DT_NAMESPACE_HID/ PRP0001 HID and referring to of_device_id table "compatible" stri

Re: [PATCH v2] ACPI: bus.c: Let acpi_device_get_match_data() return DT compatibility data

2018-07-24 Thread Nikolaus Voss
On Mon, 9 Jul 2018, Rafael J. Wysocki wrote: On Wednesday, July 4, 2018 4:40:34 PM CEST Andy Shevchenko wrote: On Tue, Jul 3, 2018 at 9:09 AM, Nikolaus Voss wrote: When using ACPI with ACPI_DT_NAMESPACE_HID/ PRP0001 HID and referring to of_device_id table "compatible" stri

Re: [PATCH v2] ACPI: bus.c: Let acpi_device_get_match_data() return DT compatibility data

2018-07-24 Thread Nikolaus Voss
On Wed, 4 Jul 2018, Andy Shevchenko wrote: On Tue, Jul 3, 2018 at 9:09 AM, Nikolaus Voss wrote: When using ACPI with ACPI_DT_NAMESPACE_HID/ PRP0001 HID and referring to of_device_id table "compatible" strings in DSD, a pointer to the corresponding DT table entry should be return

Re: [PATCH v2] ACPI: bus.c: Let acpi_device_get_match_data() return DT compatibility data

2018-07-24 Thread Nikolaus Voss
On Wed, 4 Jul 2018, Andy Shevchenko wrote: On Tue, Jul 3, 2018 at 9:09 AM, Nikolaus Voss wrote: When using ACPI with ACPI_DT_NAMESPACE_HID/ PRP0001 HID and referring to of_device_id table "compatible" strings in DSD, a pointer to the corresponding DT table entry should be return

[PATCH v4 0/2] IIO: st_sensors_i2c: improve device enumeration

2018-07-05 Thread Nikolaus Voss
Shevchenko - removed syncing DT/I2C table names as Jonathan Cameron pointed out this would be an ABI change - converting from probe() to probe_new() is moved into a separate patch (as suggested by Jonathan Cameron) Nikolaus Voss (2): IIO: st_accel_i2c.c: Simplify access to driver data IIO

[PATCH v4 0/2] IIO: st_sensors_i2c: improve device enumeration

2018-07-05 Thread Nikolaus Voss
Shevchenko - removed syncing DT/I2C table names as Jonathan Cameron pointed out this would be an ABI change - converting from probe() to probe_new() is moved into a separate patch (as suggested by Jonathan Cameron) Nikolaus Voss (2): IIO: st_accel_i2c.c: Simplify access to driver data IIO

[PATCH v4 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe()

2018-07-05 Thread Nikolaus Voss
struct i2c_device_id argument of probe() is not used, so use probe_new() instead. Reviewed-by: Andy Shevchenko Signed-off-by: Nikolaus Voss --- drivers/iio/accel/st_accel_i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/accel/st_accel_i2c.c b/drivers

[PATCH v4 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe()

2018-07-05 Thread Nikolaus Voss
struct i2c_device_id argument of probe() is not used, so use probe_new() instead. Reviewed-by: Andy Shevchenko Signed-off-by: Nikolaus Voss --- drivers/iio/accel/st_accel_i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/accel/st_accel_i2c.c b/drivers

[PATCH v4 1/2] IIO: st_accel_i2c.c: Simplify access to driver data

2018-07-05 Thread Nikolaus Voss
Shevchenko Signed-off-by: Nikolaus Voss --- drivers/iio/accel/st_accel_i2c.c | 59 ++-- 1 file changed, 25 insertions(+), 34 deletions(-) diff --git a/drivers/iio/accel/st_accel_i2c.c b/drivers/iio/accel/st_accel_i2c.c index 056dddb27236..d02298f0256c 100644

[PATCH v4 1/2] IIO: st_accel_i2c.c: Simplify access to driver data

2018-07-05 Thread Nikolaus Voss
Shevchenko Signed-off-by: Nikolaus Voss --- drivers/iio/accel/st_accel_i2c.c | 59 ++-- 1 file changed, 25 insertions(+), 34 deletions(-) diff --git a/drivers/iio/accel/st_accel_i2c.c b/drivers/iio/accel/st_accel_i2c.c index 056dddb27236..d02298f0256c 100644

Re: [PATCH v3 1/2] IIO: st_accel_i2c.c: Simplify access to driver data

2018-07-05 Thread Nikolaus Voss
On Wed, 4 Jul 2018, Andy Shevchenko wrote: On Tue, Jul 3, 2018 at 8:41 AM, Nikolaus Voss wrote: Use device_get_match_data API to simplify access to driver data. Let acpi_device_id table entries point to the same driver data as of_device_id table entries and uniquify access to driver data

Re: [PATCH v3 1/2] IIO: st_accel_i2c.c: Simplify access to driver data

2018-07-05 Thread Nikolaus Voss
On Wed, 4 Jul 2018, Andy Shevchenko wrote: On Tue, Jul 3, 2018 at 8:41 AM, Nikolaus Voss wrote: Use device_get_match_data API to simplify access to driver data. Let acpi_device_id table entries point to the same driver data as of_device_id table entries and uniquify access to driver data

[PATCH v3 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe()

2018-07-04 Thread Nikolaus Voss
struct i2c_device_id argument of probe() is not used, so use probe_new() instead. Signed-off-by: Nikolaus Voss --- drivers/iio/accel/st_accel_i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/accel/st_accel_i2c.c b/drivers/iio/accel/st_accel_i2c.c index

[PATCH v3 1/2] IIO: st_accel_i2c.c: Simplify access to driver data

2018-07-04 Thread Nikolaus Voss
-by: Nikolaus Voss --- drivers/iio/accel/st_accel_i2c.c | 56 ++-- 1 file changed, 24 insertions(+), 32 deletions(-) diff --git a/drivers/iio/accel/st_accel_i2c.c b/drivers/iio/accel/st_accel_i2c.c index 6bdec8c451e0..c6e08c834f11 100644 --- a/drivers/iio/accel/st_accel_i2c.c

[PATCH v3 0/2] IIO: st_sensors_i2c: improve device enumeration

2018-07-04 Thread Nikolaus Voss
pointed out this would be an ABI change - converting from probe() to probe_new() is moved into a separate patch (as suggested by Jonathan Cameron) Nikolaus Voss (2): IIO: st_accel_i2c.c: Simplify access to driver data IIO: st_accel_i2c.c: Use probe_new() instead of probe() drivers/iio

[PATCH v3 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe()

2018-07-04 Thread Nikolaus Voss
struct i2c_device_id argument of probe() is not used, so use probe_new() instead. Signed-off-by: Nikolaus Voss --- drivers/iio/accel/st_accel_i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/accel/st_accel_i2c.c b/drivers/iio/accel/st_accel_i2c.c index

[PATCH v3 1/2] IIO: st_accel_i2c.c: Simplify access to driver data

2018-07-04 Thread Nikolaus Voss
-by: Nikolaus Voss --- drivers/iio/accel/st_accel_i2c.c | 56 ++-- 1 file changed, 24 insertions(+), 32 deletions(-) diff --git a/drivers/iio/accel/st_accel_i2c.c b/drivers/iio/accel/st_accel_i2c.c index 6bdec8c451e0..c6e08c834f11 100644 --- a/drivers/iio/accel/st_accel_i2c.c

[PATCH v3 0/2] IIO: st_sensors_i2c: improve device enumeration

2018-07-04 Thread Nikolaus Voss
pointed out this would be an ABI change - converting from probe() to probe_new() is moved into a separate patch (as suggested by Jonathan Cameron) Nikolaus Voss (2): IIO: st_accel_i2c.c: Simplify access to driver data IIO: st_accel_i2c.c: Use probe_new() instead of probe() drivers/iio

Re: [PATCH v2 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe()

2018-07-04 Thread Nikolaus Voss
On Wed, 4 Jul 2018, Javier Martinez Canillas wrote: On Wed, Jul 4, 2018 at 2:31 PM, Nikolaus Voss wrote: On Wed, 4 Jul 2018, Javier Martinez Canillas wrote: On Wed, Jul 4, 2018 at 1:46 PM, Nikolaus Voss wrote: [snip] But this discussion isn't really related to your patch. I think

Re: [PATCH v2 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe()

2018-07-04 Thread Nikolaus Voss
On Wed, 4 Jul 2018, Javier Martinez Canillas wrote: On Wed, Jul 4, 2018 at 2:31 PM, Nikolaus Voss wrote: On Wed, 4 Jul 2018, Javier Martinez Canillas wrote: On Wed, Jul 4, 2018 at 1:46 PM, Nikolaus Voss wrote: [snip] But this discussion isn't really related to your patch. I think

Re: [PATCH] ACPI: bus.c: Let acpi_device_get_match_data() return DT compatibility data

2018-07-04 Thread Nikolaus Voss
On Wed, 4 Jul 2018, Andy Shevchenko wrote: On Tue, Jul 3, 2018 at 9:09 AM, Nikolaus Voss wrote: Thanks for the patch, now I completely got it and agree on approach. Few comments below. When using ACPI with ACPI_DT_NAMESPACE_HID/ PRP0001 HID and referring to of_device_id table "compa

Re: [PATCH] ACPI: bus.c: Let acpi_device_get_match_data() return DT compatibility data

2018-07-04 Thread Nikolaus Voss
On Wed, 4 Jul 2018, Andy Shevchenko wrote: On Tue, Jul 3, 2018 at 9:09 AM, Nikolaus Voss wrote: Thanks for the patch, now I completely got it and agree on approach. Few comments below. When using ACPI with ACPI_DT_NAMESPACE_HID/ PRP0001 HID and referring to of_device_id table "compa

Re: [PATCH v2 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe()

2018-07-04 Thread Nikolaus Voss
On Wed, 4 Jul 2018, Javier Martinez Canillas wrote: On Wed, Jul 4, 2018 at 1:46 PM, Nikolaus Voss wrote: [snip] But this discussion isn't really related to your patch. I think is correct but just said that (b) wasn't a justification to leave the I2C table, points (a) and (c) are though. I

Re: [PATCH v2 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe()

2018-07-04 Thread Nikolaus Voss
On Wed, 4 Jul 2018, Javier Martinez Canillas wrote: On Wed, Jul 4, 2018 at 1:46 PM, Nikolaus Voss wrote: [snip] But this discussion isn't really related to your patch. I think is correct but just said that (b) wasn't a justification to leave the I2C table, points (a) and (c) are though. I

Re: [PATCH v2 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe()

2018-07-04 Thread Nikolaus Voss
Hi Javier, On Wed, 4 Jul 2018, Javier Martinez Canillas wrote: Hi Nikolaus, On Wed, Jul 4, 2018 at 1:15 PM, Nikolaus Voss wrote: On Wed, 4 Jul 2018, Javier Martinez Canillas wrote: [snip] I think Nikolaus is correct, assuming that the driver can be used on legacy platforms that register

Re: [PATCH v2 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe()

2018-07-04 Thread Nikolaus Voss
Hi Javier, On Wed, 4 Jul 2018, Javier Martinez Canillas wrote: Hi Nikolaus, On Wed, Jul 4, 2018 at 1:15 PM, Nikolaus Voss wrote: On Wed, 4 Jul 2018, Javier Martinez Canillas wrote: [snip] I think Nikolaus is correct, assuming that the driver can be used on legacy platforms that register

Re: [PATCH v2 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe()

2018-07-04 Thread Nikolaus Voss
On Wed, 4 Jul 2018, Javier Martinez Canillas wrote: Hi Andy, On 07/04/2018 12:19 PM, Andy Shevchenko wrote: Summon Javier to the discussion. For my opinion he is an expert in this topic. I wouldn't call myself an expert in anything to be honest :) [snip] The table is not used by the

Re: [PATCH v2 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe()

2018-07-04 Thread Nikolaus Voss
On Wed, 4 Jul 2018, Javier Martinez Canillas wrote: Hi Andy, On 07/04/2018 12:19 PM, Andy Shevchenko wrote: Summon Javier to the discussion. For my opinion he is an expert in this topic. I wouldn't call myself an expert in anything to be honest :) [snip] The table is not used by the

Re: [RFC PATCH] ACPI: bus: match of_device_id using acpi device

2018-07-04 Thread Nikolaus Voss
On Wed, 4 Jul 2018, Andy Shevchenko wrote: On Wed, Jul 4, 2018 at 1:17 PM, Nikolaus Voss wrote: On Wed, 4 Jul 2018, Sudeep Holla wrote: On 04/07/18 10:32, Andy Shevchenko wrote: On Wed, Jul 4, 2018 at 6:37 AM, Srinath Mannam wrote: +1 on NACK for this and anything else that abuse PRP0001

Re: [RFC PATCH] ACPI: bus: match of_device_id using acpi device

2018-07-04 Thread Nikolaus Voss
On Wed, 4 Jul 2018, Andy Shevchenko wrote: On Wed, Jul 4, 2018 at 1:17 PM, Nikolaus Voss wrote: On Wed, 4 Jul 2018, Sudeep Holla wrote: On 04/07/18 10:32, Andy Shevchenko wrote: On Wed, Jul 4, 2018 at 6:37 AM, Srinath Mannam wrote: +1 on NACK for this and anything else that abuse PRP0001

[PATCH] ACPI: bus.c: Let acpi_device_get_match_data() return DT compatibility data

2018-07-04 Thread Nikolaus Voss
When using ACPI with ACPI_DT_NAMESPACE_HID/ PRP0001 HID and referring to of_device_id table "compatible" strings in DSD, a pointer to the corresponding DT table entry should be returned instead of a null pointer. An acpi_device_id match still takes precedence. Signed-off-by: Nik

[PATCH] ACPI: bus.c: Let acpi_device_get_match_data() return DT compatibility data

2018-07-04 Thread Nikolaus Voss
When using ACPI with ACPI_DT_NAMESPACE_HID/ PRP0001 HID and referring to of_device_id table "compatible" strings in DSD, a pointer to the corresponding DT table entry should be returned instead of a null pointer. An acpi_device_id match still takes precedence. Signed-off-by: Nik

Re: [RFC PATCH] ACPI: bus: match of_device_id using acpi device

2018-07-04 Thread Nikolaus Voss
On Wed, 4 Jul 2018, Sudeep Holla wrote: On 04/07/18 10:32, Andy Shevchenko wrote: On Wed, Jul 4, 2018 at 6:37 AM, Srinath Mannam wrote: Hi Sudeep, Andy, Yes, This patch is to get of_device_id and then fetch data pointer. To add ACPI support in multiple drivers which are device-tree based

Re: [RFC PATCH] ACPI: bus: match of_device_id using acpi device

2018-07-04 Thread Nikolaus Voss
On Wed, 4 Jul 2018, Sudeep Holla wrote: On 04/07/18 10:32, Andy Shevchenko wrote: On Wed, Jul 4, 2018 at 6:37 AM, Srinath Mannam wrote: Hi Sudeep, Andy, Yes, This patch is to get of_device_id and then fetch data pointer. To add ACPI support in multiple drivers which are device-tree based

Re: [PATCH v2 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe()

2018-07-04 Thread Nikolaus Voss
On Wed, 4 Jul 2018, Andy Shevchenko wrote: On Wed, Jul 4, 2018 at 12:09 PM, Nikolaus Voss wrote: On Wed, 4 Jul 2018, Andy Shevchenko wrote: On Wed, Jul 4, 2018 at 9:37 AM, Nikolaus Voss wrote: On Wed, 4 Jul 2018, Andy Shevchenko wrote: On Tue, Jul 3, 2018 at 9:06 AM, Nikolaus Voss

Re: [PATCH v2 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe()

2018-07-04 Thread Nikolaus Voss
On Wed, 4 Jul 2018, Andy Shevchenko wrote: On Wed, Jul 4, 2018 at 12:09 PM, Nikolaus Voss wrote: On Wed, 4 Jul 2018, Andy Shevchenko wrote: On Wed, Jul 4, 2018 at 9:37 AM, Nikolaus Voss wrote: On Wed, 4 Jul 2018, Andy Shevchenko wrote: On Tue, Jul 3, 2018 at 9:06 AM, Nikolaus Voss

Re: [PATCH v2 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe()

2018-07-04 Thread Nikolaus Voss
On Wed, 4 Jul 2018, Andy Shevchenko wrote: On Wed, Jul 4, 2018 at 9:37 AM, Nikolaus Voss wrote: On Wed, 4 Jul 2018, Andy Shevchenko wrote: On Tue, Jul 3, 2018 at 9:06 AM, Nikolaus Voss wrote: struct i2c_device_id argument of probe() is not used, so use probe_new() instead. This makes

Re: [PATCH v2 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe()

2018-07-04 Thread Nikolaus Voss
On Wed, 4 Jul 2018, Andy Shevchenko wrote: On Wed, Jul 4, 2018 at 9:37 AM, Nikolaus Voss wrote: On Wed, 4 Jul 2018, Andy Shevchenko wrote: On Tue, Jul 3, 2018 at 9:06 AM, Nikolaus Voss wrote: struct i2c_device_id argument of probe() is not used, so use probe_new() instead. This makes

Re: [PATCH v2 1/2] IIO: st_accel_i2c.c: Simplify access to driver data

2018-07-04 Thread Nikolaus Voss
On Wed, 4 Jul 2018, Andy Shevchenko wrote: On Tue, Jul 3, 2018 at 8:41 AM, Nikolaus Voss wrote: Use device_get_match_data API to simplify access to driver data. ..._data() But. You actually don't use it below. It is used, see below. Let acpi_device_id table entries point to the same

Re: [PATCH v2 1/2] IIO: st_accel_i2c.c: Simplify access to driver data

2018-07-04 Thread Nikolaus Voss
On Wed, 4 Jul 2018, Andy Shevchenko wrote: On Tue, Jul 3, 2018 at 8:41 AM, Nikolaus Voss wrote: Use device_get_match_data API to simplify access to driver data. ..._data() But. You actually don't use it below. It is used, see below. Let acpi_device_id table entries point to the same

Re: [PATCH v2 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe()

2018-07-04 Thread Nikolaus Voss
On Wed, 4 Jul 2018, Andy Shevchenko wrote: On Tue, Jul 3, 2018 at 9:06 AM, Nikolaus Voss wrote: struct i2c_device_id argument of probe() is not used, so use probe_new() instead. This makes... MODULE_DEVICE_TABLE(i2c, st_accel_id_table); ...this table obsolete IIUC. At least that's what

Re: [PATCH v2 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe()

2018-07-04 Thread Nikolaus Voss
On Wed, 4 Jul 2018, Andy Shevchenko wrote: On Tue, Jul 3, 2018 at 9:06 AM, Nikolaus Voss wrote: struct i2c_device_id argument of probe() is not used, so use probe_new() instead. This makes... MODULE_DEVICE_TABLE(i2c, st_accel_id_table); ...this table obsolete IIUC. At least that's what

Re: [PATCH 0/3] IIO: st_sensors_i2c: improve device enumeration

2018-07-03 Thread Nikolaus Voss
On Mon, 2 Jul 2018, Andy Shevchenko wrote: On Mon, Jul 2, 2018 at 9:41 AM, Nikolaus Voss wrote: On Fri, 29 Jun 2018, Andy Shevchenko wrote: I'm not sure I understand how ->probe_new() is supposed to work against i2c_id_table, but I don't care for legacy platform data anyway. What I wo

Re: [PATCH 0/3] IIO: st_sensors_i2c: improve device enumeration

2018-07-03 Thread Nikolaus Voss
On Mon, 2 Jul 2018, Andy Shevchenko wrote: On Mon, Jul 2, 2018 at 9:41 AM, Nikolaus Voss wrote: On Fri, 29 Jun 2018, Andy Shevchenko wrote: I'm not sure I understand how ->probe_new() is supposed to work against i2c_id_table, but I don't care for legacy platform data anyway. What I wo

[PATCH v2 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe()

2018-07-03 Thread Nikolaus Voss
struct i2c_device_id argument of probe() is not used, so use probe_new() instead. Signed-off-by: Nikolaus Voss --- drivers/iio/accel/st_accel_i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/accel/st_accel_i2c.c b/drivers/iio/accel/st_accel_i2c.c index

[PATCH v2 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe()

2018-07-03 Thread Nikolaus Voss
struct i2c_device_id argument of probe() is not used, so use probe_new() instead. Signed-off-by: Nikolaus Voss --- drivers/iio/accel/st_accel_i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/accel/st_accel_i2c.c b/drivers/iio/accel/st_accel_i2c.c index

[PATCH v2 1/2] IIO: st_accel_i2c.c: Simplify access to driver data

2018-07-03 Thread Nikolaus Voss
Use device_get_match_data API to simplify access to driver data. Let acpi_device_id table entries point to the same driver data as of_device_id table entries and uniquify access to driver data by using device_get_match_data API. Signed-off-by: Nikolaus Voss --- drivers/iio/accel/st_accel_i2c.c

  1   2   >