From: andrew@lunn.ch (Andrew Lunn)
To: linus-amlogic@lists.infradead.org
Subject: [PATCH net] mdio: mux: fix parsing mux registers outside of the PHY address range
Date: Mon, 10 Jul 2017 16:37:31 +0200 [thread overview]
Message-ID: <20170710143731.GE21118@lunn.ch> (raw)
In-Reply-To: <CAC3K-4p0gidfh1U+_o3i7bwCgQo1QtNb7D+MXwYa+X_-9sFhrw@mail.gmail.com>
> 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
next prev parent reply other threads:[~2017-07-10 14:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-10 12:35 [PATCH net] mdio: mux: fix parsing mux registers outside of the PHY address range Martin Blumenstingl
2017-07-10 12:37 ` Neil Armstrong
2017-07-10 12:56 ` Andrew Lunn
2017-07-10 14:28 ` Jon Mason
2017-07-10 14:37 ` Andrew Lunn [this message]
2017-07-14 15:13 ` David Miller
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=20170710143731.GE21118@lunn.ch \
--to=andrew@lunn.ch \
--cc=linus-amlogic@lists.infradead.org \
/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