]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: rename db_enable flag
authorAlex Elder <elder@linaro.org>
Mon, 4 May 2020 23:30:02 +0000 (18:30 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 May 2020 00:36:04 +0000 (17:36 -0700)
commit5143fd1e1d4094d155784cccb108ab9fa413711d
treed07d1c3f4acd74f606339bf3c56d3bbc9450c9e1
parenta9313fb62fc0b0f483733cab1484e09349407e60
net: ipa: rename db_enable flag

In several places, a Boolean flag is used in the GSI code to
indicate whether the "doorbell engine" should be enabled or not
when a channel is configured.  This is basically done to abstract
this property from the IPA version; the GSI code doesn't otherwise
"know" what the IPA hardware version is.  The doorbell engine is
enabled only for IPA v3.5.1, not for IPA v4.0 and later.

The next patch makes another change that affects behavior during
channel reset (which also involves programming the channel).  It
also distinguishes IPA v3.5.1 hardware from newer hardware.

Rather than creating another flag whose value matches the "db_enable"
value, just rename "db_enable" to be "legacy" so it can be used to
signal more than just the special doorbell handling.

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