From patchwork Wed Aug 26 05:01:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chih-En Hsu X-Patchwork-Id: 11737185 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3031213B1 for ; Wed, 26 Aug 2020 05:02:59 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9898F2076C for ; Wed, 26 Aug 2020 05:02:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="LghLPXus"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="q5/UzGFS" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9898F2076C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=mediatek.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version: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=9ezS/oAkqr7VMjoCqDC5K7OTox4IdCK5/EtS8v2hEZk=; b=LghLPXusRwHQ7Nw3/cPOEm+NUM MbEZctwxtBQEpguDi3x3DkHhShwfCb+OgiC+PD4jM+G4v5rfDne0hZlL/W7tYABI85zAGPgN1rGdi G5YOg3hhnk+qWhC+jkZKuPyiqppiHT4EUTB3qvjd6kETxFTpc09Zvem1s31owuzB3Y4SgtiDwT6qt oG9HJOBZmq9zB7XPGc4rJ+qGHgiK4i8nZNF4uq1ktLTHexCIcUGBmmsZsvkgBw5PgG3Mwh5BI0Nsf 46J5pqehLBvxwtOpXXNQ79KLyXt9uuqJSXkRJe+onO8JgkI9qT9nGwJFrDkBKRm8ofx8+X8zjJjs4 l/MzJwSg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kAnaJ-0003Hx-RX; Wed, 26 Aug 2020 05:02:56 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kAnaG-0003HP-I3; Wed, 26 Aug 2020 05:02:53 +0000 X-UUID: 9f15e2c52d574fde88048b3b0e9e9bcb-20200825 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=LZGOQvRHmyPbkMCCtreR8dmbJ4eenqlWTBoYS5S2efk=; b=q5/UzGFS8IDHWqv7ZTbcytG6GHU/UYfqFov6nsigESfuP6EVSFZqkQ35ROKbY3G0C+8O5r5ExLYADlOS8T1klMB0tFhWXiWeM+VQJ0VWUmGBjEN7wk/ED2g9uxH7ttN78telveJoEwmv4A68qJvuKjXRlHiEjjuS0PLCiCQX9Zk=; X-UUID: 9f15e2c52d574fde88048b3b0e9e9bcb-20200825 Received: from mtkcas68.mediatek.inc [(172.29.94.19)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 2050919956; Tue, 25 Aug 2020 21:02:42 -0800 Received: from mtkmbs08n2.mediatek.inc (172.21.101.56) by MTKMBS62DR.mediatek.inc (172.29.94.18) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 25 Aug 2020 22:02:40 -0700 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 26 Aug 2020 13:02:37 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 26 Aug 2020 13:02:37 +0800 From: Chih-En Hsu To: Srinivas Kandagatla , Matthias Brugger Subject: [PATCH] nvmem: mtk-efuse: Remove EFUSE register write support Date: Wed, 26 Aug 2020 13:01:47 +0800 Message-ID: <20200826050145.24655-1-chih-en.hsu@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-TM-SNTS-SMTP: A565F47BB12026B9CCB9E1F23E2296055C55981834A4D25BEDBBF1B87718B3DB2000:8 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200826_010252_972170_0F47F47C X-CRM114-Status: GOOD ( 10.05 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 MIME_BASE64_TEXT RAW: Message text disguised using base64 encoding -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew-CT.Chen@mediatek.com, srv_heupstream@mediatek.com, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Chih-En Hsu , linux-arm-kernel@lists.infradead.org, Michael.Mei@mediatek.com Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org This patch is to remove function "mtk_reg_write" since Mediatek EFUSE hardware only supports read functionality for NVMEM consumers. Signed-off-by: Chih-En Hsu --- drivers/nvmem/mtk-efuse.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/drivers/nvmem/mtk-efuse.c b/drivers/nvmem/mtk-efuse.c index 856d9c3fc38e..6a537d959f14 100644 --- a/drivers/nvmem/mtk-efuse.c +++ b/drivers/nvmem/mtk-efuse.c @@ -28,19 +28,6 @@ static int mtk_reg_read(void *context, return 0; } -static int mtk_reg_write(void *context, - unsigned int reg, void *_val, size_t bytes) -{ - struct mtk_efuse_priv *priv = context; - u32 *val = _val; - int i = 0, words = bytes / 4; - - while (words--) - writel(*val++, priv->base + reg + (i++ * 4)); - - return 0; -} - static int mtk_efuse_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; @@ -61,7 +48,6 @@ static int mtk_efuse_probe(struct platform_device *pdev) econfig.stride = 4; econfig.word_size = 4; econfig.reg_read = mtk_reg_read; - econfig.reg_write = mtk_reg_write; econfig.size = resource_size(res); econfig.priv = priv; econfig.dev = dev;