From patchwork Thu Aug 25 18:46:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= X-Patchwork-Id: 12955136 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AD219ECAA25 for ; Thu, 25 Aug 2022 18:47:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :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=kOeUOkiI0TOWD84SDsKi7BXU7DycAbEeo7YuUJiR23s=; b=cFYojx/v/FC8q8 04S/Mt/DqPI2skARynPYIj7/fKRwTskYKJNF7mBU+6TvsKuVj4zCDB3VvCsIoZoJ8BUzRGhsmxMzr zBdtZjdSKyVemD2US2ZQpX41bySEJaO8AIhKjAWeHSPE6hMYjKRfWSHa1N+AG3v38Jl1rz0cyE0K+ pe9KF2Ti9ahTuo/UyB7trpqVKm+8xie777q55H/doWiUeOurQYPVr3oHJjCuIK9MSRE7qpgSn7t2Y X6x4jWtpVbYSChE73JD9cXC7DP/zlN20GFG5fBcVPxt5iTRy4FfNFsNxZebTlXylKOFj0kjUziNRb AL/cLrzLdJ+Uch+yS75w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oRHsC-001bOA-5r; Thu, 25 Aug 2022 18:46:36 +0000 Received: from madras.collabora.co.uk ([2a00:1098:0:82:1000:25:2eeb:e5ab]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oRHs7-001aOX-Tu; Thu, 25 Aug 2022 18:46:33 +0000 Received: from notapiano.myfiosgateway.com (unknown [70.107.189.129]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madras.collabora.co.uk (Postfix) with ESMTPSA id C11FC6601EAE; Thu, 25 Aug 2022 19:46:19 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1661453180; bh=ka9fMNk12qWUmYRvUYmT0kwBU/Dlq4CaIy2p/uhHjm4=; h=From:To:Cc:Subject:Date:From; b=bmW/hgbWwVdazDtl8iMAUKjAGE/IrmLsObyiHyXQiAcK+GaNvVR3QbDRjxdDBiJCD EX/VAKC1hZzfqjCLEosB5/ZzxFRoZ87Lc/71B8ejD/8WWIuQaW3Bq2TRdqcApLsOK9 bvAS37vJFOvoG+gkuyUzzCmfbEIOxRxBzQW6YjSrzw1chQxG+guGbI70znyqA3yDh0 DINAKsMqkqwAmLS4pD/gCLgvSr5ZsADin/HME3zhsyNH8fShjJX9F+fY45MRAf1/p/ RaVwsVHZ3IIfGzJ3bP7rfCJDpvvUOJeMv33h/7/Cnybh4uR6dB4wJmRK1hZnU2TsND kVOZMipttieRg== From: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= To: Matthias Brugger Cc: khilman@baylibre.com, AngeloGioacchino Del Regno , roger.lu@mediatek.com, =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2 0/2] soc: mediatek: Cleanups for MediaTek SVS driver Date: Thu, 25 Aug 2022 14:46:14 -0400 Message-Id: <20220825184616.2118870-1-nfraprado@collabora.com> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220825_114632_129107_C3092EC8 X-CRM114-Status: UNSURE ( 7.52 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This is a cleanup-only series for the mtk-svs driver, enhancing the usage of standard Linux macros for bitfields for better readability and register set/get safety, switches to devm_ functions variants where possible and other general cleanups, getting this driver in a better overall shape. v1: https://lore.kernel.org/all/20220726141653.177948-1-angelogioacchino.delregno@collabora.com Changes in v2: - Rebased to not rely on mt8195 and mt8186 support, as they haven't been merged yet AngeloGioacchino Del Regno (2): soc: mediatek: mtk-svs: Commonize t-calibration-data fuse array read soc: mediatek: mtk-svs: Use bitfield access macros where possible drivers/soc/mediatek/mtk-svs.c | 260 ++++++++++++++++++++------------- 1 file changed, 160 insertions(+), 100 deletions(-)