summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2019-11-05 12:57:40 +0000
committerRussell King <rmk+kernel@armlinux.org.uk>2019-11-25 12:05:48 +0000
commit12eaf7e9f504f1f849368bb07f9e7faeadc87dea (patch)
tree3e5ea266f3852837b89ab5f1a77f512414dea792 /include
parentf44dd47242acae31ddf3499aecde162ff7d8c7c0 (diff)
net: sfp: track upstream's attachment state in state machine
Track the upstream's attachment state in the state machine rather than maintaining a boolean, which ensures that we have a strict order of ATTACH followed by an UP event - we can never believe that a newly attached upstream will be anything but down. Rearrange the order of state machines so we run the module state machine after the upstream device's state machine, so the module state machine can check the current state of the device and take action to e.g. reset back to empty state when the upstream is detached. This is to allow the module detection to run independently of the network device becoming available. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions