lkml.org 
[lkml]   [2021]   [Jan]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.4 67/92] usb: gadget: select CONFIG_CRC32
    Date
    From: Arnd Bergmann <arnd@arndb.de>

    commit d7889c2020e08caab0d7e36e947f642d91015bd0 upstream.

    Without crc32 support, this driver fails to link:

    arm-linux-gnueabi-ld: drivers/usb/gadget/function/f_eem.o: in function `eem_unwrap':
    f_eem.c:(.text+0x11cc): undefined reference to `crc32_le'
    arm-linux-gnueabi-ld: drivers/usb/gadget/function/f_ncm.o:f_ncm.c:(.text+0x1e40):
    more undefined references to `crc32_le' follow

    Fixes: 6d3865f9d41f ("usb: gadget: NCM: Add transmit multi-frame.")
    Signed-off-by: Arnd Bergmann <arnd@arndb.de>
    Cc: stable <stable@vger.kernel.org>
    Link: https://lore.kernel.org/r/20210103214224.1996535-1-arnd@kernel.org
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    drivers/usb/gadget/Kconfig | 2 ++
    1 file changed, 2 insertions(+)

    --- a/drivers/usb/gadget/Kconfig
    +++ b/drivers/usb/gadget/Kconfig
    @@ -265,6 +265,7 @@ config USB_CONFIGFS_NCM
    depends on NET
    select USB_U_ETHER
    select USB_F_NCM
    + select CRC32
    help
    NCM is an advanced protocol for Ethernet encapsulation, allows
    grouping of several ethernet frames into one USB transfer and
    @@ -314,6 +315,7 @@ config USB_CONFIGFS_EEM
    depends on NET
    select USB_U_ETHER
    select USB_F_EEM
    + select CRC32
    help
    CDC EEM is a newer USB standard that is somewhat simpler than CDC ECM
    and therefore can be supported by more hardware. Technically ECM and

    \
     
     \ /
      Last update: 2021-01-11 14:36    [W:5.515 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site