]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: FLAVOR_0 register doesn't exist until IPA v3.5
authorAlex Elder <elder@linaro.org>
Mon, 21 Jun 2021 17:56:25 +0000 (12:56 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Jun 2021 19:30:59 +0000 (12:30 -0700)
commitda2b51eefae8c24653ede7ba935c2bae8ff39915
treec7349dd644fe3bad838e139754963b85e66f27fb
parent1e0b0dbf20add5f34ba854571a87e12a39f03d1b
net: ipa: FLAVOR_0 register doesn't exist until IPA v3.5

The FLAVOR_0 version first appears in IPA v3.5, so avoid attempting
to read it for versions prior to that.

This register contains a concise definition of the number and
direction of endpoints supported by the hardware, and without it
we can't verify endpoint configuration in ipa_endpoint_config().
In this case, just indicate that any endpoint number is available
for use.

Originally proposed by AngeloGioacchino Del Regno.

Link: https://lore.kernel.org/netdev/20210211175015.200772-3-angelogioacchino.delregno@somainline.org
Signed-off-by: Alex Elder <elder@linaro.org>
Acked-by: AngeloGioacchino Del Regno
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipa/ipa_endpoint.c