]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb5da16481cf4abd904c63066b52248aa739369c2
tree83121477822aea1c81c3558ecf37ab75d49718cc
parent89b8fb6c2aa3ab3df238d9b265047192545a2081
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