From: Sascha Hauer <s.hauer@pengutronix.de>
To: Oleksij Rempel <linux@rempel-privat.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] net: ag71xx: define parent devices
Date: Fri, 6 Oct 2017 06:01:15 +0200 [thread overview]
Message-ID: <20171006040115.cezr4ln5vwpnkixe@pengutronix.de> (raw)
In-Reply-To: <20170929221057.8553-1-linux@rempel-privat.de>
On Sat, Sep 30, 2017 at 12:10:57AM +0200, Oleksij Rempel wrote:
> without it we are not able to set mac address from other driver.
>
> Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
> ---
> drivers/net/ag71xx.c | 2 ++
> 1 file changed, 2 insertions(+)
>
Applied, thanks
Sascha
> diff --git a/drivers/net/ag71xx.c b/drivers/net/ag71xx.c
> index 1cec26360..a422aacdd 100644
> --- a/drivers/net/ag71xx.c
> +++ b/drivers/net/ag71xx.c
> @@ -580,6 +580,7 @@ static int ag71xx_probe(struct device_d *dev)
> miibus = &priv->miibus;
> dev->priv = edev;
> edev->priv = priv;
> + edev->parent = dev;
>
> edev->init = ag71xx_ether_init;
> edev->open = ag71xx_ether_open;
> @@ -597,6 +598,7 @@ static int ag71xx_probe(struct device_d *dev)
> miibus->read = ag71xx_ether_mii_read;
> miibus->write = ag71xx_ether_mii_write;
> miibus->priv = priv;
> + miibus->parent = dev;
>
> /* enable switch core */
> rd = ar7240_reg_rd(AR71XX_PLL_BASE + AR933X_ETHSW_CLOCK_CONTROL_REG);
> --
> 2.11.0
>
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
prev parent reply other threads:[~2017-10-06 4:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-29 22:10 Oleksij Rempel
2017-10-06 4:01 ` Sascha Hauer [this message]
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=20171006040115.cezr4ln5vwpnkixe@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=linux@rempel-privat.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