[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20120824.150740.9047511945034908.davem@davemloft.net>
Date: Fri, 24 Aug 2012 15:07:40 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: swarren@...dotorg.org
Cc: timur@...escale.com, afleming@...escale.com, ddaney.cavm@...il.com,
netdev@...r.kernel.org, devicetree-discuss@...ts.ozlabs.org,
scottwood@...escale.com
Subject: Re: [PATCH] [v2] netdev/phy: add MDIO bus multiplexer driven by a
memory-mapped device
From: Stephen Warren <swarren@...dotorg.org>
Date: Fri, 24 Aug 2012 12:56:05 -0600
> In the I2C case, the address spaces are disjoint, so there's never any
> mapping between them, so there's no need for ranges.
>
> Any time the child address space is intended to be part of the parent's
> address space, I believe ranges is supposed to be specified, perhaps
> even mandatory, even if the translation is 1:1.
Regardless, you really can't just generically translate ranges
in some universal way and expect it to work in all cases.
You need bus specific drivers to deal with various special
cases.
See the *_map() methods implemented in:
arch/sparc/kernel/of_device_64.c
for example.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists