diff options
author | Tim James <tim.james@macltd.com> | 2015-03-25 11:55:15 +0000 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2015-04-20 17:57:12 -0500 |
commit | a095f047ebf3ee098e7b84197d765029e0797dd3 (patch) | |
tree | a1e09c4991b65ba57a52a2b3ff8ca2560a4df9f3 /drivers/i2c | |
parent | a60de1ee7fc49480b90996eef7bbeb66e67a7808 (diff) |
mii: add read-modify-write option to mii command
When accessing PHY registers it is often desirable to only update
selected bits, so it is necessary to first read the current value
before writing back an modified value with the relevant bits
updated.
To simplify this and to allow such operations to be incorporated
into simple shell scripts propose adding a 'modify' option to the
existing mii command, which takes a mask indicating the bits to
be updated in addition to a data value containing the new bits,
ie, <updated> = (<data> & <mask>) | (<current> & ~<mask>).
Signed-off-by: Tim <tim.james@macltd.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
Cc: Jeroen Hofstee <jeroen@myspectrum.nl>
Cc: Tom Rini <trini@konsulko.com>
Cc: Tim <tim.james@macltd.com>
Diffstat (limited to 'drivers/i2c')
0 files changed, 0 insertions, 0 deletions