* Re: [PATCH] dsa:mv88e6xxx: allow address 0x1 in smi_init
[not found] <1481029592-19496-1-git-send-email-volodymyr.bendiuga@westermo.se>
@ 2016-12-06 14:27 ` Andrew Lunn
0 siblings, 0 replies; only message in thread
From: Andrew Lunn @ 2016-12-06 14:27 UTC (permalink / raw)
To: Volodymyr Bendiuga; +Cc: vivien.didelot, f.fainelli, netdev, volodymyr.bendiuga
On Tue, Dec 06, 2016 at 02:06:32PM +0100, Volodymyr Bendiuga wrote:
> Westermo devices use this address.
I think we can have a better change log entry than that. How about:
Some devices, such as the mv88e6097 do have ADDR[0] external and so it
is possible to configure the device to use SMI address 0x1. Remove the
restriction, as there are boards using this address.
Thanks
Andrew
>
> Signed-off-by: Volodymyr Bendiuga <volodymyr.bendiuga@westermo.se>
> ---
> drivers/net/dsa/mv88e6xxx/chip.c | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/drivers/net/dsa/mv88e6xxx/chip.c b/drivers/net/dsa/mv88e6xxx/chip.c
> index 4212fb6..05942e3 100644
> --- a/drivers/net/dsa/mv88e6xxx/chip.c
> +++ b/drivers/net/dsa/mv88e6xxx/chip.c
> @@ -4253,10 +4253,6 @@ static void mv88e6xxx_phy_destroy(struct mv88e6xxx_chip *chip)
> static int mv88e6xxx_smi_init(struct mv88e6xxx_chip *chip,
> struct mii_bus *bus, int sw_addr)
> {
> - /* ADDR[0] pin is unavailable externally and considered zero */
> - if (sw_addr & 0x1)
> - return -EINVAL;
> -
> if (sw_addr == 0)
> chip->smi_ops = &mv88e6xxx_smi_single_chip_ops;
> else if (mv88e6xxx_has(chip, MV88E6XXX_FLAGS_MULTI_CHIP))
> --
> 2.7.4
>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-12-06 14:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1481029592-19496-1-git-send-email-volodymyr.bendiuga@westermo.se>
2016-12-06 14:27 ` [PATCH] dsa:mv88e6xxx: allow address 0x1 in smi_init Andrew Lunn
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).