From patchwork Thu Oct 5 12:11:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 114930 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp517482qgn; Thu, 5 Oct 2017 05:11:45 -0700 (PDT) X-Google-Smtp-Source: AOwi7QDzJValEYNuv1gUBUKgEHLIKGu7/jxVH0wvwuuFbaZGkgLJoKCvSfGDdYWBwplguxr67tbq X-Received: by 10.84.215.22 with SMTP id k22mr22361748pli.284.1507205505698; Thu, 05 Oct 2017 05:11:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507205505; cv=none; d=google.com; s=arc-20160816; b=ggnB1opSvD4nvMdaOhThD8CeT8rcTUvkQ1hpFDGVQTwoyCSbe/X5ITEOA8tT5XCfrm wXdeP0cS+y1FHBBZQ72BNDlHaN7dyAwaGEVRmXy/+S8AGzLCYxZh5kd+TLoJ/iZWYcyl 4Jk3vE6tjBXqapDf0ejy72qpxPSvobPnGhniNeZaZzecXX6T3Gtp9zszWciQUE6nF6ci pJf8hIP/qBQrOp/E/ipXfUzO/DdyvzXUeDdnPI/vOcZKr3lndmrKoBGUetkL6hHw9uBW KGxyYES+KjssR3u7KDk7cQQlx4HACmAd1P7e2FEyjsluqB6J8J24oBvZUH+BphEO7Zhr PDmw== 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=j/dVE9ZvV22tLBcO7YZBzSYYa+Hx0AsJE4nolZTBy5w=; b=IHa9LvNjZWiCDwiw+o46usCacHHDrZigZGakxoHaKzZfCaeY4WvkR/lMjYA2Ae5MK6 uAvpvylRMjFRgmkikXDaEfwil8q9IJkI5VSb/6K1Wq03kT6BQBpkxmgNQm5arx1Aa55I CzWYk8ZtjWrtvD+mvXXSNDVyuqELw3bZBqMZ83wT958u7KgoRFk4ep5SFAxV1c+GizWX tIAkUY8E3EiE0uu1EorI3XsPblayxzYfqFQ9ua1hrCTxiuRDgMYlXcvbhQQegDPwde7y i7Fs/m8cqYl/l5ebRJ8pcNavBFqKX+foIz/eikez4d82taZbXt+rHVJMNKAjdiPzgvey 4tug== 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 z33si9813579plb.646.2017.10.05.05.11.45; Thu, 05 Oct 2017 05:11:45 -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 S1751317AbdJEMLp (ORCPT + 1 other); Thu, 5 Oct 2017 08:11:45 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:54759 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751248AbdJEMLo (ORCPT ); Thu, 5 Oct 2017 08:11:44 -0400 Received: from wuerfel.lan ([95.208.190.237]) by mrelayeu.kundenserver.de (mreue001 [212.227.15.129]) with ESMTPA (Nemesis) id 0Mf6Az-1dgeIp0emP-00OY2K; Thu, 05 Oct 2017 14:11:34 +0200 From: Arnd Bergmann To: Mark Brown Cc: Baolin Wang , Arnd Bergmann , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] spi: spreadtrum adi: add hwspinlock dependency Date: Thu, 5 Oct 2017 14:11:17 +0200 Message-Id: <20171005121129.531046-1-arnd@arndb.de> X-Mailer: git-send-email 2.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ender: 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, which is the simplest solution since we don't care about building for the case without HWSPINLOCK. 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..e2bd86826d44 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 help ADI driver based on SPI for Spreadtrum SoCs.