[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170710143731.GE21118@lunn.ch>
Date: Mon, 10 Jul 2017 16:37:31 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Jon Mason <jon.mason@...adcom.com>
Cc: Martin Blumenstingl <martin.blumenstingl@...glemail.com>,
Florian Fainelli <f.fainelli@...il.com>,
Network Development <netdev@...r.kernel.org>,
David Miller <davem@...emloft.net>,
linux-amlogic@...ts.infradead.org
Subject: Re: [PATCH net] mdio: mux: fix parsing mux registers outside of the
PHY address range
> To be clear, are you suggesting that we add an additional property to
> of_mdio_parse_addr() that specifies the limit to check against, or
> remove the check and add it to each additional caller?
Hi Jon
Probably the simplest is to add an extra parameter to mdio_mux_init()
which is the maximum allowed reg value.
We should not touch of_mdio_parse_addr(). reg is not an mdio
address. It is a count of gpios, or a value to be poked into an
register.
Andrew
Powered by blists - more mailing lists