From patchwork Tue Oct 30 10:22:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 10661265 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A923414E2 for ; Tue, 30 Oct 2018 16:17:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 921E62876B for ; Tue, 30 Oct 2018 16:17:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 85E7D29809; Tue, 30 Oct 2018 16:17:02 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE 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 DFEF02876B for ; Tue, 30 Oct 2018 16:17:01 +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: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:In-Reply-To: References:List-Owner; bh=7np2Gk9LoVZ0B18vN+y4AutH5GoTQxrEkY4R9TJh8mk=; b=bD3 fkPbPEs63sIj0CNa3QPBIsNy2cJuCjAMt4frva2ARKWyEf4/4jFqI7A9+OD9pHFahsrDuYNh46aRV yixQMHn3h+MNzEF1gsGEq2uUf5P5sdGYQWWHUUoSSP/JTjOed9xOrPtyYszxoxLK4Ezs+meYlf9jm Ao6y/NynutpYHzzeX/SlFXUa7Dbi66BA/G2k8SL46iVlQ4//guowIPTmnn8d2ZdWvsy4gl62S8V8U NWyW/rvi1U0uihupyCnCG8DpfT4ovuyAoy1V/PyEfElYsVmucSNRVjoMCGSCc6zZ47phZx7wefvl0 DFhOfd6jfVeXblc3EyhUy64yuGYYxCQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gHWhQ-0003D4-L6; Tue, 30 Oct 2018 16:17:00 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gHW6J-0004rY-6Q for linux-amlogic@lists.infradead.org; Tue, 30 Oct 2018 15:39:00 +0000 Received: by mail-wm1-x344.google.com with SMTP id y140-v6so12173554wmd.0 for ; Tue, 30 Oct 2018 08:38:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=oHwIOK7vIbf8oBgNpA5M3ssBE6xZbJhaQZte0SX7dJY=; b=dTvWtyGfcRGsjg45ofZvMDsGjExJcwVldyixbJZz7ylClXxhf2FOTJGt7Ht2Ma2GGQ uhFlNmr8iUN5cy46WwYryFsqjOieNRSgmijG6uuPmZxhd6MiS2udF9Pjze1t8kRkN9G1 Z47Ha9KVCMcU1ZxTQttY6bY/PUQ9+R6nTzl3/LSnctDQu+VxrZwo6FtwRWdy6cB33QM0 nA3hQWnt4V0mUYAqaMohkGO1d83c1fiP1jUQFKG41FaipW24suon6dk3FpfduiPeiTMq 8SVdZzUDA8PynxG8yvUVouXSjOmFCA61ylpAY0uSyvsfUyDlY/FGMyxqr5/2zKsCCedc ECqg== 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; bh=oHwIOK7vIbf8oBgNpA5M3ssBE6xZbJhaQZte0SX7dJY=; b=IwLM3yucHJwBEBTv51LetwxZVaQtqI8H5rPyUS2TWi+l11Ejj/uhkBHQwfWdZTjxCG CQRU8RNB7RNpfj7f8yziAvbxo0ELG3Oi/c5kre7PKeR/bmjYg6yjgdj64YMWh6sbH4K0 /2y6VBtXULeu9y/GdgficN8t3QSPgOH13Ul0mBoZZOIGjlQ4WBNC9g2dOEnbQI4JRmRz P9FeSZDQleMufxyPY9tikS/v3zD0ooZbvTm5I7lRaus/WEfakhtCu8GUICBj7XPpIJl2 7gSQwL8198klvEtZLsE21MAl0wA+2GRzp1Hj5Ypa9a6W7/oH51V/33RunmoFJStpbIH6 m8AQ== X-Gm-Message-State: AGRZ1gLUWz4D1AnE/QPGOwm6qI1Yw7okSzndSkzG2QrWlL4J/WhiZY8p 2l6j44BUs4nwiSg0xDojwvJk9wyRkHY= X-Google-Smtp-Source: AJdET5d8/qvWP7/zsVK7xQ/K/LnNtYOYBVbWE6VN2J4V+9SNwOQlUqchRsqCPzQrnuO+WldS05yUrQ== X-Received: by 2002:a1c:c4f:: with SMTP id 76-v6mr1237463wmm.6.1540894958712; Tue, 30 Oct 2018 03:22:38 -0700 (PDT) Received: from boomer.baylibre.local ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id i204-v6sm26638614wmd.28.2018.10.30.03.22.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 30 Oct 2018 03:22:38 -0700 (PDT) From: Jerome Brunet To: Srinivas Kandagatla , Kevin Hilman , Carlo Caione Subject: [PATCH 0/4] nvmem: meson: efuse updates Date: Tue, 30 Oct 2018 11:22:27 +0100 Message-Id: <20181030102231.4851-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.17.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181030_083839_259515_92E543C8 X-CRM114-Status: GOOD ( 10.65 ) 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: linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jerome Brunet 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 The first change of this patchset just adds add error message in case of failure. If there is problem with the secure monitor, the SM_EFUSE_USER_MAX call will be first one to fail so it is better if it give us a clue to help debugging, instead af silently failing. Next this series adds the peripheral clock missing in this driver. Like many other device in amlogic's SoC, the efuse requires a peripheral clock to operate. ATM, the clock controller has CLK_IGNORE_UNUSED on this clock and we have been lucky enough that the bootloader left the clock enabled At some point, we would like to remove those CLK_IGNORE_UNUSED, so if a driver needs a clock, it needs to properly claim it. Srinivas, Kevin, The dts change needs to land before the actual driver change, to avoid breaking the efuse on our users. If there an agreement on this series, Kevin could you provide a tag to Srinivas ? Cheers Jerome Jerome Brunet (4): nvmem: meson-efuse: add error message on user_max failure. nvmem: meson-efuse: bindings: add peripheral clock arm64: dts: meson-gx: add efuse pclk nvmem: meson-efuse: add peripheral clock .../bindings/nvmem/amlogic-efuse.txt | 3 ++ arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 4 +++ arch/arm64/boot/dts/amlogic/meson-gxl.dtsi | 4 +++ drivers/nvmem/meson-efuse.c | 29 ++++++++++++++++++- 4 files changed, 39 insertions(+), 1 deletion(-)