[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d3651e7c-9c68-426a-a3a0-5a0bb269d173@intel.com>
Date: Mon, 23 Oct 2023 15:02:36 -0700
From: Jacob Keller <jacob.e.keller@...el.com>
To: Ivan Vecera <ivecera@...hat.com>, <netdev@...r.kernel.org>
CC: Jesse Brandeburg <jesse.brandeburg@...el.com>,
Tony Nguyen <anthony.l.nguyen@...el.com>,
"David S. Miller" <davem@...emloft.net>,
"Eric Dumazet" <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>,
<intel-wired-lan@...ts.osuosl.org>, <linux-kernel@...r.kernel.org>,
<mschmidt@...hat.com>, <dacampbe@...hat.com>, <poros@...hat.com>
Subject: Re: [PATCH iwl-next 3/3] i40e: Use helpers to check running FW and AQ
API versions
On 10/23/2023 9:29 AM, Ivan Vecera wrote:
> Use new helpers to check versions of running FW and provided
> AQ API to make the code more readable.
>
> Signed-off-by: Ivan Vecera <ivecera@...hat.com>
> ---
This has a couple checkpatch.pl warnings:
> CHECK: Alignment should match open parenthesis
> #81: FILE: drivers/net/ethernet/intel/i40e/i40e_adminq.c:566:
> + if (i40e_is_aq_api_ver_ge(hw, 1,
> + I40E_MINOR_VER_FW_LLDP_STOPPABLE_X722)) {
>
> WARNING: braces {} are not necessary for single statement blocks
> #110: FILE: drivers/net/ethernet/intel/i40e/i40e_adminq.c:583:
> + if (i40e_is_aq_api_ver_ge(hw, 1, 5)) {
> set_bit(I40E_HW_CAP_NVM_READ_REQUIRES_LOCK, hw->caps);
> + }
>
> WARNING: braces {} are not necessary for single statement blocks
> #118: FILE: drivers/net/ethernet/intel/i40e/i40e_adminq.c:587:
> + if (i40e_is_aq_api_ver_ge(hw, 1, 7)) {
> set_bit(I40E_HW_CAP_802_1AD, hw->caps);
> + }
>
> WARNING: braces {} are not necessary for single statement blocks
> #125: FILE: drivers/net/ethernet/intel/i40e/i40e_adminq.c:590:
> + if (i40e_is_aq_api_ver_ge(hw, 1, 8)) {
> set_bit(I40E_HW_CAP_FW_LLDP_PERSISTENT, hw->caps);
> + }
>
> WARNING: braces {} are not necessary for single statement blocks
> #132: FILE: drivers/net/ethernet/intel/i40e/i40e_adminq.c:593:
> + if (i40e_is_aq_api_ver_ge(hw, 1, 9)) {
> set_bit(I40E_HW_CAP_AQ_PHY_ACCESS_EXTENDED, hw->caps);
> + }
>
> total: 0 errors, 4 warnings, 1 checks, 212 lines checked
Thanks,
Jake
Powered by blists - more mailing lists