[PATCH v1] hv_sock: Use consistent types for UUIDs

2019-07-23 Thread Andy Shevchenko
The rest of Hyper-V code is using new types for UUID handling. Convert hv_sock as well. Signed-off-by: Andy Shevchenko --- net/vmw_vsock/hyperv_transport.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/net/vmw_vsock/hyperv_transport.c b/net

[PATCH v1] net: thunderx: Use fwnode_get_mac_address()

2019-07-23 Thread Andy Shevchenko
Replace the custom implementation with fwnode_get_mac_address, which works on both DT and ACPI platforms. While here, replace memcpy() by ether_addr_copy(). Signed-off-by: Andy Shevchenko --- .../net/ethernet/cavium/thunder/thunder_bgx.c | 18 ++ 1 file changed, 6 insertions

[PATCH v3 02/14] NFC: nxp-nci: Add NXP1001 to the ACPI ID table

2019-07-25 Thread Andy Shevchenko
It seems a lot of laptops are equipped with NXP NFC300 chip with the ACPI ID NXP1001 as per DSDT. Append it to the driver's ACPI ID table. Reported-by: Sedat Dilek Signed-off-by: Andy Shevchenko Tested-by: Sedat Dilek --- drivers/nfc/nxp-nci/i2c.c | 1 + 1 file changed, 1 insertion(+)

[PATCH v3 01/14] NFC: fix attrs checks in netlink interface

2019-07-25 Thread Andy Shevchenko
with syzkaller. Signed-off-by: Andrey Konovalov Signed-off-by: Andy Shevchenko --- net/nfc/netlink.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/net/nfc/netlink.c b/net/nfc/netlink.c index 4a30309bb67f..60fd2748d0ea 100644 --- a/net/nfc/netlink.c +++ b/net/nfc/netl

[PATCH v3 12/14] NFC: nxp-nci: Remove 'default n' for the core

2019-07-25 Thread Andy Shevchenko
It seems contributors follow the style of Kconfig entries where explicit 'default n' is present. The default 'default' is 'n' already, thus, drop these lines from Kconfig to make it more clear. Signed-off-by: Andy Shevchenko Tested-by: Sedat Dilek --- drivers/nfc

[PATCH v3 04/14] NFC: nxp-nci: Convert to use GPIO descriptor

2019-07-25 Thread Andy Shevchenko
Since we got rid of platform data, the driver may use GPIO descriptor directly. Signed-off-by: Andy Shevchenko Tested-by: Sedat Dilek --- drivers/nfc/nxp-nci/core.c | 1 - drivers/nfc/nxp-nci/i2c.c | 60 ++ 2 files changed, 15 insertions(+), 46 deletions

[PATCH v3 05/14] NFC: nxp-nci: Add GPIO ACPI mapping table

2019-07-25 Thread Andy Shevchenko
In order to unify GPIO resource request prepare gpiod_get_index() to behave correctly when there is no mapping provided by firmware. Here we add explicit mapping between _CRS GpioIo() resources and their names used in the driver. Signed-off-by: Andy Shevchenko Tested-by: Sedat Dilek

[PATCH v3 13/14] NFC: nxp-nci: Clarify on supported chips

2019-07-25 Thread Andy Shevchenko
nd [2]. [1] https://marc.info/?t=15577443561&r=1&w=2 [2] https://patchwork.kernel.org/project/linux-wireless/list/?submitter=33142 Suggested-by: Andy Shevchenko Suggested-by: Oleg Zhurakivskyy Signed-off-by: Sedat Dilek Signed-off-by: Andy Shevchenko Acked-by: Oleg Zhurakivskyy

[PATCH v3 10/14] NFC: nxp-nci: Drop comma in terminator lines

2019-07-25 Thread Andy Shevchenko
There is no need to have a comma after terminator entry in the arrays of IDs. This may prevent the misguided addition behind the terminator without compiler notice. Drop the comma in terminator lines for good. Signed-off-by: Andy Shevchenko Tested-by: Sedat Dilek --- drivers/nfc/nxp-nci

[PATCH v3 14/14] NFC: nxp-nci: Fix recommendation for NFC_NXP_NCI_I2C Kconfig

2019-07-25 Thread Andy Shevchenko
From: Sedat Dilek This is a simple cleanup to the Kconfig help text as discussed in [1]. [1] https://marc.info/?t=15577443561&r=1&w=2 Suggested-by: Andy Shevchenko Suggested-by: Oleg Zhurakivskyy Signed-off-by: Sedat Dilek Signed-off-by: Andy Shevchenko --- drivers/nfc/nxp-nci

[PATCH v3 06/14] NFC: nxp-nci: Get rid of code duplication in ->probe()

2019-07-25 Thread Andy Shevchenko
Since OF and ACPI case almost the same get rid of code duplication by moving gpiod_get() calls directly to ->probe(). Signed-off-by: Andy Shevchenko Tested-by: Sedat Dilek --- drivers/nfc/nxp-nci/i2c.c | 68 +-- 1 file changed, 15 insertions(+), 53 deleti

[PATCH v3 09/14] NFC: nxp-nci: Drop of_match_ptr() use

2019-07-25 Thread Andy Shevchenko
There is no need to guard OF device ID table with of_match_ptr(). Otherwise we would get a defined but not used data. Signed-off-by: Andy Shevchenko Tested-by: Sedat Dilek --- drivers/nfc/nxp-nci/i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nfc/nxp-nci

[PATCH v3 11/14] NFC: nxp-nci: Remove unused macro pr_fmt()

2019-07-25 Thread Andy Shevchenko
The macro had never been used. Signed-off-by: Andy Shevchenko Tested-by: Sedat Dilek --- drivers/nfc/nxp-nci/i2c.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/nfc/nxp-nci/i2c.c b/drivers/nfc/nxp-nci/i2c.c index 59b0a02a813d..307bd2afbe05 100644 --- a/drivers/nfc/nxp-nci/i2c.c

[PATCH v3 08/14] NFC: nxp-nci: Constify acpi_device_id

2019-07-25 Thread Andy Shevchenko
The content of acpi_device_id is not supposed to change at runtime. All functions working with acpi_device_id provided by work with const acpi_device_id. So mark the non-const structs as const. Signed-off-by: Andy Shevchenko Tested-by: Sedat Dilek --- drivers/nfc/nxp-nci/i2c.c | 2 +- 1 file

[PATCH v3 07/14] NFC: nxp-nci: Get rid of useless label

2019-07-25 Thread Andy Shevchenko
Return directly in ->probe() since there no special cleaning is needed. Signed-off-by: Andy Shevchenko Tested-by: Sedat Dilek --- drivers/nfc/nxp-nci/i2c.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/nfc/nxp-nci/i2c.c b/drivers/nfc/nxp-nci/i2

[PATCH v3 03/14] NFC: nxp-nci: Get rid of platform data

2019-07-25 Thread Andy Shevchenko
Legacy platform data must go away. We are on the safe side here since there are no users of it in the kernel. If anyone by any odd reason needs it the GPIO lookup tables and built-in device properties at your service. Signed-off-by: Andy Shevchenko Tested-by: Sedat Dilek --- MAINTAINERS

Re: [PATCH v3 01/14] NFC: fix attrs checks in netlink interface

2019-07-26 Thread Andy Shevchenko
. It should be no changes in the code. > > Thanks for v3 upgrade! > > Regards, > - Sedat - > > [1] https://marc.info/?a=13107196915&r=1&w=2 > > > Andy Shevchenko hat am 25. Juli 2019 > > 21:34 geschrieben: > > > > > > From: Andre

Re: [PATCH v3 11/14] NFC: nxp-nci: Remove unused macro pr_fmt()

2019-07-29 Thread Andy Shevchenko
On Fri, Jul 26, 2019 at 02:23:46PM -0700, David Miller wrote: > From: Andy Shevchenko > Date: Thu, 25 Jul 2019 22:35:08 +0300 > > > The macro had never been used. > > > > Signed-off-by: Andy Shevchenko > > Tested-by: Sedat Dilek > ... > > @@ -12,8

[PATCH v4 04/14] NFC: nxp-nci: Convert to use GPIO descriptor

2019-07-29 Thread Andy Shevchenko
Since we got rid of platform data, the driver may use GPIO descriptor directly. Signed-off-by: Andy Shevchenko Tested-by: Sedat Dilek --- drivers/nfc/nxp-nci/core.c | 1 - drivers/nfc/nxp-nci/i2c.c | 60 ++ 2 files changed, 15 insertions(+), 46 deletions

[PATCH v4 09/14] NFC: nxp-nci: Drop of_match_ptr() use

2019-07-29 Thread Andy Shevchenko
There is no need to guard OF device ID table with of_match_ptr(). Otherwise we would get a defined but not used data. Signed-off-by: Andy Shevchenko Tested-by: Sedat Dilek --- drivers/nfc/nxp-nci/i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nfc/nxp-nci

[PATCH v4 02/14] NFC: nxp-nci: Add NXP1001 to the ACPI ID table

2019-07-29 Thread Andy Shevchenko
It seems a lot of laptops are equipped with NXP NFC300 chip with the ACPI ID NXP1001 as per DSDT. Append it to the driver's ACPI ID table. Reported-by: Sedat Dilek Signed-off-by: Andy Shevchenko Tested-by: Sedat Dilek --- drivers/nfc/nxp-nci/i2c.c | 1 + 1 file changed, 1 insertion(+)

[PATCH v4 12/14] NFC: nxp-nci: Remove 'default n' for the core

2019-07-29 Thread Andy Shevchenko
It seems contributors follow the style of Kconfig entries where explicit 'default n' is present. The default 'default' is 'n' already, thus, drop these lines from Kconfig to make it more clear. Signed-off-by: Andy Shevchenko Tested-by: Sedat Dilek --- drivers/nfc

[PATCH v4 00/14] NFC: nxp-nci: clean up and new device support

2019-07-29 Thread Andy Shevchenko
latest linux-next - appended cover letter - elaborated removal of pr_fmt() in the patch 11 (David) Andrey Konovalov (1): NFC: fix attrs checks in netlink interface Andy Shevchenko (11): NFC: nxp-nci: Add NXP1001 to the ACPI ID table NFC: nxp-nci: Get rid of platform data NFC: nxp-nci

[PATCH v4 10/14] NFC: nxp-nci: Drop comma in terminator lines

2019-07-29 Thread Andy Shevchenko
There is no need to have a comma after terminator entry in the arrays of IDs. This may prevent the misguided addition behind the terminator without compiler notice. Drop the comma in terminator lines for good. Signed-off-by: Andy Shevchenko Tested-by: Sedat Dilek --- drivers/nfc/nxp-nci

[PATCH v4 11/14] NFC: nxp-nci: Remove unused macro pr_fmt()

2019-07-29 Thread Andy Shevchenko
. Signed-off-by: Andy Shevchenko Tested-by: Sedat Dilek --- drivers/nfc/nxp-nci/i2c.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/nfc/nxp-nci/i2c.c b/drivers/nfc/nxp-nci/i2c.c index 59b0a02a813d..307bd2afbe05 100644 --- a/drivers/nfc/nxp-nci/i2c.c +++ b/drivers/nfc/nxp-nci/i2c.c

[PATCH v4 14/14] NFC: nxp-nci: Fix recommendation for NFC_NXP_NCI_I2C Kconfig

2019-07-29 Thread Andy Shevchenko
From: Sedat Dilek This is a simple cleanup to the Kconfig help text as discussed in [1]. [1] https://marc.info/?t=15577443561&r=1&w=2 Suggested-by: Andy Shevchenko Suggested-by: Oleg Zhurakivskyy Signed-off-by: Sedat Dilek Signed-off-by: Andy Shevchenko --- drivers/nfc/nxp-nci

[PATCH v4 08/14] NFC: nxp-nci: Constify acpi_device_id

2019-07-29 Thread Andy Shevchenko
The content of acpi_device_id is not supposed to change at runtime. All functions working with acpi_device_id provided by work with const acpi_device_id. So mark the non-const structs as const. Signed-off-by: Andy Shevchenko Tested-by: Sedat Dilek --- drivers/nfc/nxp-nci/i2c.c | 2 +- 1 file

[PATCH v4 07/14] NFC: nxp-nci: Get rid of useless label

2019-07-29 Thread Andy Shevchenko
Return directly in ->probe() since there no special cleaning is needed. Signed-off-by: Andy Shevchenko Tested-by: Sedat Dilek --- drivers/nfc/nxp-nci/i2c.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/nfc/nxp-nci/i2c.c b/drivers/nfc/nxp-nci/i2

[PATCH v4 05/14] NFC: nxp-nci: Add GPIO ACPI mapping table

2019-07-29 Thread Andy Shevchenko
In order to unify GPIO resource request prepare gpiod_get_index() to behave correctly when there is no mapping provided by firmware. Here we add explicit mapping between _CRS GpioIo() resources and their names used in the driver. Signed-off-by: Andy Shevchenko Tested-by: Sedat Dilek

[PATCH v4 03/14] NFC: nxp-nci: Get rid of platform data

2019-07-29 Thread Andy Shevchenko
Legacy platform data must go away. We are on the safe side here since there are no users of it in the kernel. If anyone by any odd reason needs it the GPIO lookup tables and built-in device properties at your service. Signed-off-by: Andy Shevchenko Tested-by: Sedat Dilek --- MAINTAINERS

[PATCH v4 13/14] NFC: nxp-nci: Clarify on supported chips

2019-07-29 Thread Andy Shevchenko
nd [2]. [1] https://marc.info/?t=15577443561&r=1&w=2 [2] https://patchwork.kernel.org/project/linux-wireless/list/?submitter=33142 Suggested-by: Andy Shevchenko Suggested-by: Oleg Zhurakivskyy Signed-off-by: Sedat Dilek Signed-off-by: Andy Shevchenko Acked-by: Oleg Zhurakivskyy

[PATCH v4 01/14] NFC: fix attrs checks in netlink interface

2019-07-29 Thread Andy Shevchenko
with syzkaller. Signed-off-by: Andrey Konovalov Signed-off-by: Andy Shevchenko --- net/nfc/netlink.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/net/nfc/netlink.c b/net/nfc/netlink.c index 4a30309bb67f..60fd2748d0ea 100644 --- a/net/nfc/netlink.c +++ b/net/nfc/netl

[PATCH v4 06/14] NFC: nxp-nci: Get rid of code duplication in ->probe()

2019-07-29 Thread Andy Shevchenko
Since OF and ACPI case almost the same get rid of code duplication by moving gpiod_get() calls directly to ->probe(). Signed-off-by: Andy Shevchenko Tested-by: Sedat Dilek --- drivers/nfc/nxp-nci/i2c.c | 68 +-- 1 file changed, 15 insertions(+), 53 deleti

Re: [net-next PATCH v3 09/15] device property: Introduce fwnode_get_id()

2021-01-20 Thread Andy Shevchenko
On Wed, Jan 20, 2021 at 8:18 PM Rafael J. Wysocki wrote: > On Tue, Jan 12, 2021 at 7:02 PM Andy Shevchenko > wrote: > > On Tue, Jan 12, 2021 at 09:30:31AM -0800, Saravana Kannan wrote: > > > On Tue, Jan 12, 2021 at 5:42 AM Calvin Johnson > > > wr

Re: [net-next PATCH v3 09/15] device property: Introduce fwnode_get_id()

2021-01-20 Thread Andy Shevchenko
On Wed, Jan 20, 2021 at 8:18 PM Rafael J. Wysocki wrote: > On Tue, Jan 12, 2021 at 4:47 PM Andy Shevchenko > wrote: > > On Tue, Jan 12, 2021 at 3:42 PM Calvin Johnson > > wrote: ... > > > +int fwnode_get_id(struct fwnode_handle *fwnode, u32 *id) > &g

Re: [net-next PATCH v4 09/15] device property: Introduce fwnode_get_id()

2021-01-22 Thread Andy Shevchenko
t; + if (ACPI_FAILURE(status)) > + return -EINVAL; > + *id = (u32)adr; > +#else > + return ret; > +#endif > + } > + return 0; > +} -- With Best Regards, Andy Shevchenko

Re: [net-next PATCH v4 09/15] device property: Introduce fwnode_get_id()

2021-01-22 Thread Andy Shevchenko
f years. And I have no idea where to put a common base for them so they will not duplicate this in each case. > so maybe put this function somewhere closer to the code that's going > to use it, because it seems to be kind of specific to this particular > use case? -- With Best Regards, Andy Shevchenko

Re: [net-next PATCH v3 09/15] device property: Introduce fwnode_get_id()

2021-01-22 Thread Andy Shevchenko
low level that ops suits best for them and quite different resource types like GPIO. And the latter is closer to certain framework rather than to POD handling cases. > So fwnode_ops->get_id() would be the OP ACPI and OF would implement. > And then we can have a wrapper in drivers/base/property.c. -- With Best Regards, Andy Shevchenko

Re: [patch 03/30] genirq: Move irq_set_lockdep_class() to core

2020-12-11 Thread Andy Shevchenko
dif -- With Best Regards, Andy Shevchenko

Re: [patch 16/30] mfd: ab8500-debugfs: Remove the racy fiddling with irq_desc

2020-12-11 Thread Andy Shevchenko
;line, > + line + irq_first, >num_interrupts[line], > num_wake_interrupts[line]); -- With Best Regards, Andy Shevchenko

Re: [patch 03/30] genirq: Move irq_set_lockdep_class() to core

2020-12-12 Thread Andy Shevchenko
On Sat, Dec 12, 2020 at 12:07 AM Thomas Gleixner wrote: > > On Fri, Dec 11 2020 at 22:08, Thomas Gleixner wrote: > > > On Fri, Dec 11 2020 at 19:53, Andy Shevchenko wrote: > > > >> On Thu, Dec 10, 2020 at 10:14 PM Thomas Gleixner > >> wrote: > >

Re: [net-next PATCH v2 02/14] net: phy: Introduce phy related fwnode functions

2020-12-15 Thread Andy Shevchenko
) || !IS_ERR(phy_node)) > + return phy_node; So, what is the problem with going through the rest on ACPI? Usually we describe the restrictions in the documentation. -- With Best Regards, Andy Shevchenko

Re: [net-next PATCH v2 04/14] net: phy: Introduce fwnode_get_phy_id()

2020-12-15 Thread Andy Shevchenko
= 2) return -EINVAL; *phy_id = ((upper & 0x) << 16) | (lower & 0x); return 0; And perhaps GENMASK() ? -- With Best Regards, Andy Shevchenko

Re: [net-next PATCH v2 06/14] net: mdiobus: Introduce fwnode_mdiobus_register_phy()

2020-12-15 Thread Andy Shevchenko
PHY driver. A > +* mii_timestamper probed via the device tree will still have > + * precedence. > +*/ > + if (mii_ts) > + phy->mii_ts = mii_ts; How is that defined? Do you need to do something with an old pointer? > + } > + return 0; > +} -- With Best Regards, Andy Shevchenko

Re: [net-next PATCH v2 10/14] device property: Introduce fwnode_get_id()

2020-12-15 Thread Andy Shevchenko
I'm wondering if it compiles when CONFIG_ACPI=n. > + *id = (u32)adr; > + return 0; > + } > + return -EINVAL; > +} -- With Best Regards, Andy Shevchenko

Re: [net-next PATCH v2 10/14] device property: Introduce fwnode_get_id()

2020-12-15 Thread Andy Shevchenko
EINVAL in all error cases ? Or maybe different > error codes to mean "the backend doesn't support the concept of IDs", > and "the device doesn't have an ID" ? We may actually get mapping to all three if first we check for the method/name existence followed by value check. But I don't think we need to bloat this simple one. > > + *id = (u32)adr; > > + return 0; > > + } > > + return -EINVAL; > > +} -- With Best Regards, Andy Shevchenko

Re: [net-next PATCH v2 08/14] net: mdiobus: Introduce fwnode_mdiobus_register()

2020-12-15 Thread Andy Shevchenko
p;mdio->dev, > + "MDIO device at address %lld is > missing.\n", > + addr); > + } > + return 0; > + } > + return -EINVAL; > +} -- With Best Regards, Andy Shevchenko

Re: [net-next PATCH v2 09/14] net/fsl: Use fwnode_mdiobus_register()

2020-12-15 Thread Andy Shevchenko
bool(&pdev->dev, > "fsl,erratum-a011043"); ...this... > - ...and this changes can go to a separate patch. -- With Best Regards, Andy Shevchenko

Re: [net-next PATCH v2 04/14] net: phy: Introduce fwnode_get_phy_id()

2020-12-17 Thread Andy Shevchenko
On Thu, Dec 17, 2020 at 10:28 AM Calvin Johnson wrote: > On Tue, Dec 15, 2020 at 07:28:10PM +0200, Andy Shevchenko wrote: > > On Tue, Dec 15, 2020 at 6:44 PM Calvin Johnson > > wrote: ... > > > + if (sscanf(cp, "ethernet-phy-id%4x.%4x", &uppe

Re: [net-next PATCH v2 06/14] net: mdiobus: Introduce fwnode_mdiobus_register_phy()

2020-12-18 Thread Andy Shevchenko
On Fri, Dec 18, 2020 at 7:34 AM Calvin Johnson wrote: > > On Tue, Dec 15, 2020 at 07:33:40PM +0200, Andy Shevchenko wrote: > > On Tue, Dec 15, 2020 at 6:44 PM Calvin Johnson > > wrote: ... > > > + /* phy->mii_ts may already b

Re: [net-next PATCH v2 08/14] net: mdiobus: Introduce fwnode_mdiobus_register()

2020-12-18 Thread Andy Shevchenko
On Fri, Dec 18, 2020 at 7:40 AM Calvin Johnson wrote: > On Tue, Dec 15, 2020 at 07:53:26PM +0200, Andy Shevchenko wrote: > > On Tue, Dec 15, 2020 at 6:44 PM Calvin Johnson > > wrote: ... > > I would rather see this as simple as > > > > if (is_of_node(f

Re: [PATCH] NFC: nxp-nci: Make firmware GPIO pin optional

2020-11-30 Thread Andy Shevchenko
hese kind of chips, > let's make the firmware GPIO optional. ... > - gpiod_set_value(phy->gpiod_fw, (mode == NXP_NCI_MODE_FW) ? 1 : 0); > + if (phy->gpiod_fw) > + gpiod_set_value(phy->gpiod_fw, (mode == NXP_NCI_MODE_FW) ? 1 > : 0); This cha

Re: [PATCH v2] NFC: nxp-nci: Make firmware GPIO pin optional

2020-12-01 Thread Andy Shevchenko
hese kind of chips, these -> this OR kind -> kinds > let's make the firmware GPIO optional. FWIW, Reviewed-by: Andy Shevchenko > Signed-off-by: Frieder Schrempf > > --- > Changes in v2: > * Remove unneeded null check for phy->gpiod_fw > --- > D

Re: [PATCH] PCI: Remove pci_try_set_mwi

2020-12-09 Thread Andy Shevchenko
y want to elaborate here that the feature is specific to PCI and isn't present on PCIe. Besides that one comment below. After addressing, have my Reviewed-by: Andy Shevchenko for the files left in this message. ... > drivers/dma/dw/pci.c | 2 +- > drivers/dma/hs

Re: [PATCH] PCI: Remove pci_try_set_mwi

2020-12-09 Thread Andy Shevchenko
On Wed, Dec 9, 2020 at 12:59 PM Andy Shevchenko wrote: > On Wed, Dec 9, 2020 at 10:35 AM Heiner Kallweit wrote: ... > > -int pci_try_set_mwi(struct pci_dev *dev) > > -{ > > > -#ifdef PCI_DISABLE_MWI > > - return 0; > > -#else > > - ret

Re: [PATCH 000/141] Fix fall-through warnings for Clang

2020-11-25 Thread Andy Shevchenko
ually needed for such patches. That's why I don't like churn produced by people who often even didn't compile their useful contributions. -- With Best Regards, Andy Shevchenko

Re: [PATCH net v2] net: phy: spi_ks8995: Do not overwrite SPI mode flags

2020-11-10 Thread Andy Shevchenko
E_MASK; > + spi->mode |= SPI_MODE_0; ? -- With Best Regards, Andy Shevchenko

[PATCH v1 1/1] time64.h: Consolidated PSEC_PER_SEC definition

2021-01-12 Thread Andy Shevchenko
We have currently three users of the PSEC_PER_SEC each of them defining it individually. Instead, move it to time64.h to be available for everyone. There is a new user coming with the same constant in use. It will also make its life easier. Signed-off-by: Andy Shevchenko --- drivers/net

Re: [net-next PATCH v3 09/15] device property: Introduce fwnode_get_id()

2021-01-12 Thread Andy Shevchenko
ode_handle *fwnode, > > const char *fwnode_get_name(const struct fwnode_handle *fwnode); > const char *fwnode_get_name_prefix(const struct fwnode_handle *fwnode); > +int fwnode_get_id(struct fwnode_handle *fwnode, u32 *id); > struct fwnode_handle *fwnode_get_parent(const struct fwnode_handle *fwnode); > struct fwnode_handle *fwnode_get_next_parent( > struct fwnode_handle *fwnode); > -- > 2.17.1 > -- With Best Regards, Andy Shevchenko

Re: [net-next PATCH v3 11/15] net: mdiobus: Introduce fwnode_mdiobus_register()

2021-01-12 Thread Andy Shevchenko
n acpi_mdiobus_register(mdio, fwnode); > + > + return -EINVAL; > +} -- With Best Regards, Andy Shevchenko

Re: [net-next PATCH v3 12/15] net/fsl: Use fwnode_mdiobus_register()

2021-01-12 Thread Andy Shevchenko
v->has_a011043 = device_property_read_bool(&pdev->dev, > "fsl,erratum-a011043"); > - Unrelated change. -- With Best Regards, Andy Shevchenko

Re: [net-next PATCH v3 13/15] phylink: introduce phylink_fwnode_phy_connect()

2021-01-12 Thread Andy Shevchenko
here? > + return ret; -- With Best Regards, Andy Shevchenko

Re: [net-next PATCH v3 14/15] net: phylink: Refactor phylink_of_phy_connect()

2021-01-12 Thread Andy Shevchenko
On Tue, Jan 12, 2021 at 3:43 PM Calvin Johnson wrote: > > Refactor phylink_of_phy_connect() to use phylink_fwnode_phy_connect(). Same Q as per previous patch. If it's indeed a bug in the existing code, should be fixed in a separate patch -- With Best Regards, Andy Shevchenko

Re: [net-next PATCH v3 09/15] device property: Introduce fwnode_get_id()

2021-01-12 Thread Andy Shevchenko
tually exclusive if I'm not mistaken. That's why we try 'reg' property for both cases first. is_acpi_fwnode() conditional is that what I don't like though. ... > fwnode is lower level that the device-driver framework. Agree. > Making > it aware of busses like mdio, etc doesn't sound right. Disagree. Conceptually resource providers can be quite different and fwnode API *is* LCM for them. -- With Best Regards, Andy Shevchenko

[PATCH v3] net: phy: leds: Deduplicate link LED trigger registration

2020-10-27 Thread Andy Shevchenko
Refactor phy_led_trigger_register() and deduplicate its functionality when registering LED trigger for link. Signed-off-by: Andy Shevchenko Reviewed-by: Andrew Lunn --- v3: rebased on top of v5.10-rc1 drivers/net/phy/phy_led_triggers.c | 15 +-- 1 file changed, 5 insertions(+), 10

Re: [PATCH 1/3] mwifiex: disable ps_mode explicitly by default instead

2020-10-29 Thread Andy Shevchenko
have available in Linux. -- With Best Regards, Andy Shevchenko

Re: [PATCH 2/3] mwifiex: add allow_ps_mode module parameter

2020-10-30 Thread Andy Shevchenko
gt; value of this parameter depending on the chip id (88W8897) or DMI matching. Since it's a PCIe device you already have ID table where you may add a driver_data with what ever quirks are needed. -- With Best Regards, Andy Shevchenko

Re: [PATCH v2 8/8] dma-buf: use krealloc_array()

2020-11-02 Thread Andy Shevchenko
array(fences, i, > + sizeof(*fences), GFP_KERNEL); On 80 position is closing parenthesis, which, I think, makes it okay to put on one line. -- With Best Regards, Andy Shevchenko

Re: [PATCH v2 0/8] slab: provide and use krealloc_array()

2020-11-03 Thread Andy Shevchenko
y voice here is to ignore for the same reasons: respect realloc(3) and making common sense with the idea of REallocating (capital letters on purpose). -- With Best Regards, Andy Shevchenko

[PATCH v1 2/3] string: Move onoff() helper under string.h hood

2021-02-15 Thread Andy Shevchenko
We have already an implementation and a lot of code that can benefit of the onoff() helper. Move it under string.h hood. Signed-off-by: Andy Shevchenko --- drivers/gpu/drm/i915/i915_utils.h | 5 - include/linux/string.h| 5 + 2 files changed, 5 insertions(+), 5 deletions

[PATCH v1 1/3] string: Consolidate yesno() helpers under string.h hood

2021-02-15 Thread Andy Shevchenko
We have already few similar implementation and a lot of code that can benefit of the yesno() helper. Consolidate yesno() helpers under string.h hood. Signed-off-by: Andy Shevchenko --- .../drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c| 6 +- drivers/gpu/drm/i915/i915_utils.h

[PATCH v1 3/3] string: Move enableddisabled() helper under string.h hood

2021-02-15 Thread Andy Shevchenko
We have already an implementation and a lot of code that can benefit of the enableddisabled() helper. Move it under string.h hood. Signed-off-by: Andy Shevchenko --- drivers/gpu/drm/i915/i915_utils.h | 5 - include/linux/string.h| 5 + 2 files changed, 5 insertions(+), 5

commit 0f0aefd733f7 to linux-firmware effectively broke all of the setups with old kernels

2021-02-15 Thread Andy Shevchenko
long as it's needed. Alternative solution is to provide the links during installation. Btw, I haven't seen the driver change for that. Care to provide a commit ID in upstream? -- With Best Regards, Andy Shevchenko

Re: [PATCH v1 1/3] string: Consolidate yesno() helpers under string.h hood

2021-02-15 Thread Andy Shevchenko
+Cc: Sakari and printk people On Mon, Feb 15, 2021 at 4:28 PM Christian König wrote: > Am 15.02.21 um 15:21 schrieb Andy Shevchenko: > > We have already few similar implementation and a lot of code that can > > benefit > > of the yesno() helper. Consolidate yesno() helper

Re: [net-next PATCH v5 15/15] net: dpaa2-mac: Add ACPI support for DPAA2 MAC driver

2021-02-15 Thread Andy Shevchenko
es being NULL below. > /* New binding */ > dn = of_get_child_by_name(np, "fixed-link"); > if (dn) { -- With Best Regards, Andy Shevchenko

Re: [net-next PATCH v5 15/15] net: dpaa2-mac: Add ACPI support for DPAA2 MAC driver

2021-02-15 Thread Andy Shevchenko
On Mon, Feb 15, 2021 at 5:13 PM Andy Shevchenko wrote: > > On Mon, Feb 15, 2021 at 2:33 PM Calvin Johnson > wrote: > > On Mon, Feb 08, 2021 at 04:28:31PM +, Russell King - ARM Linux admin > > wrote: > > ... > > > I think of_phy_is_fixed_link() n

Re: [PATCH v1 1/3] string: Consolidate yesno() helpers under string.h hood

2021-02-15 Thread Andy Shevchenko
On Mon, Feb 15, 2021 at 04:37:50PM +0200, Jani Nikula wrote: > On Mon, 15 Feb 2021, Andy Shevchenko > wrote: > > We have already few similar implementation and a lot of code that can > > benefit > > of the yesno() helper. Consolidate yesno() helpers under string.h hood

Re: commit 0f0aefd733f7 to linux-firmware effectively broke all of the setups with old kernels

2021-02-15 Thread Andy Shevchenko
WHENCE. > > The alternative is to leave firmwares in place with CVEs. Good, thanks, I haven't looked into that script. -- With Best Regards, Andy Shevchenko

Re: [PATCH] lib: vsprintf: check for NULL device_node name in device_node_string()

2021-02-17 Thread Andy Shevchenko
definition (maybe somewhere under printk) and export to everybody to use. -- With Best Regards, Andy Shevchenko

Re: [net-next PATCH v6 07/15] net: mdiobus: Introduce fwnode_mdiobus_register_phy()

2021-02-18 Thread Andy Shevchenko
. A > +* mii_timestamper probed via the device tree will still have > +* precedence. > +*/ > + if (mii_ts) > + phy->mii_ts = mii_ts; I'm wondering if the belo form is better to read phy->mii_ts = mii_ts ?: phy->mii_ts; -- With Best Regards, Andy Shevchenko

Re: [net-next PATCH v6 15/15] net: dpaa2-mac: Add ACPI support for DPAA2 MAC driver

2021-02-18 Thread Andy Shevchenko
node_handle_put(dpmac_node); > + if (is_of_node(dpmac_node)) > + fwnode_handle_put(dpmac_node); Also not sure that you need a check in the above code excerpts. -- With Best Regards, Andy Shevchenko

Re: [net-next PATCH v6 10/15] net: mdio: Add ACPI support code for mdio

2021-02-18 Thread Andy Shevchenko
v_printk.h module.h types.h The rest seems fine because they are guaranteed to be included by acpi.h (IIUC about fwnode API and acpi_mdio includes MDIO PHY APIs). -- With Best Regards, Andy Shevchenko

Re: [PATCH] PCI: Remove pci_try_set_mwi

2021-03-26 Thread Andy Shevchenko
y device (but this is an opposite, what should we do on broken devices that do change their state based on that bit while violating specification). In any case Acked-by: Andy Shevchenko for DesignWare DMA case. I have added that and I never saw that IP connected to the old PCI. -- With Best Regards, Andy Shevchenko

Re: [PATCH net-next v2 0/5] net: pch: fix and a few cleanups

2021-03-29 Thread Andy Shevchenko
On Thu, Mar 25, 2021 at 07:34:07PM +0200, Andy Shevchenko wrote: > The series provides one fix (patch 1) for GPIO to be able to wait for > the GPIO driver to appear. This is separated from the conversion to > the GPIO descriptors (patch 2) in order to have a possibility for > backport

[PATCH net-next v1 1/1] stmmac: intel: Drop duplicate ID in the list of PCI device IDs

2021-04-06 Thread Andy Shevchenko
The PCI device IDs are defined with a prefix PCI_DEVICE_ID. There is no need to repeat the ID part at the end of each definition. Signed-off-by: Andy Shevchenko --- .../net/ethernet/stmicro/stmmac/dwmac-intel.c | 60 +-- 1 file changed, 30 insertions(+), 30 deletions(-) diff

[PATCH v2 1/1] time64.h: Consolidated PSEC_PER_SEC definition

2021-04-06 Thread Andy Shevchenko
We have currently three users of the PSEC_PER_SEC each of them defining it individually. Instead, move it to time64.h to be available for everyone. There is a new user coming with the same constant in use. It will also make its life easier. Signed-off-by: Andy Shevchenko Acked-by: Heiko

Re: [PATCH net-next v2 0/5] net: pch: fix and a few cleanups

2021-04-06 Thread Andy Shevchenko
On Tue, Mar 30, 2021 at 07:46:58AM +, Flavio Suligoi wrote: > Hi Andy, > ... > > On Thu, Mar 25, 2021 at 07:34:07PM +0200, Andy Shevchenko wrote: > > > The series provides one fix (patch 1) for GPIO to be able to wait for > > > the GPIO driver to appear. This is

Re: [PATCH net-next v2 0/5] net: pch: fix and a few cleanups

2021-04-08 Thread Andy Shevchenko
On Thu, Apr 08, 2021 at 09:57:12AM +, Flavio Suligoi wrote: > > > > On Thu, Mar 25, 2021 at 07:34:07PM +0200, Andy Shevchenko wrote: > > > > > The series provides one fix (patch 1) for GPIO to be able to wait for > > > > > the GPIO driver to appear

[PATCH v2 1/1] kernel.h: Split out panic and oops helpers

2021-04-09 Thread Andy Shevchenko
from something which has its own domain At the same time convert users tree-wide to use new headers, although for the time being include new header back to kernel.h to avoid twisted indirected includes for existing users. Signed-off-by: Andy Shevchenko Reviewed-by: Bjorn Andersson Acked-by

Re: [PATCH net-next v2 0/5] net: pch: fix and a few cleanups

2021-04-14 Thread Andy Shevchenko
On Thu, Mar 25, 2021 at 07:34:07PM +0200, Andy Shevchenko wrote: > The series provides one fix (patch 1) for GPIO to be able to wait for > the GPIO driver to appear. This is separated from the conversion to > the GPIO descriptors (patch 2) in order to have a possibility for > backport

Re: [PATCH 1/1] net: dsa: rtl8366rb: standardize init jam tables

2021-01-28 Thread Andy Shevchenko
ou have to discover a full firmware image to make any assumptions about CPU ISA used there and address mapping. -- With Best Regards, Andy Shevchenko

Re: [net-next PATCH v4 01/15] Documentation: ACPI: DSD: Document MDIO PHY

2021-01-29 Thread Andy Shevchenko
u may not need the fwnode_get_local_addr() at all then, just > evaluate either the "reg" property for OF or acpi_get_local_address() > for ACPI in the "caller" code directly. A common helper doing this can > be added later. Sounds good to me and it will address your concern about different semantics of reg/_ADR on per driver/subsystem basis. -- With Best Regards, Andy Shevchenko

Re: [net-next PATCH v6 10/15] net: mdio: Add ACPI support code for mdio

2021-03-08 Thread Andy Shevchenko
On Mon, Mar 8, 2021 at 4:11 PM Calvin Johnson wrote: > On Thu, Feb 18, 2021 at 05:08:05PM +0200, Andy Shevchenko wrote: > > On Thu, Feb 18, 2021 at 7:28 AM Calvin Johnson > > wrote: > > > Define acpi_mdiobus_register() to Register mii_bus and create PHYs for &g

Re: [net-next PATCH v6 10/15] net: mdio: Add ACPI support code for mdio

2021-03-08 Thread Andy Shevchenko
On Mon, Mar 8, 2021 at 6:28 PM Calvin Johnson wrote: > On Mon, Mar 08, 2021 at 04:57:35PM +0200, Andy Shevchenko wrote: > I thought of including device.h instead of dev_printk.h because, it is the > only file that includes dev_printk.h and device.h is widely used. Of course, >

Re: [PATCH v4 net-next] net: socket: use BIT() for MSG_*

2021-03-09 Thread Andy Shevchenko
ease (v5.11) till the first rc of the new cycle (v5.12-rc1). Now we are more than a week after v5.12-rc1. -- With Best Regards, Andy Shevchenko

Re: [net-next PATCH v7 07/16] net: mii_timestamper: check NULL in unregister_mii_timestamper()

2021-03-11 Thread Andy Shevchenko
On Thu, Mar 11, 2021 at 8:21 AM Calvin Johnson wrote: > > Callers of unregister_mii_timestamper() currently check for NULL > value of mii_ts before calling it. > > Place the NULL check inside unregister_mii_timestamper() and update > the callers accordingly FWIW, Reviewed-b

Re: [net-next PATCH v7 08/16] net: mdiobus: Introduce fwnode_mdiobus_register_phy()

2021-03-11 Thread Andy Shevchenko
truct mii_bus *of_mdio_find_bus(struct device_node > *mdio_np); > int of_phy_register_fixed_link(struct device_node *np); > void of_phy_deregister_fixed_link(struct device_node *np); > bool of_phy_is_fixed_link(struct device_node *np); > +struct mii_timestamper *of_find_mii_timestamper(struct device_node *np); > int of_mdiobus_phy_device_register(struct mii_bus *mdio, struct phy_device > *phy, >struct device_node *child, u32 addr); > > @@ -118,7 +119,10 @@ static inline bool of_phy_is_fixed_link(struct > device_node *np) > { > return false; > } > - > +static inline struct mii_timestamper *of_find_mii_timestamper(struct > device_node *np) > +{ > + return NULL; > +} > static inline int of_mdiobus_phy_device_register(struct mii_bus *mdio, > struct phy_device *phy, > struct device_node *child, u32 > addr) > -- > 2.17.1 > -- With Best Regards, Andy Shevchenko

Re: [net-next PATCH v7 10/16] ACPI: utils: Introduce acpi_get_local_address()

2021-03-11 Thread Andy Shevchenko
On Thu, Mar 11, 2021 at 8:22 AM Calvin Johnson wrote: > > Introduce a wrapper around the _ADR evaluation. Reviewed-by: Andy Shevchenko > Signed-off-by: Calvin Johnson > --- > > Changes in v7: None > Changes in v6: None > Changes in v5: > - Replace fwnode_get_id()

Re: [net-next PATCH v7 11/16] net: mdio: Add ACPI support code for mdio

2021-03-11 Thread Andy Shevchenko
t acpi_mdiobus_register(struct mii_bus *mdio, struct fwnode_handle > *fwnode); > +#else /* CONFIG_ACPI_MDIO */ > +static inline int acpi_mdiobus_register(struct mii_bus *mdio, struct > fwnode_handle *fwnode) > +{ > + /* > +* Fall back to mdiobus_register() function to register a bus. > +* This way, we don't have to keep compat bits around in drivers. > +*/ > + > + return mdiobus_register(mdio); > +} > +#endif > + > +#endif /* __LINUX_ACPI_MDIO_H */ > -- > 2.17.1 > -- With Best Regards, Andy Shevchenko

Re: [net-next PATCH v7 08/16] net: mdiobus: Introduce fwnode_mdiobus_register_phy()

2021-03-11 Thread Andy Shevchenko
On Thu, Mar 11, 2021 at 8:00 PM Calvin Johnson wrote: > On Thu, Mar 11, 2021 at 02:09:37PM +0200, Andy Shevchenko wrote: > > On Thu, Mar 11, 2021 at 8:21 AM Calvin Johnson > > wrote: ... > > > +config FWNODE_MDIO > > > + def_tristate PHYLIB > > >

  1   2   3   4   5   >