r8169: Be verbose when unable to load fw patch
Subsystems (2)
PATCH 1/1 r8169: Be verbose when unable to load fw patch
From: Borislav Petkov <[email protected]>
When the driver fails loading the firmware, it doesn't say which patch exactly it is missing. We have three different firmware images depending on the hw revision, so mention the exact patch name it is unable to load in the warning message.
--- drivers/net/r8169.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/net/r8169.c +3 -3
@@ -2248,7 +2248,7 @@ static void rtl8168d_1_hw_phy_config(struct rtl8169_private *tp)rtl_writephy (tp,0x05 ,0x001b );if ((rtl_readphy (tp,0x06 ) !=0xbf00 ) || (rtl_apply_firmware (tp,FIRMWARE_8168D_1 ) <0 )) { -netif_warn (tp, probe, tp->dev,"unable to apply firmware patch\n" ); +netif_warn (tp, probe, tp->dev,"unable to apply firmware patch %s\n" ,FIRMWARE_8168D_1 ); }rtl_writephy (tp,0x1f ,0x0000 );
@@ -2353,7 +2353,7 @@ static void rtl8168d_2_hw_phy_config(struct rtl8169_private *tp)rtl_writephy (tp,0x05 ,0x001b );if ((rtl_readphy (tp,0x06 ) !=0xb300 ) || (rtl_apply_firmware (tp,FIRMWARE_8168D_2 ) <0 )) { -netif_warn (tp, probe, tp->dev,"unable to apply firmware patch\n" ); +netif_warn (tp, probe, tp->dev,"unable to apply firmware patch %s\n" ,FIRMWARE_8168D_2 ); }rtl_writephy (tp,0x1f ,0x0000 );
@@ -2475,7 +2475,7 @@ static void rtl8105e_hw_phy_config(struct rtl8169_private *tp)msleep (100 );if (rtl_apply_firmware (tp,FIRMWARE_8105E_1 ) <0 ) -netif_warn (tp, probe, tp->dev,"unable to apply firmware patch\n" ); +netif_warn (tp, probe, tp->dev,"unable to apply firmware patch %s\n" ,FIRMWARE_8105E_1 );rtl_writephy_batch (tp, phy_reg_init,ARRAY_SIZE (phy_reg_init)); }
Signature · 1 line
1.7.4
David Miller
maintainerFrom: Borislav Petkov <[email protected]>
Date: Tue, 12 Apr 2011 15:32:52 +0200
Quoted 10 lines
From: Borislav Petkov <[email protected]>
When the driver fails loading the firmware, it doesn't say which patch exactly it is missing. We have three different firmware images depending on the hw revision, so mention the exact patch name it is unable to load in the warning message.
Cc Francois Romieu <[email protected]>Signed-off-by Borislav Petkov <[email protected]>
Seems reasonable, Francois?
On Tue, Apr 12, 2011 at 04:20:36PM -0700, David Miller wrote:
[...]
Quoted 1 line
Seems reasonable, Francois?
Yes, it makes sense.
The patch goes way beyond 80 cols but I'll do a round of cleanups later anyway.
Signature · 1 line
Ueimor
David Miller
maintainerFrom: François Romieu <[email protected]>
Date: Wed, 13 Apr 2011 19:48:52 +0200
Quoted 8 lines · David Miller
[...]
Quoted 1 line
Seems reasonable, Francois?
Yes, it makes sense.
The patch goes way beyond 80 cols but I'll do a round of cleanups later anyway.
Ok. So will you submit this yourself later or should I just apply this myself directly to net-2.6?
I'm fine either way.
Thanks!
[...]
Quoted 2 lines
Ok. So will you submit this yourself later or should I just apply this myself directly to net-2.6?
Please apply it directly.
Thanks.
Signature · 1 line
Ueimor
David Miller
maintainerFrom: François Romieu <[email protected]>
Date: Sun, 17 Apr 2011 15:59:36 +0200
Quoted 8 lines · François Romieu
Quoted 5 lines
[...]
Quoted 2 lines
Ok. So will you submit this yourself later or should I just apply this myself directly to net-2.6?
Please apply it directly.
Please don't.
Ok.