Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp961455rwe; Thu, 25 Aug 2022 12:24:51 -0700 (PDT) X-Google-Smtp-Source: AA6agR4TFj1n4zJvNknenKXw2ewbEdnCmcC8Gv3awkFXH2df9BvskKYJ6CoEGpVzbIYZ4zv3rVCo X-Received: by 2002:a05:6402:5489:b0:43b:b935:db37 with SMTP id fg9-20020a056402548900b0043bb935db37mr4447397edb.347.1661455491228; Thu, 25 Aug 2022 12:24:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661455491; cv=none; d=google.com; s=arc-20160816; b=dEcHghgMHhvqgxUrc4TRxYGFxzvkFK7/PQIllwe3KdZA0by3s9C61UWYBzNY8Vj7D+ WoPSGypljKyBsOtmBakTFCbCudgo9n5UKKj567yF81w7054gU+V11uyRrOHpkrgXi89y MiZLXHNO3kIvmvV+1nUPBhR1n5UcPou3byqOewVsBAY9y+LsO2BtEmozmNaCRNVjbjK6 O3ks+Je1Ew46f9Y8W95ijC0BpBq1WXAXBJ9iwsYPXXGOYEVlSlaU5Fkz2UyhoFJ6Okn9 dwLLFtUrXaOPiKwpC1QDXIm4keYmavuoAcrwktPBRIv8DNywig+F037gG7jm1T47mWzz slJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=z4qoliKuPk7+O9oYkaTLlNxlnc9ATeZ6S3IJ7mNy0Zo=; b=Rf++Wao2K6gTWa9nq3HXz/l/b4cYXay0bYOS/g2O7XgnK9c9laM3/y8d2A2KpCf/U3 6nyTph3TUBtHfNXN4KgGfzHKPPcV1/FJtXB6ilDLjSy8Nqa4W/KxLSO8ZngoI8AmnN4p lyF2Ojklul67seOoaLHq5Bl50QXY9TX7iAnVnxO6gM52uOulLhwOCXlEo2bqLOiHtWNl +0+o9sW7DeRyQG0s1NoiFYJQJzGdhhOM+Wxh4OjN5DOaWEwkyiNcspq8/Qu4QKQMwae8 Zkbys0nk8vaJS7BfuIYrIZPTFVTMIeoF1V2lOcre0XsVQ8H68TfYJEOMq7xLScX6oRzp XE1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="bmW/hgbW"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i20-20020a1709064fd400b0073d6859e5c7si22139ejw.373.2022.08.25.12.24.24; Thu, 25 Aug 2022 12:24:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="bmW/hgbW"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242802AbiHYSqa (ORCPT + 99 others); Thu, 25 Aug 2022 14:46:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240732AbiHYSqX (ORCPT ); Thu, 25 Aug 2022 14:46:23 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAB4D6B157 for ; Thu, 25 Aug 2022 11:46:22 -0700 (PDT) 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?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= To: Matthias Brugger Cc: khilman@baylibre.com, AngeloGioacchino Del Regno , roger.lu@mediatek.com, =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= , 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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(-) -- 2.37.2