• Alex Elder's avatar
    net: ipa: support more endpoints · 07abde54
    Alex Elder authored
    Increase the number of endpoints supported by the driver to 36,
    which IPA v5.0 supports.  This makes it impossible to check at build
    time whether the supported number is too big to fit within the
    (5-bit) PACKET_INIT destination endpoint field.  Instead, convert
    the build time check to compare against what fits in 8 bits.
    
    Add a check in ipa_endpoint_config() to also ensure the hardware
    reports an endpoint count that's in the expected range.  Just
    open-code 32 as the limit (the PACKET_INIT field mask is not
    available where we'd want to use it).
    Signed-off-by: default avatarAlex Elder <elder@linaro.org>
    Reviewed-by: default avatarLeon Romanovsky <leonro@nvidia.com>
    Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    07abde54
ipa_cmd.c 20.5 KB