From patchwork Sat Feb 11 08:47:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 13136961 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BAC33C61DA4 for ; Sat, 11 Feb 2023 08:47:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229800AbjBKIrx (ORCPT ); Sat, 11 Feb 2023 03:47:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229477AbjBKIrw (ORCPT ); Sat, 11 Feb 2023 03:47:52 -0500 Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C40C9619A for ; Sat, 11 Feb 2023 00:47:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=sang-engineering.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=k1; bh=jGE2RgQsU7h1/v4M/O803N5y1s7 nrcKlQODyN9uwt/Q=; b=rGiasa7ydrxZvQakIBYKltb64J4K0tAO40kwqA4WBaG 6xCc5nAj3z/lYBYzsnrRuPe4cG3PkQwwM+0+u5Wz9HaT6iB79uAyTssySf5OtWhB kqvnzlaOzE2qTMukaQPLdaYyMjrz9ejA1ob2NGD6EBjtQfTxE+pMVHTRzHHXeZRY = Received: (qmail 2337503 invoked from network); 11 Feb 2023 09:47:29 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 11 Feb 2023 09:47:29 +0100 X-UD-Smtp-Session: l3s3148p1@4q4Aqmj0Bpcujntl From: Wolfram Sang To: linux-renesas-soc@vger.kernel.org Cc: Yoshihiro Shimoda , Wolfram Sang , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH RFT 0/3] drivers/thermal/rcar_gen3_thermal: add Gen4 fuse support Date: Sat, 11 Feb 2023 09:47:24 +0100 Message-Id: <20230211084728.27832-1-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org R-Car Gen4 has the fuse registers at different locations and with different names, but with the same purpose. So, first refactor IP core differences into a 'info' struct, then add the fuse_read callback to it. Patches are based on top of: [PATCH v2 0/3] drivers/thermal/rcar_gen3_thermal: Fix device initialization [PATCH 0/2] thermal: Add support for R-Car V4H They have been tested on R-Car H3 ES2.0 and M3-N against regressions. Actual testing of the new fuses on S4-8 still needs to be done because I don't have access to such HW. @Shimoda-san: maybe the BSP team or Test team can test these patches? Looking forward to other review comments, too, of course. Happy hacking, Wolfram Wolfram Sang (3): drivers/thermal/rcar_gen3_thermal: introduce 'info' structure drivers/thermal/rcar_gen3_thermal: refactor reading fuses into seprarate function drivers/thermal/rcar_gen3_thermal: add reading fuses for Gen4 drivers/thermal/rcar_gen3_thermal.c | 141 ++++++++++++++++++++-------- 1 file changed, 102 insertions(+), 39 deletions(-) Reviewed-by: Niklas Söderlund