public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Ajay Bhargav <ajay.bhargav@einfochips.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 1/3] net: Adds Fast Ethernet Controller driver for Armada100
Date: Mon, 29 Aug 2011 10:56:47 +0530 (IST)	[thread overview]
Message-ID: <1997272659.14498.1314595607233.JavaMail.root@ahm.einfochips.com> (raw)
In-Reply-To: <274121072.14489.1314595589918.JavaMail.root@ahm.einfochips.com>


----- "Marek Vasut" <marek.vasut@gmail.com> wrote:

> On Friday, August 26, 2011 08:36:51 AM Ajay Bhargav wrote:
> > This patch adds support for Fast Ethernet Controller driver for
> > Armada100 series.
> > 
> > Signed-off-by: Ajay Bhargav <ajay.bhargav@einfochips.com>
> 
> Hi, please don't forget to CC me next time ;-)
> 
Sure, I'll do that.. you and Mike both :)

> [...]
> 
> > +static int smi_reg_read(const char *devname, u8 phy_addr, u8
> phy_reg,
> > +			u16 *value)
> > +{
> > +	struct eth_device *dev = eth_get_dev_by_name(devname);
> > +	struct armdfec_device *darmdfec = to_darmdfec(dev);
> > +	struct armdfec_reg *regs = darmdfec->regs;
> > +	u32 val, reg_data;
> > +
> > +	if (phy_addr == PHY_ADR_REQ && phy_reg == PHY_ADR_REQ) {
> > +		reg_data = readl(&regs->phyadr);
> > +		*value = (u16) (reg_data & 0x1f);
> 
> Do you need this cast?
> 

I thought I fixed most of the cast related issues :) looks like I missed one.

> 
> Unify the error reporting please.
> 

I will do that...

> It looks good, just a few nits
> 
> Cheers!
> 

Cheers! :)

Ajay Bhargav

       reply	other threads:[~2011-08-29  5:26 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <274121072.14489.1314595589918.JavaMail.root@ahm.einfochips.com>
2011-08-29  5:26 ` Ajay Bhargav [this message]
     [not found] <706935361.14309.1314594441316.JavaMail.root@ahm.einfochips.com>
2011-08-29  5:10 ` [U-Boot] [PATCH v3 1/3] net: Adds Fast Ethernet Controller driver for Armada100 Ajay Bhargav
2011-08-29  5:30   ` Mike Frysinger
2011-08-29  5:39     ` Ajay Bhargav
2011-08-29 10:12       ` Marek Vasut
2011-08-29 19:39       ` Mike Frysinger
2011-08-30  5:15         ` Ajay Bhargav
2011-08-26  6:36 Ajay Bhargav
2011-08-26 15:32 ` Marek Vasut
2011-08-26 20:01 ` Mike Frysinger

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=1997272659.14498.1314595607233.JavaMail.root@ahm.einfochips.com \
    --to=ajay.bhargav@einfochips.com \
    --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