greybus: svc: clean up link configuration hack at hello
authorJohan Hovold <johan@kernel.org>
Wed, 2 Feb 2022 11:33:47 +0000 (12:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Feb 2022 14:27:44 +0000 (15:27 +0100)
commita74e7263b53424a7f5b999a11d610231338f5b99
tree2b01f4bed9321338f4e129db25051fec3ef593f6
parent5f648e00f50ff8b04a4cfe13d58a0227bc2b56bb
greybus: svc: clean up link configuration hack at hello

Commit ee2f2074fdb2 ("greybus: svc: reconfig APBridgeA-Switch link to
handle required load") added a temporary hack which reconfigures the
link at HELLO by abusing the deferred request processing mechanism.

Restructure the HELLO request processing so that the link-configuration
work is queued before creating the debugfs files and add a comment
explaining why it's there.

Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20220202113347.1288-4-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/greybus/svc.c