linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] AX88179_178A: Add VID:DID for Lenovo OneLinkDock Gigabit LAN
@ 2014-02-26  8:54 freddy
  2014-02-26 12:13 ` Bjørn Mork
  0 siblings, 1 reply; 10+ messages in thread
From: freddy @ 2014-02-26  8:54 UTC (permalink / raw)
  To: netdev; +Cc: davem, linux-usb, linux-kernel, Freddy Xin

From: Freddy Xin <freddy@asix.com.tw>

Add VID:DID for Lenovo OneLinkDock Gigabit LAN

Signed-off-by: Freddy Xin <freddy@asix.com.tw>
---
 drivers/net/usb/ax88179_178a.c |   17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/drivers/net/usb/ax88179_178a.c b/drivers/net/usb/ax88179_178a.c
index 955df81..460e823 100644
--- a/drivers/net/usb/ax88179_178a.c
+++ b/drivers/net/usb/ax88179_178a.c
@@ -1421,6 +1421,19 @@ static const struct driver_info samsung_info = {
 	.tx_fixup = ax88179_tx_fixup,
 };
 
+static const struct driver_info lenovo_info = {
+	.description = "Lenovo OneLinkDock Gigabit LAN",
+	.bind = ax88179_bind,
+	.unbind = ax88179_unbind,
+	.status = ax88179_status,
+	.link_reset = ax88179_link_reset,
+	.reset = ax88179_reset,
+	.stop = ax88179_stop,
+	.flags = FLAG_ETHER | FLAG_FRAMING_AX,
+	.rx_fixup = ax88179_rx_fixup,
+	.tx_fixup = ax88179_tx_fixup,
+};
+
 static const struct usb_device_id products[] = {
 {
 	/* ASIX AX88179 10/100/1000 */
@@ -1438,6 +1451,10 @@ static const struct usb_device_id products[] = {
 	/* Samsung USB Ethernet Adapter */
 	USB_DEVICE(0x04e8, 0xa100),
 	.driver_info = (unsigned long)&samsung_info,
+}, {
+	/* Lenovo OneLinkDock Gigabit LAN */
+	USB_DEVICE(0x17ef, 0x304b),
+	.driver_info = (unsigned long)&lenovo_info,
 },
 	{ },
 };
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/1] AX88179_178A: Add VID:DID for Lenovo OneLinkDock Gigabit LAN
  2014-02-26  8:54 [PATCH 1/1] AX88179_178A: Add VID:DID for Lenovo OneLinkDock Gigabit LAN freddy
@ 2014-02-26 12:13 ` Bjørn Mork
  2014-02-26 20:48   ` David Miller
  0 siblings, 1 reply; 10+ messages in thread
From: Bjørn Mork @ 2014-02-26 12:13 UTC (permalink / raw)
  To: freddy; +Cc: netdev, davem, linux-usb, linux-kernel

freddy@asix.com.tw writes:

> From: Freddy Xin <freddy@asix.com.tw>
>
> Add VID:DID for Lenovo OneLinkDock Gigabit LAN

This is the same patch Keith Packard sent, but with a slighly different
description.  I take that as another proof that we should not attempt to
describe devices in these drivers.  Describe the driver instead.




Bjørn

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/1] AX88179_178A: Add VID:DID for Lenovo OneLinkDock Gigabit LAN
  2014-02-26 12:13 ` Bjørn Mork
@ 2014-02-26 20:48   ` David Miller
  2014-02-26 21:14     ` Bjørn Mork
  0 siblings, 1 reply; 10+ messages in thread
From: David Miller @ 2014-02-26 20:48 UTC (permalink / raw)
  To: bjorn; +Cc: freddy, netdev, linux-usb, linux-kernel

From: Bjørn Mork <bjorn@mork.no>
Date: Wed, 26 Feb 2014 13:13:12 +0100

> freddy@asix.com.tw writes:
> 
>> From: Freddy Xin <freddy@asix.com.tw>
>>
>> Add VID:DID for Lenovo OneLinkDock Gigabit LAN
> 
> This is the same patch Keith Packard sent, but with a slighly different
> description.  I take that as another proof that we should not attempt to
> describe devices in these drivers.  Describe the driver instead.

Are you saying that this patch needs to be implemented differently?

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/1] AX88179_178A: Add VID:DID for Lenovo OneLinkDock Gigabit LAN
  2014-02-26 20:48   ` David Miller
@ 2014-02-26 21:14     ` Bjørn Mork
  2014-02-26 21:16       ` David Miller
  0 siblings, 1 reply; 10+ messages in thread
From: Bjørn Mork @ 2014-02-26 21:14 UTC (permalink / raw)
  To: David Miller; +Cc: freddy, netdev, linux-usb, linux-kernel

David Miller <davem@davemloft.net> writes:

> From: Bjørn Mork <bjorn@mork.no>
> Date: Wed, 26 Feb 2014 13:13:12 +0100
>
>> freddy@asix.com.tw writes:
>> 
>>> From: Freddy Xin <freddy@asix.com.tw>
>>>
>>> Add VID:DID for Lenovo OneLinkDock Gigabit LAN
>> 
>> This is the same patch Keith Packard sent, but with a slighly different
>> description.  I take that as another proof that we should not attempt to
>> describe devices in these drivers.  Describe the driver instead.
>
> Are you saying that this patch needs to be implemented differently?

No, sorry for being confusing.  The patch is fine.  But Keith sent it
first...

The other comment is more of a personal opinion on the driver style.  In
any case, it's something that can be fixed up later. If at all.


Bjørn

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/1] AX88179_178A: Add VID:DID for Lenovo OneLinkDock Gigabit LAN
  2014-02-26 21:14     ` Bjørn Mork
@ 2014-02-26 21:16       ` David Miller
  2014-02-26 21:44         ` Bjørn Mork
  0 siblings, 1 reply; 10+ messages in thread
From: David Miller @ 2014-02-26 21:16 UTC (permalink / raw)
  To: bjorn; +Cc: freddy, netdev, linux-usb, linux-kernel

From: Bjørn Mork <bjorn@mork.no>
Date: Wed, 26 Feb 2014 22:14:10 +0100

> David Miller <davem@davemloft.net> writes:
> 
>> From: Bjørn Mork <bjorn@mork.no>
>> Date: Wed, 26 Feb 2014 13:13:12 +0100
>>
>>> freddy@asix.com.tw writes:
>>> 
>>>> From: Freddy Xin <freddy@asix.com.tw>
>>>>
>>>> Add VID:DID for Lenovo OneLinkDock Gigabit LAN
>>> 
>>> This is the same patch Keith Packard sent, but with a slighly different
>>> description.  I take that as another proof that we should not attempt to
>>> describe devices in these drivers.  Describe the driver instead.
>>
>> Are you saying that this patch needs to be implemented differently?
> 
> No, sorry for being confusing.  The patch is fine.  But Keith sent it
> first...

Did I apply Keith's patch?  If not, should I apply it instead?

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/1] AX88179_178A: Add VID:DID for Lenovo OneLinkDock Gigabit LAN
  2014-02-26 21:16       ` David Miller
@ 2014-02-26 21:44         ` Bjørn Mork
  2014-02-26 22:02           ` David Miller
  2014-02-26 22:23           ` Keith Packard
  0 siblings, 2 replies; 10+ messages in thread
From: Bjørn Mork @ 2014-02-26 21:44 UTC (permalink / raw)
  To: David Miller; +Cc: freddy, netdev, linux-usb, linux-kernel, Keith Packard

David Miller <davem@davemloft.net> writes:
> From: Bjørn Mork <bjorn@mork.no>
>
>> No, sorry for being confusing.  The patch is fine.  But Keith sent it
>> first...
>
> Did I apply Keith's patch?

No, you didn't.  And when I went looking at it now, I see why: It was
posted to linux-usb and linux-kernel but not to netdev:
http://www.kernelhub.org/?msg=420289&p=2

> If not, should I apply it instead?

The patches are identical except for the author and a minor difference
in the device description string. 

It doesn't matter to me which patch you apply, and I absolutely don't
think it's my place to tell you which patches to apply or not :-)



Bjørn

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/1] AX88179_178A: Add VID:DID for Lenovo OneLinkDock Gigabit LAN
  2014-02-26 21:44         ` Bjørn Mork
@ 2014-02-26 22:02           ` David Miller
  2014-02-26 22:23           ` Keith Packard
  1 sibling, 0 replies; 10+ messages in thread
From: David Miller @ 2014-02-26 22:02 UTC (permalink / raw)
  To: bjorn; +Cc: freddy, netdev, linux-usb, linux-kernel, keithp

From: Bjørn Mork <bjorn@mork.no>
Date: Wed, 26 Feb 2014 22:44:18 +0100

> David Miller <davem@davemloft.net> writes:
>> From: Bjørn Mork <bjorn@mork.no>
>>
>>> No, sorry for being confusing.  The patch is fine.  But Keith sent it
>>> first...
>>
>> Did I apply Keith's patch?
> 
> No, you didn't.  And when I went looking at it now, I see why: It was
> posted to linux-usb and linux-kernel but not to netdev:
> http://www.kernelhub.org/?msg=420289&p=2
> 
>> If not, should I apply it instead?
> 
> The patches are identical except for the author and a minor difference
> in the device description string. 
> 
> It doesn't matter to me which patch you apply, and I absolutely don't
> think it's my place to tell you which patches to apply or not :-)

Fair enough, I'll apply this one, thanks!

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/1] AX88179_178A: Add VID:DID for Lenovo OneLinkDock Gigabit LAN
  2014-02-26 21:44         ` Bjørn Mork
  2014-02-26 22:02           ` David Miller
@ 2014-02-26 22:23           ` Keith Packard
  2014-02-26 22:37             ` Joe Perches
  1 sibling, 1 reply; 10+ messages in thread
From: Keith Packard @ 2014-02-26 22:23 UTC (permalink / raw)
  To: Bjørn Mork, David Miller; +Cc: freddy, netdev, linux-usb, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 616 bytes --]

Bjørn Mork <bjorn@mork.no> writes:

> No, you didn't.  And when I went looking at it now, I see why: It was
> posted to linux-usb and linux-kernel but not to netdev:
> http://www.kernelhub.org/?msg=420289&p=2

I looked in MAINTAINERS and found linux-usb as a suitable address for
drivers/net/usb/. I'm sorry I didn't think to look for drivers/net/ as
well.

> It doesn't matter to me which patch you apply, and I absolutely don't
> think it's my place to tell you which patches to apply or not :-)

Doesn't matter to me either; just want to make sure the device works.

-- 
keith.packard@intel.com

[-- Attachment #2: Type: application/pgp-signature, Size: 810 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/1] AX88179_178A: Add VID:DID for Lenovo OneLinkDock Gigabit LAN
  2014-02-26 22:23           ` Keith Packard
@ 2014-02-26 22:37             ` Joe Perches
  2014-02-26 23:04               ` Keith Packard
  0 siblings, 1 reply; 10+ messages in thread
From: Joe Perches @ 2014-02-26 22:37 UTC (permalink / raw)
  To: Keith Packard
  Cc: Bjørn Mork, David Miller, freddy, netdev, linux-usb, linux-kernel

On Wed, 2014-02-26 at 14:23 -0800, Keith Packard wrote:
> Bjørn Mork <bjorn@mork.no> writes:
> 
> > No, you didn't.  And when I went looking at it now, I see why: It was
> > posted to linux-usb and linux-kernel but not to netdev:
> > http://www.kernelhub.org/?msg=420289&p=2
> 
> I looked in MAINTAINERS and found linux-usb as a suitable address for
> drivers/net/usb/. I'm sorry I didn't think to look for drivers/net/ as
> well.

Hi Keith.

You could use scripts/get_maintainer.pl next time.

$ ./scripts/get_maintainer.pl -f drivers/net/usb/ax88179_178a.c
"David S. Miller" <davem@davemloft.net> (commit_signer:13/13=100%)
Freddy Xin <freddy@asix.com.tw> (commit_signer:4/13=31%,authored:4/13=31%,added_lines:1473/1504=98%,removed_lines:9/43=21%)
Eric Dumazet <edumazet@google.com> (commit_signer:3/13=23%,authored:2/13=15%,removed_lines:22/43=51%)
Ming Lei <ming.lei@canonical.com> (commit_signer:3/13=23%,authored:3/13=23%,removed_lines:8/43=19%)
David Chang <dchang@suse.com> (commit_signer:2/13=15%,authored:2/13=15%)
Emil Goode <emilgoode@gmail.com> (authored:1/13=8%)
linux-usb@vger.kernel.org (open list:USB NETWORKING DR...)
netdev@vger.kernel.org (open list:NETWORKING DRIVERS)
linux-kernel@vger.kernel.org (open list)


Maybe there should be a MAINTAINERS entry added too?



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/1] AX88179_178A: Add VID:DID for Lenovo OneLinkDock Gigabit LAN
  2014-02-26 22:37             ` Joe Perches
@ 2014-02-26 23:04               ` Keith Packard
  0 siblings, 0 replies; 10+ messages in thread
From: Keith Packard @ 2014-02-26 23:04 UTC (permalink / raw)
  To: Joe Perches
  Cc: Bjørn Mork, David Miller, freddy, netdev, linux-usb, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 223 bytes --]

Joe Perches <joe@perches.com> writes:

> You could use scripts/get_maintainer.pl next time.

Yeah, good point. I always forget about that tool when I'm hacking
outside my normal areas.

-- 
keith.packard@intel.com

[-- Attachment #2: Type: application/pgp-signature, Size: 810 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-02-26 23:04 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-26  8:54 [PATCH 1/1] AX88179_178A: Add VID:DID for Lenovo OneLinkDock Gigabit LAN freddy
2014-02-26 12:13 ` Bjørn Mork
2014-02-26 20:48   ` David Miller
2014-02-26 21:14     ` Bjørn Mork
2014-02-26 21:16       ` David Miller
2014-02-26 21:44         ` Bjørn Mork
2014-02-26 22:02           ` David Miller
2014-02-26 22:23           ` Keith Packard
2014-02-26 22:37             ` Joe Perches
2014-02-26 23:04               ` Keith Packard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).