Skip to content

net: ipa: simplify endpoint programming

Alex Elder lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4net: ipa: move version test inside ipa_endpoint_program_delay()drivers/net/ipa/ipa_endpoint.c+4 -30 replies
2/4net: ipa: always handle suspend workarounddrivers/net/ipa/ipa_endpoint.c+63 -620 replies
3/4net: ipa: move version test inside ipa_endpoint_program_suspend()drivers/net/ipa/ipa_endpoint.c+13 -160 replies
4/4net: ipa: simplify ipa_endpoint_program()drivers/net/ipa/ipa_endpoint.c+20 -110 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 0/4] net: ipa: simplify endpoint programming

Add tests to functions so they don't update undefined endpoint registers, rather than requiring the caller to avoid calling them.

Move the call to a workaround function required when suspending inside the function that puts an endpoint into suspend mode. This requires moving a few functions (which are otherwise unchanged).

Then simplify ipa_endpoint_program() to call essentially all endpoint register update functions unconditionally.

-Alex

Alex Elder (4):
net: ipa: move version test inside ipa_endpoint_program_delay()
net: ipa: always handle suspend workaround
net: ipa: move version test inside ipa_endpoint_program_suspend()
net: ipa: simplify ipa_endpoint_program()

 drivers/net/ipa/ipa_endpoint.c | 190 +++++++++++++++++----------------
 1 file changed, 99 insertions(+), 91 deletions(-)
Signature · 1 line
2.25.1