* [patch v1 1/2] Allow Mellanox network vendor to be configured if only I2C bus is configured
@ 2017-08-10 17:11 Ohad Oz
2017-08-10 17:11 ` [patch v1 2/2] Change Kconfig description Ohad Oz
2017-08-12 14:37 ` [patch v1 1/2] Allow Mellanox network vendor to be configured if only I2C bus is configured Leon Romanovsky
0 siblings, 2 replies; 7+ messages in thread
From: Ohad Oz @ 2017-08-10 17:11 UTC (permalink / raw)
To: davem; +Cc: netdev, jiri, saeedm, vadimp, system-sw-low-level, Ohad Oz
Patch allows Mellanox devices on system with no PCI, but with I2C only.
Signed-off-by: Ohad Oz <ohado@mellanox.com>
---
drivers/net/ethernet/mellanox/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/mellanox/Kconfig b/drivers/net/ethernet/mellanox/Kconfig
index 84a2007..0949741 100644
--- a/drivers/net/ethernet/mellanox/Kconfig
+++ b/drivers/net/ethernet/mellanox/Kconfig
@@ -5,7 +5,7 @@
config NET_VENDOR_MELLANOX
bool "Mellanox devices"
default y
- depends on PCI
+ depends on PCI || I2C
---help---
If you have a network (Ethernet) card belonging to this class, say Y.
--
2.8.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [patch v1 2/2] Change Kconfig description
2017-08-10 17:11 [patch v1 1/2] Allow Mellanox network vendor to be configured if only I2C bus is configured Ohad Oz
@ 2017-08-10 17:11 ` Ohad Oz
2017-08-12 14:37 ` [patch v1 1/2] Allow Mellanox network vendor to be configured if only I2C bus is configured Leon Romanovsky
1 sibling, 0 replies; 7+ messages in thread
From: Ohad Oz @ 2017-08-10 17:11 UTC (permalink / raw)
To: davem; +Cc: netdev, jiri, saeedm, vadimp, system-sw-low-level, Ohad Oz
Mellanox devices can be cards or switch therefore naming it device.
Signed-off-by: Ohad Oz <ohado@mellanox.com>
---
drivers/net/ethernet/mellanox/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/mellanox/Kconfig b/drivers/net/ethernet/mellanox/Kconfig
index 0949741..01c3623 100644
--- a/drivers/net/ethernet/mellanox/Kconfig
+++ b/drivers/net/ethernet/mellanox/Kconfig
@@ -7,7 +7,7 @@ config NET_VENDOR_MELLANOX
default y
depends on PCI || I2C
---help---
- If you have a network (Ethernet) card belonging to this class, say Y.
+ If you have a network (Ethernet) device belonging to this class, say Y.
Note that the answer to this question doesn't directly affect the
kernel: saying N will just cause the configurator to skip all
--
2.8.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [patch v1 1/2] Allow Mellanox network vendor to be configured if only I2C bus is configured
2017-08-10 17:11 [patch v1 1/2] Allow Mellanox network vendor to be configured if only I2C bus is configured Ohad Oz
2017-08-10 17:11 ` [patch v1 2/2] Change Kconfig description Ohad Oz
@ 2017-08-12 14:37 ` Leon Romanovsky
2017-08-13 15:26 ` Ohad Oz
2017-08-14 7:00 ` Jiri Pirko
1 sibling, 2 replies; 7+ messages in thread
From: Leon Romanovsky @ 2017-08-12 14:37 UTC (permalink / raw)
To: Ohad Oz; +Cc: davem, netdev, jiri, saeedm, vadimp, system-sw-low-level
[-- Attachment #1: Type: text/plain, Size: 868 bytes --]
On Thu, Aug 10, 2017 at 05:11:51PM +0000, Ohad Oz wrote:
> Patch allows Mellanox devices on system with no PCI, but with I2C only.
>
Did you test mlx5 device on such system? Did it work for you?
What is the changelog between v0 and v1 of these patches?
> Signed-off-by: Ohad Oz <ohado@mellanox.com>
> ---
> drivers/net/ethernet/mellanox/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/ethernet/mellanox/Kconfig b/drivers/net/ethernet/mellanox/Kconfig
> index 84a2007..0949741 100644
> --- a/drivers/net/ethernet/mellanox/Kconfig
> +++ b/drivers/net/ethernet/mellanox/Kconfig
> @@ -5,7 +5,7 @@
> config NET_VENDOR_MELLANOX
> bool "Mellanox devices"
> default y
> - depends on PCI
> + depends on PCI || I2C
> ---help---
> If you have a network (Ethernet) card belonging to this class, say Y.
>
> --
> 2.8.0
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: [patch v1 1/2] Allow Mellanox network vendor to be configured if only I2C bus is configured
2017-08-12 14:37 ` [patch v1 1/2] Allow Mellanox network vendor to be configured if only I2C bus is configured Leon Romanovsky
@ 2017-08-13 15:26 ` Ohad Oz
2017-08-14 0:25 ` David Miller
2017-08-14 7:00 ` Jiri Pirko
1 sibling, 1 reply; 7+ messages in thread
From: Ohad Oz @ 2017-08-13 15:26 UTC (permalink / raw)
To: Leon Romanovsky
Cc: davem@davemloft.net, netdev@vger.kernel.org, jiri@resnulli.us,
Saeed Mahameed, Vadim Pasternak, system-sw-low-level
> -----Original Message-----
> From: Leon Romanovsky [mailto:leon@kernel.org]
> Sent: Saturday, August 12, 2017 5:37 PM
> To: Ohad Oz <ohado@mellanox.com>
> Cc: davem@davemloft.net; netdev@vger.kernel.org; jiri@resnulli.us; Saeed
> Mahameed <saeedm@mellanox.com>; Vadim Pasternak
> <vadimp@mellanox.com>; system-sw-low-level <system-sw-low-
> level@mellanox.com>
> Subject: Re: [patch v1 1/2] Allow Mellanox network vendor to be configured
> if only I2C bus is configured
>
> On Thu, Aug 10, 2017 at 05:11:51PM +0000, Ohad Oz wrote:
> > Patch allows Mellanox devices on system with no PCI, but with I2C only.
> >
>
> Did you test mlx5 device on such system? Did it work for you?
Yes, I did. With PCI config set to disable mlx5 drivers are not built.
Only the following:
/build/drivers/net/Ethernet/mellanox/mlxsw/mlxsw_core.ko
/build/drivers/net/Ethernet/mellanox /mlxsw/mlxsw_i2c.ko
/build/drivers/net/Ethernet/mellanox /mlxsw/mlxsw_minimal.ko
While with both options on all drivers are built inc mlx5.
> What is the changelog between v0 and v1 of these patches?
No changelog, I've started with v1.
>
> > Signed-off-by: Ohad Oz <ohado@mellanox.com>
> > ---
> > drivers/net/ethernet/mellanox/Kconfig | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/net/ethernet/mellanox/Kconfig
> b/drivers/net/ethernet/mellanox/Kconfig
> > index 84a2007..0949741 100644
> > --- a/drivers/net/ethernet/mellanox/Kconfig
> > +++ b/drivers/net/ethernet/mellanox/Kconfig
> > @@ -5,7 +5,7 @@
> > config NET_VENDOR_MELLANOX
> > bool "Mellanox devices"
> > default y
> > - depends on PCI
> > + depends on PCI || I2C
> > ---help---
> > If you have a network (Ethernet) card belonging to this class, say Y.
> >
> > --
> > 2.8.0
> >
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [patch v1 1/2] Allow Mellanox network vendor to be configured if only I2C bus is configured
2017-08-13 15:26 ` Ohad Oz
@ 2017-08-14 0:25 ` David Miller
2017-08-14 5:20 ` Leon Romanovsky
0 siblings, 1 reply; 7+ messages in thread
From: David Miller @ 2017-08-14 0:25 UTC (permalink / raw)
To: ohado; +Cc: leon, netdev, jiri, saeedm, vadimp, system-sw-low-level
From: Ohad Oz <ohado@mellanox.com>
Date: Sun, 13 Aug 2017 15:26:56 +0000
>
>
>> -----Original Message-----
>> From: Leon Romanovsky [mailto:leon@kernel.org]
>> Sent: Saturday, August 12, 2017 5:37 PM
>> To: Ohad Oz <ohado@mellanox.com>
>> Cc: davem@davemloft.net; netdev@vger.kernel.org; jiri@resnulli.us; Saeed
>> Mahameed <saeedm@mellanox.com>; Vadim Pasternak
>> <vadimp@mellanox.com>; system-sw-low-level <system-sw-low-
>> level@mellanox.com>
>> Subject: Re: [patch v1 1/2] Allow Mellanox network vendor to be configured
>> if only I2C bus is configured
>>
>> On Thu, Aug 10, 2017 at 05:11:51PM +0000, Ohad Oz wrote:
>> > Patch allows Mellanox devices on system with no PCI, but with I2C only.
>> >
>>
>> Did you test mlx5 device on such system? Did it work for you?
>
> Yes, I did. With PCI config set to disable mlx5 drivers are not built.
> Only the following:
> /build/drivers/net/Ethernet/mellanox/mlxsw/mlxsw_core.ko
> /build/drivers/net/Ethernet/mellanox /mlxsw/mlxsw_i2c.ko
> /build/drivers/net/Ethernet/mellanox /mlxsw/mlxsw_minimal.ko
>
> While with both options on all drivers are built inc mlx5.
I'm not so sure he's interested if things build or not.
He's asking you if you actually used a Mellanox device with this
driver with PCI disabled and only I2C available.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [patch v1 1/2] Allow Mellanox network vendor to be configured if only I2C bus is configured
2017-08-14 0:25 ` David Miller
@ 2017-08-14 5:20 ` Leon Romanovsky
0 siblings, 0 replies; 7+ messages in thread
From: Leon Romanovsky @ 2017-08-14 5:20 UTC (permalink / raw)
To: David Miller; +Cc: ohado, netdev, jiri, saeedm, vadimp, system-sw-low-level
[-- Attachment #1: Type: text/plain, Size: 1879 bytes --]
On Sun, Aug 13, 2017 at 05:25:21PM -0700, David Miller wrote:
> From: Ohad Oz <ohado@mellanox.com>
> Date: Sun, 13 Aug 2017 15:26:56 +0000
>
> >
> >
> >> -----Original Message-----
> >> From: Leon Romanovsky [mailto:leon@kernel.org]
> >> Sent: Saturday, August 12, 2017 5:37 PM
> >> To: Ohad Oz <ohado@mellanox.com>
> >> Cc: davem@davemloft.net; netdev@vger.kernel.org; jiri@resnulli.us; Saeed
> >> Mahameed <saeedm@mellanox.com>; Vadim Pasternak
> >> <vadimp@mellanox.com>; system-sw-low-level <system-sw-low-
> >> level@mellanox.com>
> >> Subject: Re: [patch v1 1/2] Allow Mellanox network vendor to be configured
> >> if only I2C bus is configured
> >>
> >> On Thu, Aug 10, 2017 at 05:11:51PM +0000, Ohad Oz wrote:
> >> > Patch allows Mellanox devices on system with no PCI, but with I2C only.
> >> >
> >>
> >> Did you test mlx5 device on such system? Did it work for you?
> >
> > Yes, I did. With PCI config set to disable mlx5 drivers are not built.
> > Only the following:
> > /build/drivers/net/Ethernet/mellanox/mlxsw/mlxsw_core.ko
> > /build/drivers/net/Ethernet/mellanox /mlxsw/mlxsw_i2c.ko
> > /build/drivers/net/Ethernet/mellanox /mlxsw/mlxsw_minimal.ko
> >
> > While with both options on all drivers are built inc mlx5.
>
> I'm not so sure he's interested if things build or not.
>
> He's asking you if you actually used a Mellanox device with this
> driver with PCI disabled and only I2C available.
Thanks David, you are absolutely right.
The commit message and more important, Kconfig entry, is misleading the potential
users by promising them that all devices under drivers/net/ethernet/mellanox
folder are working with i2c.
I have no technical objection to the idea of this patch, but it needs to be resubmitted after
Ohad ensures that mlx4/mlx5 are not visible in menuconfig for i2c
systems and he fixes Kconfig description together with commit log.
Thanks
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [patch v1 1/2] Allow Mellanox network vendor to be configured if only I2C bus is configured
2017-08-12 14:37 ` [patch v1 1/2] Allow Mellanox network vendor to be configured if only I2C bus is configured Leon Romanovsky
2017-08-13 15:26 ` Ohad Oz
@ 2017-08-14 7:00 ` Jiri Pirko
1 sibling, 0 replies; 7+ messages in thread
From: Jiri Pirko @ 2017-08-14 7:00 UTC (permalink / raw)
To: Leon Romanovsky
Cc: Ohad Oz, davem, netdev, saeedm, vadimp, system-sw-low-level
Sat, Aug 12, 2017 at 04:37:15PM CEST, leon@kernel.org wrote:
>On Thu, Aug 10, 2017 at 05:11:51PM +0000, Ohad Oz wrote:
>> Patch allows Mellanox devices on system with no PCI, but with I2C only.
>>
>
>Did you test mlx5 device on such system? Did it work for you?
$ git grep i2c_add_driver drivers/net/ethernet/mellanox/
drivers/net/ethernet/mellanox/mlxsw/i2c.c: return i2c_add_driver(i2c_driver);
That is the only driver that would probe on i2c, non-pci system.
mlx5 just would not probe, so there is nothing to test.
>
>What is the changelog between v0 and v1 of these patches?
>
>
>> Signed-off-by: Ohad Oz <ohado@mellanox.com>
>> ---
>> drivers/net/ethernet/mellanox/Kconfig | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/net/ethernet/mellanox/Kconfig b/drivers/net/ethernet/mellanox/Kconfig
>> index 84a2007..0949741 100644
>> --- a/drivers/net/ethernet/mellanox/Kconfig
>> +++ b/drivers/net/ethernet/mellanox/Kconfig
>> @@ -5,7 +5,7 @@
>> config NET_VENDOR_MELLANOX
>> bool "Mellanox devices"
>> default y
>> - depends on PCI
>> + depends on PCI || I2C
>> ---help---
>> If you have a network (Ethernet) card belonging to this class, say Y.
>>
>> --
>> 2.8.0
>>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2017-08-14 7:00 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-10 17:11 [patch v1 1/2] Allow Mellanox network vendor to be configured if only I2C bus is configured Ohad Oz
2017-08-10 17:11 ` [patch v1 2/2] Change Kconfig description Ohad Oz
2017-08-12 14:37 ` [patch v1 1/2] Allow Mellanox network vendor to be configured if only I2C bus is configured Leon Romanovsky
2017-08-13 15:26 ` Ohad Oz
2017-08-14 0:25 ` David Miller
2017-08-14 5:20 ` Leon Romanovsky
2017-08-14 7:00 ` Jiri Pirko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).