]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
e6000sw: add readphy and writephy wrappers
authorAlbert Jakiela <aja@semihalf.com>
Wed, 6 Jul 2022 14:40:20 +0000 (16:40 +0200)
committerMarcin Wojtas <mw@FreeBSD.org>
Thu, 7 Jul 2022 16:25:00 +0000 (18:25 +0200)
commit469290648005e13b819a19353032ca53dda4378f
tree9cd3e4032556ee718135ddf8bcc44874f414be5b
parentc47db49ba4aa7e74afe22591a62fbda95317932d
e6000sw: add readphy and writephy wrappers

New functions take lock and give lock after operation.
Removed locking and unlocking within other methods,
to prevent from recursive locking on non recursive lock.

Tested on EspressoBin.

Reviewed by: mw
Obtained from: Semihalf
Differential Revision: https://reviews.freebsd.org/D35656
sys/dev/etherswitch/e6000sw/e6000sw.c