linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Anatolij Gustschin <agust@denx.de>
To: Heiko Schocher <hs@denx.de>
Cc: linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH 1/4] net, phy: am79c874 support
Date: Sun, 18 Mar 2012 22:22:18 +0100	[thread overview]
Message-ID: <20120318222218.6c87878d@wker> (raw)
In-Reply-To: <1308729311-15375-2-git-send-email-hs@denx.de>

Hello Heiko,

some comments below.

On Wed, 22 Jun 2011 09:55:08 +0200
Heiko Schocher <hs@denx.de> wrote:
...
> diff --git a/drivers/net/phy/amd79.c b/drivers/net/phy/amd79.c
> new file mode 100644
> index 0000000..914d696
> --- /dev/null
> +++ b/drivers/net/phy/amd79.c
...
> +#include <linux/kernel.h>
> +#include <linux/string.h>
> +#include <linux/errno.h>
> +#include <linux/unistd.h>
> +#include <linux/interrupt.h>
> +#include <linux/init.h>
> +#include <linux/io.h>
> +#include <linux/delay.h>
> +#include <linux/netdevice.h>
> +#include <linux/etherdevice.h>
> +#include <linux/skbuff.h>
> +#include <linux/spinlock.h>
> +#include <linux/mm.h>
> +#include <linux/module.h>
> +#include <linux/mii.h>
> +#include <linux/ethtool.h>
> +#include <linux/phy.h>
> +#include <linux/uaccess.h>
> +
> +#include <asm/irq.h>

We should remove not needed headers here.

...
> +static int amd79_config_intr(struct phy_device *phydev)
> +{
> +	int err;
> +
> +	if (phydev->interrupts == PHY_INTERRUPT_ENABLED)
> +		err = phy_write(phydev, MII_AMD79_IR_EN_LINK,
> +			MII_AMD79_IR_EN_LINK);
> +	else
> +		err = phy_write(phydev, MII_AMD79_IR_EN_LINK, 0);

Here is an issue, we should write to the interrupt control/status
register, so the 2nd argument of phy_write() should be MII_AMD79_IR.
I've fixed this and resubmitted your patch to the netdev list.

Thanks,
Anatolij

  parent reply	other threads:[~2012-03-18 21:22 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-22  7:55 [PATCH 0/4] powerpc, mpc5200: add support for a4m072 board Heiko Schocher
2011-06-22  7:55 ` [PATCH 1/4] net, phy: am79c874 support Heiko Schocher
2011-07-26  4:55   ` Heiko Schocher
2012-03-18 21:13     ` Anatolij Gustschin
2012-03-18 21:22   ` Anatolij Gustschin [this message]
2011-06-22  7:55 ` [PATCH 2/4] powerpc, mpc52xx: add a4m072 board support Heiko Schocher
2011-06-22  8:09   ` Wolfram Sang
2011-06-22  8:13     ` Heiko Schocher
2011-06-22  8:25       ` Wolfram Sang
2011-06-22 10:39   ` [PATCH v2 " Heiko Schocher
2011-07-26  4:52     ` Heiko Schocher
2011-07-31  4:08     ` Grant Likely
2011-08-01  5:30       ` Heiko Schocher
2012-03-18 23:38     ` Anatolij Gustschin
2011-07-31  4:05   ` [PATCH " Grant Likely
2011-06-22  7:55 ` [PATCH 3/4] powerpc, mpc5200: update mpc5200_defconfig Heiko Schocher
2011-06-22  7:55 ` [PATCH 4/4] powerpc, mpc5200: add options to mpc5200_defconfig Heiko Schocher
2012-03-18 23:44   ` Anatolij Gustschin

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=20120318222218.6c87878d@wker \
    --to=agust@denx.de \
    --cc=hs@denx.de \
    --cc=linuxppc-dev@lists.ozlabs.org \
    /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;
as well as URLs for NNTP newsgroup(s).