From: Arnd Bergmann <arnd.bergmann@de.ibm.com>
To: David Hollis <dhollis@davehollis.com>
Cc: dbrownell@users.sourceforge.net, linux-kernel@vger.kernel.org,
linux-usb-devel@lists.sourceforge.net, support@moschip.com,
Michael Helmling <supermihi@web.de>
Subject: Re: [PATCH] please review mcs7830 (DeLOCK USB etherner) driver
Date: Mon, 7 Aug 2006 18:11:09 +0200 [thread overview]
Message-ID: <200608071811.09978.arnd.bergmann@de.ibm.com> (raw)
In-Reply-To: <1154962496.2496.12.camel@dhollis-lnx.sunera.com>
On Monday 07 August 2006 16:54, David Hollis wrote:
> These values are dupes of the MII_xxxx constants from linux/mii.h. It
> would be clearer and more consistent to use those instead
ok
> These values are device specific so you would want to define them here.
> Following the MII_xxxxx naming convention may be helpful.
ok
> > +
> > +static DEFINE_MUTEX(mcs7830_phy_mutex);
> > +
>
> Does this need to be global? Isn't it really just to prevent
> simultaneous access to the adapters PHY? What if you have multiple
> adapters installed?
It's very rarely held, so I don't expect this to be a bottleneck,
even with a large number of adapters.
The implementation is slightly simpler this way, but I can move
the mutex to struct usbnet instead if you prefer.
> > + dev->in = usb_rcvbulkpipe(dev->udev, 1);
> > + dev->out = usb_sndbulkpipe(dev->udev, 2);
>
> Couldn't you use usbnet_getendpoints() here. It will also pick up the
> status pipe.
Yes. usbnet_getendpoints() didn't work at first, but I think
I found the problem with it now. I'll change that once I
have the interrupts sorted out.
> use MII_BMSR here instead of the magic value '1'.
ok
Arnd <><
next prev parent reply other threads:[~2006-08-07 16:11 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-07 13:00 Arnd Bergmann
2006-08-07 14:54 ` David Hollis
2006-08-07 16:11 ` Arnd Bergmann [this message]
2006-08-20 20:07 ` [PATCH] driver for mcs7830 (aka DeLOCK) USB ethernet adapter Arnd Bergmann
2006-08-20 20:13 ` [PATCH] usbnet: add a mutex around phy register access Arnd Bergmann
2006-08-21 14:34 ` [PATCH] driver for mcs7830 (aka DeLOCK) USB ethernet adapter David Hollis
2006-08-27 20:41 ` [PATCH] mcs7830: clean up use of kernel constants Arnd Bergmann
2006-08-27 20:41 ` [PATCH] mcs7830: fix reception of 1514 byte frames Arnd Bergmann
2006-09-02 10:33 ` [linux-usb-devel] " David Brownell
2006-09-02 18:29 ` Arnd Bergmann
2006-08-28 19:09 ` [PATCH] mcs7830: clean up use of kernel constants David Hollis
2006-09-02 10:38 ` [linux-usb-devel] [PATCH] driver for mcs7830 (aka DeLOCK) USB ethernet adapter David Brownell
2006-09-02 17:51 ` Arnd Bergmann
2006-09-04 6:40 ` David Brownell
2006-09-07 19:37 ` David Hollis
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=200608071811.09978.arnd.bergmann@de.ibm.com \
--to=arnd.bergmann@de.ibm.com \
--cc=dbrownell@users.sourceforge.net \
--cc=dhollis@davehollis.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb-devel@lists.sourceforge.net \
--cc=supermihi@web.de \
--cc=support@moschip.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
Powered by JetHome