From patchwork Thu Oct 5 20:39:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 114998 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp1003790qgn; Thu, 5 Oct 2017 13:39:56 -0700 (PDT) X-Google-Smtp-Source: AOwi7QCSVjD+2pavHZkpZP9jSMhfmeTuj4FB8NExp4BpWrfKTX9BCUT5XdMuIdYTPACqI+i66nU5 X-Received: by 10.99.117.65 with SMTP id f1mr22748122pgn.104.1507235996546; Thu, 05 Oct 2017 13:39:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507235996; cv=none; d=google.com; s=arc-20160816; b=ALFBWXCQRjsYERD2xqkDv7MHVSsengzGdDPZ2bNx3cY5b3eLRMJXgHREKr2frmVNHo 6TAGe2VhXvKxBLDI+4Oj2rlhX7DDE6FuZGuC3ev1k8htbYmQieFaQEH11bOTG+TI04ZO nev+W4qqF/9nExmmVhXYs5RLUF++/tuaGqDvGAs1wf0CqXSxMYTJhcBoRPqW+ZLkLVhr shsifU7scmpDszkM2bBU9FVfXJnyAqyNDkPBJ/6ecSi4fWD3Zd/U9ySOlS6kEYTLs3EY kPnQLZisRNncYy7x2hyHbdWUmcAe2RxmErijHSOMrHXjhRuNQniB6ClLxdF+HgT5gBs6 mt+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=am6Q4vC1O3jcTKS7Lx+yhcPQlysv2t1fPKme0oDntTk=; b=ZSstJ/79sEcM6ztD6N4+FH/eM8ubwv2Mtb14ooEa7WzuQYy2FU6h4IyOUWonf7qBa/ EnUa/JEfTl27u7yWZ48bQP3GuSbY+P/VTcoQl1fUcgnV0Hre36EL+MP4EZ5FkPtKJJbv 9HVRXGGpBn/sFuLSBQeX0hJaZe95GpsHethbDUoT2QoHLAcQyj/Ig2cB7JQeZStpEDhC BVo+dMaYgcduVtVHnqYIAks6ZdcpF58nIlq4NZ5vhZmlnqLJ/ZejkPWGMc4h2QLXg0QT SDVj8MxdjCvdcrgoP7RRdARr2VEcr5EuuiHT5RIr+s3OYAuBIomVSJXZ4DXhjJAK9KV6 2Vyw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-spi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-spi-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v30si10159073pgn.569.2017.10.05.13.39.56; Thu, 05 Oct 2017 13:39:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-spi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-spi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-spi-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751381AbdJEUjz (ORCPT + 1 other); Thu, 5 Oct 2017 16:39:55 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:60348 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751350AbdJEUjz (ORCPT ); Thu, 5 Oct 2017 16:39:55 -0400 Received: from wuerfel.lan ([95.208.190.237]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.145]) with ESMTPA (Nemesis) id 0MBCTt-1e8Dp53NzR-00ACQx; Thu, 05 Oct 2017 22:39:50 +0200 From: Arnd Bergmann To: Mark Brown Cc: Arnd Bergmann , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] [SUBMITTED 20171005] spi: spreadtrum adi: add hwspinlock dependency Date: Thu, 5 Oct 2017 22:39:37 +0200 Message-Id: <20171005203949.3227075-1-ar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mfJSBckWS8K9TE3HTe2A== Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org With CONFIG_HWSPINLOCK=m, the new driver fails to link as a built-in driver: drivers/spi/spi-sprd-adi.o: In function `sprd_adi_remove': spi-sprd-adi.c:(.text+0x18): undefined reference to `hwspin_lock_free' drivers/spi/spi-sprd-adi.o: In function `sprd_adi_probe': spi-sprd-adi.c:(.text+0xfc): undefined reference to `of_hwspin_lock_get_id' spi-sprd-adi.c:(.text+0x108): undefined reference to `hwspin_lock_request_specific' spi-sprd-adi.c:(.text+0x268): undefined reference to `hwspin_lock_free' This adds a hard Kconfig dependency on HWSPINLOCK for the !COMPILE_TEST case, and allows compile-testing with HWSPINLOCK completely disabled, which will then rely on the existing stub API. Fixes: 7e2903cb91df ("spi: Add ADI driver for Spreadtrum platform") Signed-off-by: Arnd Bergmann --- drivers/spi/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.9.0 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index 2d9601e3a6ae..ed532ac2eebe 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -625,6 +625,7 @@ config SPI_SIRF config SPI_SPRD_ADI tristate "Spreadtrum ADI controller" depends on ARCH_SPRD || COMPILE_TEST + depends on HWSPINLOCK || (COMPILE_TEST && !HWSPINLOCK) help ADI driver based on SPI for Spreadtrum SoCs.