canbus: isotp: Enable TX padding by default if RX padding is required

It would be strange to enforce padding for other bus participants but not
use it yourself. This default suggests the likely proper usage, although
it is not a hard dependency

Signed-off-by: Grant Ramsay <gramsay@enphaseenergy.com>
This commit is contained in:
Grant Ramsay 2023-07-21 13:43:44 +12:00 committed by Fabio Baltieri
commit e98fa4e590

View file

@ -60,6 +60,7 @@ config ISOTP_REQUIRE_RX_PADDING
config ISOTP_ENABLE_TX_PADDING config ISOTP_ENABLE_TX_PADDING
bool "Padding for transmitted messages" bool "Padding for transmitted messages"
default y if ISOTP_REQUIRE_RX_PADDING
help help
Add padding bytes 0xCC (as recommended by Bosch) if the PDU payload Add padding bytes 0xCC (as recommended by Bosch) if the PDU payload
does not fit exactly into the CAN frame. does not fit exactly into the CAN frame.