i40e: Fix for displaying message regarding NVM version
Subsystems (2)
PATCH 1/1 i40e: Fix for displaying message regarding NVM version
When loading the i40e driver, it prints a message like:
'The driver for the device detected a newer version of the NVM image v1.x than expected v1.y. Please install the most recent version of the network driver.' This is misleading as the driver is working as expected.
Fix that by removing the second part of message and changing it from dev_info to dev_dgb.
--- drivers/net/ethernet/intel/i40e/i40e_main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/net/ethernet/intel/i40e/i40e_main.c +4 -4
@@ -15469,15 +15469,15 @@ static int i40e_probe(struct pci_dev *pdev, const struct pci_device_id *ent)if (hw->aq.api_maj_ver ==I40E_FW_API_VERSION_MAJOR && hw->aq.api_min_ver >I40E_FW_MINOR_VERSION (hw)) -dev_info (&pdev->dev, -"The driver for the device detected a newer version of the NVM image v%u.%u than expected v%u.%u. Please install the most recent version of the network driver.\n" , +dev_dbg (&pdev->dev, +"The driver for the device detected a newer version of the NVM image v%u.%u than expected v%u.%u.\n" , hw->aq.api_maj_ver, hw->aq.api_min_ver,I40E_FW_API_VERSION_MAJOR ,I40E_FW_MINOR_VERSION (hw));else if (hw->aq.api_maj_ver ==1 && hw->aq.api_min_ver <4 ) - dev_info(&pdev->dev, - "The driver for the device detected an older version of the NVM image v%u.%u than expected v%u.%u. Please update the NVM image.\n", + dev_dbg(&pdev->dev, + "The driver for the device detected an older version of the NVM image v%u.%u than expected v%u.%u.\n", hw->aq.api_maj_ver, hw->aq.api_min_ver, I40E_FW_API_VERSION_MAJOR,
Signature · 1 line
2.27.0
Nguyen
PATCH 1/1 i40e: Fix for displaying message regarding NVM version
Quoted 7 lines · Mateusz Palczewski
When loading the i40e driver, it prints a message like:
'The driver for the device detected a newer version of the NVM image v1.x than
expected v1.y. Please install the most recent version of the network driver.'
This is misleading as the driver is working as expected.
Quoted 5 lines
Fix that by removing the second part of message and changing it from
dev_infotodev_dgb.Fixes 4fb29bddb ("i40e: The driver now prints the API version inerror message")
This fixes is not formatted correctly:
Fixes tag: Fixes: 4fb29bddb ("i40e: The driver now prints the API version in error message")
Has these problem(s):
- SHA1 should be at least 12 digits long Can be fixed by setting core.abbrev to 12 (or more)
or (for git v2.11
or later) just making sure it is not set (or set to
"auto").
Quoted 1 line
Signed-off-by Mateusz Palczewski <[email protected]>