From: hayeswang <hayeswang@realtek.com>
To: "'Francois Romieu'" <romieu@fr.zoreil.com>
Cc: <netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
"'Ben Hutchings'" <ben@decadent.org.uk>
Subject: RE: [PATCH] net/r8169: Remove the firmware of RTL8111D
Date: Wed, 1 Dec 2010 17:54:53 +0800 [thread overview]
Message-ID: <5CD11B39296347A7AA66F157A5112039@realtek.com.tw> (raw)
In-Reply-To: <20101201080732.GA3234@electric-eye.fr.zoreil.com>
[-- Attachment #1: Type: text/plain, Size: 1930 bytes --]
Hi Romieu,
the rtl8168d_3_hw_phy_config is RTL8111DP which is different from RTL8111D(L).
I want to deal with RTL8111D first.
The attatched file is the linux-firmware patch.
I would think the situation for the failure of request_firmware. However, maybe
it is fine to go along.
Thanks for your suggestion and reply.
Best Regards,
Hayes
> -----Original Message-----
> From: Francois Romieu [mailto:romieu@fr.zoreil.com]
> Sent: Wednesday, December 01, 2010 4:08 PM
> To: Hayeswang
> Cc: netdev@vger.kernel.org; linux-kernel@vger.kernel.org; Ben
> Hutchings
> Subject: Re: [PATCH] net/r8169: Remove the firmware of RTL8111D
>
> Hayes Wang <hayeswang@realtek.com> :
> > Remove the firmware of RTL8111D from the kernel.
> > The binary file of firmware would be moved to
> linux-firmware repository.
>
> The driver can not simply go along when request_firmware
> fails. Though Ben's
> code did not take care of it, the driver should imho
> propagate some return
> code. Ben ?
>
> There is no change in rtl8168d_3_hw_phy_config : could you
> add a comment
> so that people know it is different ?
>
> Could you Cc: the linux-firmware patch as well ?
>
> Minor nit: please keep the code free of capitalized hex data.
>
> > diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c
> > index 7d33ef4..cad1ba8 100644
> > --- a/drivers/net/r8169.c
> > +++ b/drivers/net/r8169.c
> [...]
> > @@ -1383,6 +1384,28 @@ static void rtl_phy_write(void
> __iomem *ioaddr, const struct phy_reg *regs, int
> > }
> > }
> >
> > +static void rtl_phy_write_fw(void __iomem *ioaddr, const
> struct firmware *fw)
> > +{
> [...]
> > + default:
> > + printk(KERN_WARNING "%s: Unknown action\n",
> > + __FUNCTION__);
>
> A bit old school. It gives no information about the device.
> Use netif_{err/info} or such ?
>
> Thanks.
>
> --
> Ueimor
>
>
> ------Please consider the environment before printing this e-mail.
>
>
>
[-- Attachment #2: 0001-rtl_nic-Add-firmware-for-RTL8111D-L.patch --]
[-- Type: application/octet-stream, Size: 3982 bytes --]
>From 706b34566b9318ae50b9b931178ee6b66b05080a Mon Sep 17 00:00:00 2001
From: Hayes Wang <hayeswang@realtek.com>
Date: Wed, 1 Dec 2010 10:21:47 +0800
Subject: [PATCH] rtl_nic: Add firmware for RTL8111D(L)
Add firmware for r8169 of kernel for RTL8111D
rtl_nic/rtl8168d-1.fw
rtl_nic/rtl8168d-2.fw
Signed-off-by: Hayes Wang <hayeswang@realtek.com>
---
WHENCE | 14 ++++++++++++++
rtl_nic/rtl8168d-1.fw | Bin 0 -> 1492 bytes
rtl_nic/rtl8168d-2.fw | Bin 0 -> 1324 bytes
3 files changed, 14 insertions(+), 0 deletions(-)
create mode 100644 rtl_nic/rtl8168d-1.fw
create mode 100644 rtl_nic/rtl8168d-2.fw
diff --git a/WHENCE b/WHENCE
index 907fe68..e2aca61 100644
--- a/WHENCE
+++ b/WHENCE
@@ -1451,3 +1451,17 @@ Licence: Redistributable. See LICENCE.rtlwifi_firmware for details.
--------------------------------------------------------------------------
+Driver: r8169 - RealTek 8169/8168/8101 ethernet driver.
+
+File: rtl_nic/rtl8168d-1.fw
+File: rtl_nic/rtl8168d-2.fw
+
+Licence:
+ * Copyright (c) 2010, Realtek Semiconductor Corporation
+ *
+ * Permission is hereby granted for the distribution of this firmware
+ * data in hexadecimal or equivalent format, provided this copyright
+ * notice is accompanying it.
+
+--------------------------------------------------------------------------
+
diff --git a/rtl_nic/rtl8168d-1.fw b/rtl_nic/rtl8168d-1.fw
new file mode 100644
index 0000000000000000000000000000000000000000..99e002de1fb965d53822bc9ea0f5a8ca12d27f62
GIT binary patch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Tl<2X5=o9W^`V0Sw64A<UqC0Q-Cb_Hdp2dHFu@5{sVh->b%(>r(`Yw7q
z+&Q)I2sY<DI<oK`oj!#H`XhJvH$CLO43;@!zB12aFdrXfCTz3!MIQ`-kKBzIc`rnF
s;j_ZExGJa-aHx-eF5&XeBL^8HCt4d+XFjA3|3pX1)b;<3yC$CZAI_u&^8f$<
literal 0
HcmV?d00001
--
1.7.3.2
next prev parent reply other threads:[~2010-12-01 9:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-01 5:22 Hayes Wang
2010-12-01 8:07 ` Francois Romieu
2010-12-01 9:54 ` hayeswang [this message]
2010-12-01 16:36 ` Stefan Lippers-Hollmann
2010-12-01 17:05 ` Ben Hutchings
2010-12-01 22:40 ` Francois Romieu
2010-12-06 4:38 ` Ben Hutchings
2010-12-06 22:04 ` Francois Romieu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5CD11B39296347A7AA66F157A5112039@realtek.com.tw \
--to=hayeswang@realtek.com \
--cc=ben@decadent.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=romieu@fr.zoreil.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®