From patchwork Wed Feb 28 14:41:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 10247843 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BBF3E60365 for ; Wed, 28 Feb 2018 14:54:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AB80D28CE7 for ; Wed, 28 Feb 2018 14:54:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A05A728CEB; Wed, 28 Feb 2018 14:54:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4010128CE7 for ; Wed, 28 Feb 2018 14:54:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=yRq52Bar+wobJI8Zf4DcqJlv/6U9BwjT9X/dndYhsYs=; b=hsYT2MAUKhxUy4HqvJb2/KI9ie X7NvIRVb/yK5nS/FA4tXQbO4zYOJ3XupIAH0uD9Na5qz8KNxgJY+r/mfRUQ/YNc63FCGebquo70zN pZMgRYdg4/cG8mQ5pMlRXyZZ+c89IWg3bXS0Q13KZEnB6apY0J0fM5/7Oz7xH8sjla6i5S/VBvRUR ZG3Uf9Ebj3JNOD+Lq64HiH63G1tEYYGFxgMd3SvCPUrTt4jH9lOHNm7JC9FHBYGpxvTE2M7f1r5ka PNtfswbFpB5P2qJLedzE6XBj2a7HjEDLCTUekjqfwnwQHsh9LNtTaaWXNo7YUv4LvYIrGqKQ5CCkG E9YunCNg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1er37M-0002EP-NX; Wed, 28 Feb 2018 14:54:04 +0000 Received: from mail-pl0-x241.google.com ([2607:f8b0:400e:c01::241]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1er2ve-0000EF-U7; Wed, 28 Feb 2018 14:42:13 +0000 Received: by mail-pl0-x241.google.com with SMTP id ay8-v6so1615403plb.4; Wed, 28 Feb 2018 06:41:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=pmagvljZEITiS5D6yhQo80RjbK7a4x+O5Ul84GnA6gg=; b=BqN6I2r3xnhKMoCS9Ezc4Qm+zOGQjTEpPkg1I/gbdVoIqJDg+dCZcHYgjTkP4I/0iz xu2ehIsi3TyeEjKjeWWiicjPhO+ZmZl5oinaEp00Zt7qOgvwzJd/MPX2rjlr+5pfFG7T KwMQMr03aZ7z4NiiITjs5l7nzJosAqFrVpFouVM5ZyUBWfT3bcJSUrPnhjkc1Y/GdgfK 3gJyeZF7ArKa1LjMLBd8kcdsfKZ4bGio0icG7hPLN3jEqaFvI47vRPg3rESEkM+Hx5gY ZKTs8HXL3XWDstdcv7CeB41W2RNKOnF/4XPq7ebeJ4HcONrWAqRKubVuVHNpRR+Ga2MJ tEWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=pmagvljZEITiS5D6yhQo80RjbK7a4x+O5Ul84GnA6gg=; b=rC2kyOqAnNTInP9OGnK8j6J9VP9qCUvwtDOvNsweF2bEQvmJBmDUhfKRj5TIqnQ7wY vLx9QWLCic+paZQxdU0K+ecfFXoZANDp26vRCniH5BuYQK5+xJi+oMM/KgPOwDnvrnki fO7CbRlCSmz/3+r8bCpW4VKme6456flCznw7xr04574RI2rJB3+TD67t8L9XmA5RSOUQ agSEdKVylrR2/m6VAfhhU8sQ2VotwIr+ZGmnbfXPibVd3VQsjV7z0fTcELhDuAtrfIBR 4HdDSAwRnPNRGuQVih4IClTMM1gT3zxz6jDk9BK0SWrMvdlWz3cSGIWO4VtiTkpYaCVl TXHw== X-Gm-Message-State: APf1xPBKZYMDstqKKxeNr6LwLsPQUZ0l34Xxv7ZT6yltHAwzrLYUSUfs 8La+mOgxGaIquFyfFuZ4tUs= X-Google-Smtp-Source: AH8x226ue2bk3d5o497aOVG/ngWD+85SxikvtT80kIJMVIGJMmB24gY4ZlVxQCawKOWw1frtwveSjQ== X-Received: by 2002:a17:902:904b:: with SMTP id w11-v6mr18321747plz.11.1519828907746; Wed, 28 Feb 2018 06:41:47 -0800 (PST) Received: from squirtle.westlake.spaceflightindustries.com ([173.226.206.194]) by smtp.gmail.com with ESMTPSA id h9sm3674312pgr.78.2018.02.28.06.41.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 28 Feb 2018 06:41:46 -0800 (PST) From: Andrey Smirnov To: Srinivas Kandagatla Subject: [PATCH v4 16/22] nvmem: meson-efuse: Do no gate COMPILE_TEST with MESON_SM Date: Wed, 28 Feb 2018 06:41:00 -0800 Message-Id: <20180228144106.16363-17-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180228144106.16363-1-andrew.smirnov@gmail.com> References: <20180228144106.16363-1-andrew.smirnov@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180228_064159_555188_9A99A3E7 X-CRM114-Status: GOOD ( 12.01 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Heiko Stuebner , linux-rockchip@lists.infradead.org, Andrey Smirnov , Kevin Hilman , linux-kernel@vger.kernel.org, Masahiro Yamada , linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Matthias Brugger , linux-amlogic@lists.infradead.org, Carlo Caione , cphealy@gmail.com MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Being able to build this driver when COMPILE_TEST is selected is still useful even when MESON_SM is not selected, since selecting this driver as a module and doing "make modules" will result in successful build and would detect trivial coding errors. For an example of type of errors that could be prevented see [1] and [2] [1] lkml.kernel.org/r/20171227225956.14442-12-andrew.smirnov@gmail.com [2] https://marc.info/?l=linux-arm-kernel&m=151461599104358&w=2 Cc: Srinivas Kandagatla Cc: Heiko Stuebner Cc: Masahiro Yamada Cc: Carlo Caione Cc: Kevin Hilman Cc: Matthias Brugger Cc: cphealy@gmail.com Cc: linux-kernel@vger.kernel.org Cc: linux-mediatek@lists.infradead.org Cc: linux-rockchip@lists.infradead.org Cc: linux-amlogic@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Andrey Smirnov --- drivers/nvmem/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvmem/Kconfig b/drivers/nvmem/Kconfig index ff505af064ba..42e84e1b2a26 100644 --- a/drivers/nvmem/Kconfig +++ b/drivers/nvmem/Kconfig @@ -147,7 +147,7 @@ config NVMEM_VF610_OCOTP config MESON_EFUSE tristate "Amlogic Meson GX eFuse Support" - depends on (ARCH_MESON || COMPILE_TEST) && MESON_SM + depends on (ARCH_MESON && MESON_SM) || COMPILE_TEST help This is a driver to retrieve specific values from the eFuse found on the Amlogic Meson GX SoCs.