linux/drivers/net/ipa
Alex Elder b4afd4b90a net: ipa: fix init header command validation
We use ipa_cmd_header_valid() to ensure certain values we will
program into hardware are within range, well in advance of when we
actually program them.  This way we avoid having to check for errors
when we actually program the hardware.

Unfortunately the dev_err() call for a bad offset value does not
supply the arguments to match the format specifiers properly.
Fix this.

There was also supposed to be a check to ensure the size to be
programmed fits in the field that holds it.  Add this missing check.

Rearrange the way we ensure the header table fits in overall IPA
memory range.

Finally, update ipa_cmd_table_valid() so the format of messages
printed for errors matches what's done in ipa_cmd_header_valid().

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-03-20 18:53:41 -07:00
..
Kconfig
Makefile
gsi.c net: ipa: introduce gsi_channel_initialized() 2021-02-12 16:54:17 -08:00
gsi.h net: ipa: use a separate pointer for adjusted GSI memory 2021-02-12 16:54:16 -08:00
gsi_private.h
gsi_reg.h net: ipa: use a separate pointer for adjusted GSI memory 2021-02-12 16:54:16 -08:00
gsi_trans.c
gsi_trans.h
ipa.h
ipa_clock.c net: ipa: use dev_err_probe() in ipa_clock.c 2021-02-12 16:54:17 -08:00
ipa_clock.h
ipa_cmd.c net: ipa: fix init header command validation 2021-03-20 18:53:41 -07:00
ipa_cmd.h
ipa_data-sc7180.c
ipa_data-sdm845.c
ipa_data.h
ipa_endpoint.c net: ipa: get rid of status size constraint 2021-02-06 14:57:19 -08:00
ipa_endpoint.h
ipa_gsi.c
ipa_gsi.h
ipa_interrupt.c
ipa_interrupt.h
ipa_main.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-02-16 17:51:13 -08:00
ipa_mem.c net: ipa: fix two format specifier errors 2021-02-02 08:48:15 -08:00
ipa_mem.h
ipa_modem.c
ipa_modem.h
ipa_qmi.c net: ipa: terminate message handler arrays 2021-03-13 14:25:27 -08:00
ipa_qmi.h
ipa_qmi_msg.c
ipa_qmi_msg.h
ipa_reg.c
ipa_reg.h net: ipa: avoid field overflow 2021-02-06 14:57:20 -08:00
ipa_smp2p.c
ipa_smp2p.h
ipa_table.c net: ipa: introduce ipa_table_hash_support() 2021-02-12 16:54:17 -08:00
ipa_table.h net: ipa: introduce ipa_table_hash_support() 2021-02-12 16:54:17 -08:00
ipa_uc.c
ipa_uc.h
ipa_version.h