Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch 'net-ipa-two-fixes'

Alex Elder says:

====================
net: ipa: two fixes

This small series makes two fixes to the IPA code:
- While reviewing something else I found that one of the resource
limits on the SDM845 used the wrong value. The first patch
fixes this. The correct value allocates more resources of this
type for IPA to use, and otherwise does not change behavior.
- When the IPA-resident microcontroller starts up it generates an
event, which triggers an AP interrupt. The event merely
provides some information for logging, which we don't support.
We already ignore the event, and that's harmless. So this
patch explicitly ignores it rather than issuing a warning when
it occurs.
====================

Link: https://lore.kernel.org/r/20201112121157.19784-1-elder@linaro.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

+4 -3
+2 -2
drivers/net/ipa/ipa_data-sdm845.c
··· 150 150 .type = IPA_RESOURCE_TYPE_SRC_PKT_CONTEXTS, 151 151 .limits[0] = { 152 152 .min = 1, 153 - .max = 63, 153 + .max = 255, 154 154 }, 155 155 .limits[1] = { 156 156 .min = 1, 157 - .max = 63, 157 + .max = 255, 158 158 }, 159 159 }, 160 160 {
+2 -1
drivers/net/ipa/ipa_uc.c
··· 129 129 130 130 if (shared->event == IPA_UC_EVENT_ERROR) 131 131 dev_err(dev, "microcontroller error event\n"); 132 - else 132 + else if (shared->event != IPA_UC_EVENT_LOG_INFO) 133 133 dev_err(dev, "unsupported microcontroller event %hhu\n", 134 134 shared->event); 135 + /* The LOG_INFO event can be safely ignored */ 135 136 } 136 137 137 138 /* Microcontroller response IPA interrupt handler */