From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 1/2] net: add Calxeda xgmac driver
Date: Thu, 8 Dec 2011 22:56:47 -0500 [thread overview]
Message-ID: <201112082256.48057.vapier@gentoo.org> (raw)
In-Reply-To: <1323280612-31944-1-git-send-email-robherring2@gmail.com>
On Wednesday 07 December 2011 12:56:51 Rob Herring wrote:
> --- /dev/null
> +++ b/drivers/net/calxedaxgmac.c
>
> +struct xgmac_regs {
> + u32 config;
> + u32 framefilter;
> + u32 resv_1[4];
> + u32 flow_control;
> + u32 vlantag;
> + u32 version;
> + u32 vlaninclude;
> + u32 resv_2[2];
> + u32 pacestretch;
> + u32 vlanhash;
> + u32 resv_3;
> + u32 intreg;
> + struct {
> + u32 hi; /* 0x40 */
> + u32 lo; /* 0x44 */
> + } macaddr[16];
> + u32 resv_4[0xd0];
> + u32 core_opmode; /* 0x400 */
> + u32 resv_5[0x2bf];
> + u32 busmode; /* 0xf00 */
> + u32 txpoll;
> + u32 rxpoll;
> + u32 rxdesclist;
> + u32 txdesclist;
> + u32 dma_status;
> + u32 dma_opmode;
> + u32 intenable;
> + u32 resv_6[2];
> + u32 axi_mode; /* 0xf28 */
> +};
seems to mix tabs/spaces. should be fixed to be tabs only.
> +static void init_rx_desc(struct calxeda_eth_dev *priv)
> +{
> ...
> + };
delete that semicolon
> +int calxedaxgmac_initialize(u32 id, ulong base_addr)
> +{
> ...
> + char enetvar[32];
this is unused now. does this code compile warning-free ?
> + dev = malloc(sizeof(*dev));
> + if (!dev)
> + return -ENOMEM;
return 0
> + if (xgmac_reset(dev) < 0) {
you shouldn't be resetting in the registration function. this belongs in your
init func.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20111208/1cf08421/attachment.pgp>
next prev parent reply other threads:[~2011-12-09 3:56 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-02 20:21 [U-Boot] [PATCH 0/2] Network support for Calxeda highbank Rob Herring
2011-12-02 20:21 ` [U-Boot] [PATCH 1/2] net: add Calxeda xgmac driver Rob Herring
2011-12-02 21:30 ` Mike Frysinger
2011-12-02 22:02 ` Rob Herring
2011-12-02 22:14 ` Mike Frysinger
2011-12-02 22:46 ` Rob Herring
2011-12-02 23:54 ` Mike Frysinger
2011-12-02 20:21 ` [U-Boot] [PATCH 2/2] ARM: highbank: enable networking and pxe Rob Herring
2011-12-02 21:31 ` Mike Frysinger
2011-12-02 22:03 ` Rob Herring
2011-12-02 22:15 ` Mike Frysinger
2011-12-07 17:56 ` [U-Boot] [PATCH v2 1/2] net: add Calxeda xgmac driver Rob Herring
2011-12-07 17:56 ` [U-Boot] [PATCH v2 2/2] ARM: highbank: enable networking and pxe Rob Herring
2011-12-09 4:00 ` Mike Frysinger
2011-12-09 3:56 ` Mike Frysinger [this message]
2011-12-15 21:15 ` [U-Boot] [PATCH v3 1/2] net: add Calxeda xgmac driver Rob Herring
2011-12-15 21:15 ` [U-Boot] [PATCH v3 2/2] ARM: highbank: enable networking and pxe Rob Herring
2012-01-05 16:32 ` Wolfgang Denk
2011-12-20 22:42 ` [U-Boot] [PATCH v3 1/2] net: add Calxeda xgmac driver Wolfgang Denk
2011-12-20 22:54 ` Rob Herring
2011-12-20 23:09 ` Wolfgang Denk
2011-12-20 23:12 ` Rob Herring
2012-01-05 16:31 ` Wolfgang Denk
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=201112082256.48057.vapier@gentoo.org \
--to=vapier@gentoo.org \
--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