[net-next,v4 0/2] Enable SFP on ACPI based systems

2019-05-28 Thread Ruslan Babayev
. - use has_acpi_companion(). - use the same argument name in i2c_acpi_find_adapter_by_handle() in both stubbed and non-stubbed cases. Ruslan Babayev (2): i2c: acpi: export i2c_acpi_find_adapter_by_handle net: phy: sfp: enable i2c-bus detection on ACPI based systems

[net-next,v4 2/2] net: phy: sfp: enable i2c-bus detection on ACPI based systems

2019-05-28 Thread Ruslan Babayev
.3-c45" }, Package () { "sfp", \_SB.PCI0.RP01.SFP0 }, Package () { "managed", "in-band-status" }, Package () { "phy-mode", "sgmii" }, }, }) } Signed-off-by: Ruslan Babayev Cc: xe-linux-exter...@cisco.c

[net-next,v4 1/2] i2c: acpi: export i2c_acpi_find_adapter_by_handle

2019-05-28 Thread Ruslan Babayev
This allows drivers to lookup i2c adapters on ACPI based systems similar to of_get_i2c_adapter_by_node() with DT based systems. Signed-off-by: Ruslan Babayev Cc: xe-linux-exter...@cisco.com --- drivers/i2c/i2c-core-acpi.c | 3 ++- include/linux/i2c.h | 6 ++ 2 files changed, 8

[net-next,v3 2/2] net: phy: sfp: enable i2c-bus detection on ACPI based systems

2019-05-27 Thread Ruslan Babayev
.3-c45" }, Package () { "sfp", \_SB.PCI0.RP01.SFP0 }, Package () { "managed", "in-band-status" }, Package () { "phy-mode", "sgmii" }, }, }) } Signed-off-by: Ruslan Babayev Cc: xe-linux-exter...@cisco

[net-next,v3 0/2] Enable SFP on ACPI based systems

2019-05-27 Thread Ruslan Babayev
Changes: v2: more descriptive commit body v3: made 'i2c_acpi_find_adapter_by_handle' static inline Ruslan Babayev (2): i2c: acpi: export i2c_acpi_find_adapter_by_handle net: phy: sfp: enable i2c-bus detection on ACPI based systems drivers/i2c/i2c-core-acpi.c | 3 ++- drivers/net/phy/sfp.c

[net-next,v3 1/2] i2c: acpi: export i2c_acpi_find_adapter_by_handle

2019-05-27 Thread Ruslan Babayev
This allows drivers to lookup i2c adapters on ACPI based systems similar to of_get_i2c_adapter_by_node() with DT based systems. Signed-off-by: Ruslan Babayev Cc: xe-linux-exter...@cisco.com --- drivers/i2c/i2c-core-acpi.c | 3 ++- include/linux/i2c.h | 6 ++ 2 files changed, 8

Re: [PATCH net-next v2 1/2] i2c: acpi: export i2c_acpi_find_adapter_by_handle

2019-05-27 Thread Ruslan Babayev
Mika Westerberg writes: > On Fri, May 24, 2019 at 05:53:01PM -0700, Ruslan Babayev wrote: >> +struct i2c_adapter *i2c_acpi_find_adapter_by_handle(acpi_handle handle); >> #else >> static inline bool i2c_acpi_get_i2c_resource(struc

Re: [PATCH net-next v2 1/2] i2c: acpi: export i2c_acpi_find_adapter_by_handle

2019-05-27 Thread Ruslan Babayev
Wolfram Sang writes: > On Fri, May 24, 2019 at 05:53:01PM -0700, Ruslan Babayev wrote: >> This allows drivers to lookup i2c adapters on ACPI based systems similar to >> of_get_i2c_adapter_by_node() with DT based systems. >> >> Signed-off-by: Ruslan Babayev >>

[PATCH net-next v2 2/2] net: phy: sfp: enable i2c-bus detection on ACPI based systems

2019-05-24 Thread Ruslan Babayev
.3-c45" }, Package () { "sfp", \_SB.PCI0.RP01.SFP0 }, Package () { "managed", "in-band-status" }, Package () { "phy-mode", "sgmii" }, }, }) } Signed-off-by: Ruslan Babayev Cc: xe-linux-exter...@cisco

[PATCH net-next v2 1/2] i2c: acpi: export i2c_acpi_find_adapter_by_handle

2019-05-24 Thread Ruslan Babayev
This allows drivers to lookup i2c adapters on ACPI based systems similar to of_get_i2c_adapter_by_node() with DT based systems. Signed-off-by: Ruslan Babayev Cc: xe-linux-exter...@cisco.com --- drivers/i2c/i2c-core-acpi.c | 3 ++- include/linux/i2c.h | 6 ++ 2 files changed, 8

Re: [PATCH RFC v2 net-next 2/2] net: phy: sfp: enable i2c-bus detection on ACPI based systems

2019-05-22 Thread Ruslan Babayev (fib)
Hi Andrew, Just wanted to follow up on the patch. Does it look good? Do you have any other feedback, concerns with this patch? Thanks, Ruslan From: Ruslan Babayev (fib) Sent: Monday, May 6, 2019 8:15 PM To: Andrew Lunn; 20190505220524.37266-2-rus

Re: [PATCH net-next 2/2] net: phy: sfp: enable i2c-bus detection on ACPI based systems

2019-05-06 Thread Ruslan Babayev
Andrew Lunn writes: > On Sun, May 05, 2019 at 03:05:23PM -0700, Ruslan Babayev wrote: >> Lookup I2C adapter using the "i2c-bus" device property on ACPI based >> systems similar to how it's done with DT. >> >> An example DSD describing an SFP on an

[PATCH 1/2] i2c: acpi: export i2c_acpi_find_adapter_by_handle

2019-05-05 Thread Ruslan Babayev
This allows drivers to lookup i2c adapters on ACPI based systems similar to of_get_i2c_adapter_by_node() with DT based systems. Signed-off-by: Ruslan Babayev Cc: xe-linux-exter...@cisco.com --- drivers/i2c/i2c-core-acpi.c | 3 ++- include/linux/i2c.h | 6 ++ 2 files changed, 8

[PATCH 1/2] iio: dac: ds4422/ds4424 drop of_node check

2019-05-05 Thread Ruslan Babayev
The driver doesn't actually rely on any DT properties. Removing this check makes it usable on ACPI based platforms. Signed-off-by: Ruslan Babayev Cc: xe-linux-exter...@cisco.com --- drivers/iio/dac/ds4424.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/iio/dac/ds4424.c b

[PATCH 2/2] iio: dac: ds4422/ds4424 fix chip verification

2019-05-05 Thread Ruslan Babayev
The ds4424_get_value function takes channel number as it's 3rd argument and translates it internally into I2C address using DS4424_DAC_ADDR macro. The caller ds4424_verify_chip was passing an already translated I2C address as its last argument. Signed-off-by: Ruslan Babayev Cc: xe-linux-exter