git: f034ddd2fa38 - stable/14 - igc(4): Fix attach for I226-K and LMVP devices

From: Eric Joyner <erj_at_FreeBSD.org>
Date: Thu, 03 Apr 2025 20:00:02 UTC
The branch stable/14 has been updated by erj:

URL: https://cgit.FreeBSD.org/src/commit/?id=f034ddd2fa38cb2b0e3d16059cb059626a770e19

commit f034ddd2fa38cb2b0e3d16059cb059626a770e19
Author:     Eric Joyner <erj@FreeBSD.org>
AuthorDate: 2025-02-26 17:19:38 +0000
Commit:     Eric Joyner <erj@FreeBSD.org>
CommitDate: 2025-04-03 19:59:47 +0000

    igc(4): Fix attach for I226-K and LMVP devices
    
    Summary:
    The device IDs for these were in the driver's list of PCI ids to attach
    to, but igc_set_mac_type() had never been setup to set the correct mac
    type for these devices. Fix this by adding these IDs to the switch block
    in order for them to be recognized by the driver instead of returning an
    error.
    
    This fixes the igc(4) attach for the I226-K LOM on the ASRock Z790
    PG-ITX/TB4 motherboard, allowing it to be recognized and used.
    
    Signed-off-by: Eric Joyner <erj@FreeBSD.org>
    
    Reviewed by:    kbowling@
    Relnotes:       yes
    Differential Revision: https://reviews.freebsd.org/D49147
    
    (cherry picked from commit 7ee310c80ea7b336972f53cc48b8c3d03029941e)
---
 sys/dev/igc/igc_api.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/dev/igc/igc_api.c b/sys/dev/igc/igc_api.c
index 9e91e7a4c73f..da499274fca4 100644
--- a/sys/dev/igc/igc_api.c
+++ b/sys/dev/igc/igc_api.c
@@ -109,6 +109,8 @@ s32 igc_set_mac_type(struct igc_hw *hw)
 	case IGC_DEV_ID_I220_V:
 	case IGC_DEV_ID_I225_K2:
 	case IGC_DEV_ID_I225_LMVP:
+	case IGC_DEV_ID_I226_K:
+	case IGC_DEV_ID_I226_LMVP:
 	case IGC_DEV_ID_I225_IT:
 	case IGC_DEV_ID_I226_LM:
 	case IGC_DEV_ID_I226_V: