Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1677496

Re: [PATCH] [net-next] net/mlx5e: select CONFIG_MLXFW

From Arnd Bergmann <arnd@arndb.de>
Newsgroups linux.kernel
Subject Re: [PATCH] [net-next] net/mlx5e: select CONFIG_MLXFW
Date 2017-06-29 09:50 +0200
Message-ID <tXCn8-4LC-15@gated-at.bofh.it> (permalink)
References <tXrBo-237-17@gated-at.bofh.it> <tXyCR-2nE-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Jun 29, 2017 at 5:47 AM, Or Gerlitz <gerlitz.or@gmail.com> wrote:
> On Wed, Jun 28, 2017 at 11:10 PM, Arnd Bergmann <arnd@arndb.de> wrote:
>> With the introduction of mlx5 firmware flash support, we get a link
>> error with CONFIG_MLXFW=m and CONFIG_MLX5_CORE=y:
>>
>> drivers/net/ethernet/mellanox/mlx5/core/fw.o: In function `mlx5_firmware_flash':
>> fw.c:(.text+0x9d4): undefined reference to `mlxfw_firmware_flash'
>
> Thanks Arnd, I got a report on that from Jakub but you were before me here..
>
>> We could have a more elaborate method to force MLX5 to be a loadable
>> module in this case, but the easiest fix seems to be to always enable
>> MLXFW as well, like we do for CONFIG_MLXSW_SPECTRUM, which is the other
>> user of mlxfw_firmware_flash.
>
> We would not want to force mlx5 users to build mlxfw.
>
> So lets either use the more elaborate method or maybe instead of using
> IS_ENABLED in mlxfw.h use IS_REACHABLE (this was suggested by Jakub)

Sure, that works. I generally try to avoid IS_REACHABLE(), as I find it more
confusing than adding a dependency like

           depends on MLXFW || MLXFW=n

(and yes, I was the one who introduced IS_REACHABLE() ;-) ).

      Arnd

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] [net-next] net/mlx5e: select CONFIG_MLXFW Arnd Bergmann <arnd@arndb.de> - 2017-06-28 22:20 +0200
  Re: [PATCH] [net-next] net/mlx5e: select CONFIG_MLXFW Or Gerlitz <gerlitz.or@gmail.com> - 2017-06-29 05:50 +0200
    Re: [PATCH] [net-next] net/mlx5e: select CONFIG_MLXFW Arnd Bergmann <arnd@arndb.de> - 2017-06-29 09:50 +0200

csiph-web