summaryrefslogtreecommitdiff
path: root/drivers/i2c
diff options
context:
space:
mode:
authorTim James <tim.james@macltd.com>2015-03-25 11:55:15 +0000
committerJoe Hershberger <joe.hershberger@ni.com>2015-04-20 17:57:12 -0500
commita095f047ebf3ee098e7b84197d765029e0797dd3 (patch)
treea1e09c4991b65ba57a52a2b3ff8ca2560a4df9f3 /drivers/i2c
parenta60de1ee7fc49480b90996eef7bbeb66e67a7808 (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