OSDN Git Service

net: ipa: move version test inside ipa_endpoint_program_delay()
authorAlex Elder <elder@linaro.org>
Thu, 2 Jul 2020 11:25:34 +0000 (06:25 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Jul 2020 21:31:20 +0000 (14:31 -0700)
commit66eba76763fd5689a1e2102d13b7da24cb61974f
tree83121477822aea1c81c3558ecf37ab75d49718cc
parent4e1a69116869b26d244c2522bd1631967b62ffce
net: ipa: move version test inside ipa_endpoint_program_delay()

IPA version 4.2 has a hardware quirk that affects endpoint delay
mode, so it isn't used there.  Isolate the test that avoids using
delay mode for that version inside ipa_endpoint_program_delay(),
rather than making that check in the caller.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipa/ipa_endpoint.c