From patchwork Wed Mar 22 11:16:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 73368 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2288072wrt; Wed, 22 Mar 2023 04:33:23 -0700 (PDT) X-Google-Smtp-Source: AK7set/inlpJ/W/CyewXVi9TMMm1Uk2XwEXXCZLTLXb4m0ewwZfYlWvHjOtfzte6UjgkBTYIm7jE X-Received: by 2002:a05:6a20:779f:b0:db:528b:4cac with SMTP id c31-20020a056a20779f00b000db528b4cacmr1622869pzg.62.1679484802767; Wed, 22 Mar 2023 04:33:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679484802; cv=none; d=google.com; s=arc-20160816; b=Dr2pq8tMjh1+C/UZXbRy6ZHovvi+feQT3IPuXtLw3W9d27yKan1FUq852oogpdcMn1 yPKcdlLawkvgWm4Q4J0/qlEzfHlNK8NJpQlf8K6hWKf76ZBT9+qKv5ywkfMAfMYdD2qm ARHGZ+/tTZn0ha3JWT6iziBOnMiLTR9rN5VNxpTLHUesA42Qoyw99brvJ7q7hoZFicQg WgUGU4QQZX6/xF8Pgqcf0QU2y3hoD/N+Ie+N11kOu0KHZIEB6dWIdWARTYi1bpjTBQ08 O92si7kljUmNPSyIfVLBUaeIVq7rR1+azE/0S+9rEHApA+uzFUfA8Eed0VZD7duR7YH8 l/iQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=t0p6AgRn3pHYkSwjNJK7iQMLTURcE/R8cFtfH6NQCU4=; b=Ylf7Y8hkbw55DLspgPUwVIg21taOPeN+CbA7wAoN8TzUFEcATH8AsdTZGDGcpdog+p vP5ylYcfg1HDHml0TIemF6UN2JSXIhLF01RZ6LuXXxob6o7CPhXkz0SeCDKj91n4ykHy FzyOhb8hVXVl+/mI8geAo6WkLzmnpJQbIWhjPlp50xKLoj/czzz3TFG6By/24YVF0SB4 ZAS+vkf/bbQ83mhZ2J9VGLcdwMCsa+dA9W7S9Xv7NVigvXDKj1GCsi2uXdHRc43mSsYN TOxRnfhZQSCWuTY3KP2MvWCCZd2VVomevnMZsoALu6iMwJZgeI20XkjesB7Drjy7myJB mvCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uXPsblQ4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v19-20020a056a00149300b0062936e90dd0si1564871pfu.174.2023.03.22.04.33.10; Wed, 22 Mar 2023 04:33:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uXPsblQ4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230291AbjCVLQr (ORCPT + 99 others); Wed, 22 Mar 2023 07:16:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229620AbjCVLQq (ORCPT ); Wed, 22 Mar 2023 07:16:46 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09D934DE3A; Wed, 22 Mar 2023 04:16:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id BA53FB81C25; Wed, 22 Mar 2023 11:16:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A1F67C433EF; Wed, 22 Mar 2023 11:16:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679483802; bh=yqsVMZSFa5CHTkdXUK3mvMZizZ/0pAtToVHTZzG7V08=; h=From:To:Cc:Subject:Date:From; b=uXPsblQ4hdJoTyh88MHVK7pYObNP7FBOJMP85AqLZOstUZf0ZWR0iEcDMmh+ZI6s7 63UZTr5VUAqE8w7PYUVM0h9YSCuFqg3V39BUvUfvHt2bFi3b1ZcjgAckvHaRgYWFVp RQlI86egWs9j3QNWSRr2TQB0MTkLFThXz2TsdAOfHiRksgRIh2gEzdq2saMQ6zSieo klpbpF3WrlotXM6fACaL6MF+sAh96zMo/+I4EOlOg2FZQE6WjrECjNxzhjFChpT5bF LX6l/XmQqk+q+mFzb/nutpb7RJIErp2HGcGLrOh0ynw3P4K1IgcES8fsOjS5rh2F4j z8mtJpdzXUxKA== From: Arnd Bergmann To: Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz , Neeraj Sanjay Kale , =?utf-8?q?Ilpo_J=C3=A4rvine?= =?utf-8?q?n?= Cc: Arnd Bergmann , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] Bluetooth: NXP: select CONFIG_CRC8 Date: Wed, 22 Mar 2023 12:16:27 +0100 Message-Id: <20230322111636.1028838-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761067456509958443?= X-GMAIL-MSGID: =?utf-8?q?1761067456509958443?= From: Arnd Bergmann The driver needs both CRC32 and CRC8 to link correctly: ld.lld: error: undefined symbol: crc8_populate_msb >>> referenced by btnxpuart.c >>> drivers/bluetooth/btnxpuart.o:(nxp_serdev_probe) in archive vmlinux.a ld.lld: error: undefined symbol: crc8 >>> referenced by btnxpuart.c >>> drivers/bluetooth/btnxpuart.o:(nxp_send_ack) in archive vmlinux.a Fixes: 3e662aa4453a ("Bluetooth: NXP: Add protocol support for NXP Bluetooth chipsets") Signed-off-by: Arnd Bergmann Reviewed-by: Ilpo Järvinen --- drivers/bluetooth/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/bluetooth/Kconfig b/drivers/bluetooth/Kconfig index 0703bdd44140..f84322d375de 100644 --- a/drivers/bluetooth/Kconfig +++ b/drivers/bluetooth/Kconfig @@ -469,6 +469,7 @@ config BT_NXPUART tristate "NXP protocol support" depends on SERIAL_DEV_BUS select CRC32 + select CRC8 help NXP is serial driver required for NXP Bluetooth devices with UART interface.