From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v1 1/5] usb: net: introduce support for Moschip USB ethernet
Date: Mon, 17 Feb 2014 14:12:35 +0100 [thread overview]
Message-ID: <201402171412.35496.marex@denx.de> (raw)
In-Reply-To: <20140217094041.GS4524@book.gsilab.sittig.org>
On Monday, February 17, 2014 at 10:40:41 AM, Gerhard Sittig wrote:
[...]
> > Why don't you just use structure with padding as the rest of the U-Boot
> > does ? Like so:
> >
> > struct regs {
> >
> > u8 reg1;
> > u8 pad1[n];
> > u8 reg2;
> >
> > ...
> > };
>
> does not apply here -- these are "adapter registers behind USB",
> very much like "PHY registers behind MII communication"; the
> driver won't pass addresses to I/O accessors, but will pass
> register numbers as parameters to USB API calls
You'd be passing offset of the register in the structure, right ?
[...]
> > Uh, this code is not quite clear to me ... can you not simplify this
> > weird loop? [...]
>
> again, this was copied from asix; its core is checking for the
> ethernet link status, what makes it look so weird is the "nice"
> user presentation of whether the link already was established or
> needed to get established first -- will see how I can rephrase it
>
> thank you for reviewing!
Thanks
Best regards,
Marek Vasut
next prev parent reply other threads:[~2014-02-17 13:12 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-16 23:01 [U-Boot] [PATCH v1 0/5] usb: eth: introduce Moschip MCS7830 driver Gerhard Sittig
2014-02-16 23:01 ` [U-Boot] [PATCH v1 1/5] usb: net: introduce support for Moschip USB ethernet Gerhard Sittig
2014-02-17 1:40 ` Marek Vasut
2014-02-17 9:40 ` Gerhard Sittig
2014-02-17 13:12 ` Marek Vasut [this message]
2014-02-16 23:01 ` [U-Boot] [PATCH v1 2/5] arm: config: alpha-sort USB ethernet items for Asix and SMSC Gerhard Sittig
2014-02-17 22:21 ` Simon Glass
2014-02-16 23:01 ` [U-Boot] [PATCH v1 3/5] arm: config: enable Moschip USB ethernet support for several boards Gerhard Sittig
2014-02-16 23:01 ` [U-Boot] [PATCH v1 4/5] arm: config: enable USB ethernet for taskit stamp9g20 Gerhard Sittig
2014-02-16 23:01 ` [U-Boot] [PATCH v1 5/5] usb: doc: update README.doc to list all USB ethernet options Gerhard Sittig
2014-02-17 22:22 ` Simon Glass
2014-02-17 1:25 ` [U-Boot] [PATCH v1 0/5] usb: eth: introduce Moschip MCS7830 driver Marek Vasut
2014-02-17 9:44 ` Gerhard Sittig
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=201402171412.35496.marex@denx.de \
--to=marex@denx.de \
--cc=u-boot@lists.denx.de \
/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