From: Tony Lindgren <tony@atomide.com>
To: Murali Karicheri <m-karicheri2@ti.com>
Cc: davem@davemloft.net, mugunthanvnm@ti.com, george.cherian@ti.com,
prabhakar.csengg@gmail.com, varkabhadram@gmail.com,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
grygorii.strashko@ti.com, lokeshvutla@ti.com, mpa@pengutronix.de,
w-kwok2@ti.com
Subject: Re: [PATCH net-next 1/2] net: davinci_mdio: don't request io address range
Date: Fri, 27 Feb 2015 08:51:01 -0800 [thread overview]
Message-ID: <20150227165100.GY11056@atomide.com> (raw)
In-Reply-To: <1424813251-31610-1-git-send-email-m-karicheri2@ti.com>
* Murali Karicheri <m-karicheri2@ti.com> [150224 13:32]:
> From: Grygorii Strashko <grygorii.strashko@ti.com>
>
> Historically Davinci MDIO driver was created with assumption that
> MDIO is standalone device, but for Keystone 2 it's a part
> of NETCP module and now NETCP driver requests IO range which
> includes MDIO IO range too. This causes Keystone 2 networking stack
> failure during the boot.
>
> "netcp-1.0 2620110.netcp: Probe of module(netcp-gbe) failed with -16"
>
> Hence, don't request io address range from Davinci MDIO driver and
> just remap it.
Best to fix this up properly so you don't have overlapping resources.
You probably want to have the whole hardware driver block defined
in the dts file as a single entry, and then have the modules within
that hardware block use the dt ranges property. This allows you to
do standard Linux drivers without any extra hacks.
Sounds like this following untested imaginary example should do
the trick:
mac: ethernet@deadbeef {
compatible = "ti,cpsw", "simple-bus";
reg = <0xdeadbeef 0x1000>;
ranges = <0 0xdeadbeef 0x2000>;
...
davinci_mdio: mdio@1000 {
reg = <0x1000 0x100>;
...
};
};
That allows you to get rid of all the existing code for dealing
with the chilren with for_each_child_of_node(node, slave_node)
in cpsw_probe_dt() as that all happens automatically for you and
does not cause problems with modules being moved around.
Regards,
Tony
next prev parent reply other threads:[~2015-02-27 16:51 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-24 21:27 [PATCH net-next 1/2] net: davinci_mdio: don't request io address range Murali Karicheri
2015-02-24 21:27 ` [PATCH net-next 2/2] net: netcp: select davinci_mdio driver by default Murali Karicheri
2015-02-27 16:29 ` Tony Lindgren
2015-02-27 20:56 ` Murali Karicheri
2015-03-02 16:11 ` Tony Lindgren
2015-03-02 21:45 ` Murali Karicheri
2015-03-03 0:04 ` Tony Lindgren
2015-03-11 16:18 ` Murali Karicheri
2015-02-27 15:55 ` [PATCH net-next 1/2] net: davinci_mdio: don't request io address range Lad, Prabhakar
2015-02-27 16:51 ` Tony Lindgren [this message]
2015-03-11 16:35 ` Murali Karicheri
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=20150227165100.GY11056@atomide.com \
--to=tony@atomide.com \
--cc=davem@davemloft.net \
--cc=george.cherian@ti.com \
--cc=grygorii.strashko@ti.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lokeshvutla@ti.com \
--cc=m-karicheri2@ti.com \
--cc=mpa@pengutronix.de \
--cc=mugunthanvnm@ti.com \
--cc=netdev@vger.kernel.org \
--cc=prabhakar.csengg@gmail.com \
--cc=varkabhadram@gmail.com \
--cc=w-kwok2@ti.com \
/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).