Message ID | 20230511192220.7523-1-wsa+renesas@sang-engineering.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp4614413vqo; Thu, 11 May 2023 12:25:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4ZjNxje5JZljDxYKR20k6/INzjN5XVDn9RbEDXkh8EhyeQZEHIgQZ4uuFXP4u38qH+pcvr X-Received: by 2002:a17:90a:c306:b0:250:c118:cb4f with SMTP id g6-20020a17090ac30600b00250c118cb4fmr8518058pjt.34.1683833125091; Thu, 11 May 2023 12:25:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683833125; cv=none; d=google.com; s=arc-20160816; b=mLUTQApD71sdMGJNn3H6DTRbyeUtBGJWsA6fM8UQbkQQULhCULRs7cKrZgpnv+2QWO H0SKV24iigPkKLyDPGzPtPI7ZfZ/0ho7Y/yNy1MAfRGgchq1lJV9Y1omu6zpfal63dIw PI20BY5WMw4fxeBfo/c0Asu975zj+y5sOKo3WkEqINEH/G4guSV4zvMKxNeHUTZwC8p2 7tocwSMeQABH2ITfsOA4SV91ewRPkl4xMUMigIjLJcRv9YkpE7A4d2nI6gu11o8cotQb 8QYoUUrHPmQVHa1kyaDHoyc4vlbtEHY7WfR/UBdL7AMeOvfMFPwYEU0p+LxyH+RqL6Nj U1uw== 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=plj6OWemddqySAo9CRRJ+RIFpwaZctIubnsHLtSvvJ4=; b=CTWQgUPuE76aV9O+ze2R/0UUOQXsR25YUNIhcpApxtNyLT4fu5W0KNkNSq7ROkqsvB Q11v8ml6Lh8bzbVdcInIX35t3Ix0s/QySNaFFSIpwbVR4lUPSMq3SPKJgh2n+TmVEIus tytP2EXKDSDZX2koAoMkKD2eF4697lu1zDAkW6mV7hw6YCys5wjwdMKLIgiOdzgfAWdu QXSfWMnE2UfItXcZUC6+S2GV5DL1E0xHy+pj1i2WRCAso5juAJGvETaL60Kxdyaadsd/ cL8p3v3qKjWOVBEjO1Xczio13Um8q1fC5ICfEKSmdL0RKTAD6l+E+mMFU3ZyykEL0iNz 567Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@sang-engineering.com header.s=k1 header.b="iSoNI/ug"; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nv1-20020a17090b1b4100b0024e3527e8f1si23795799pjb.60.2023.05.11.12.25.11; Thu, 11 May 2023 12:25:25 -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=fail (test mode) header.i=@sang-engineering.com header.s=k1 header.b="iSoNI/ug"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239129AbjEKTWc (ORCPT <rfc822;peekingduck44@gmail.com> + 99 others); Thu, 11 May 2023 15:22:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231633AbjEKTWa (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 11 May 2023 15:22:30 -0400 Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DFA87DA9 for <linux-kernel@vger.kernel.org>; Thu, 11 May 2023 12:22:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=sang-engineering.com; h= from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=k1; bh=RRZQj4nBkrR9NFE2zBxx97pW/jO S3vBpJjNEk+Dn3bQ=; b=iSoNI/ugjVZSCt5R6vpeJcW9IBZNFNezQl8HV6RUVLR bTR8ZuESPkrOru5I2k08zLvOmUgqwAP3yOOixL7rrJDacDPt2JFqIRDiC1M13ltL 3TCy1I44/scISC/4qtzT8STS/JUCBN0bnl1MK2HycCA/quhRne0COqHfu6MMD4C4 = Received: (qmail 2935127 invoked from network); 11 May 2023 21:22:27 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 11 May 2023 21:22:27 +0200 X-UD-Smtp-Session: l3s3148p1@CR606G/7XuAujnsI From: Wolfram Sang <wsa+renesas@sang-engineering.com> To: linux-renesas-soc@vger.kernel.org Cc: Wolfram Sang <wsa+renesas@sang-engineering.com>, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH RFT v3 0/3] drivers/thermal/rcar_gen3_thermal: add Gen4 fuse support Date: Thu, 11 May 2023 21:22:16 +0200 Message-Id: <20230511192220.7523-1-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765627002870528755?= X-GMAIL-MSGID: =?utf-8?q?1765627002870528755?= |
Series |
drivers/thermal/rcar_gen3_thermal: add Gen4 fuse support
|
|
Message
Wolfram Sang
May 11, 2023, 7:22 p.m. UTC
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. Changes since RFT v2: * In patch 3, I mixed up the PTAT and THCODE registers. Fixed now. (Thanks, Shimoda-san!) * patches are rebased to 6.4-rc1 They have been tested on R-Car H3 ES2.0 and M3-N against regressions. Actual testing of the new fuses on Gen4 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? A branch for testing can be found here: git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git renesas/for-thermal 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(-)
Comments
Hello Wolfram-san, > From: Wolfram Sang, Sent: Friday, May 12, 2023 4:22 AM > > 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. > > Changes since RFT v2: > * In patch 3, I mixed up the PTAT and THCODE registers. Fixed now. > (Thanks, Shimoda-san!) > * patches are rebased to 6.4-rc1 > > They have been tested on R-Car H3 ES2.0 and M3-N against regressions. > Actual testing of the new fuses on Gen4 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? > A branch for testing can be found here: > git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git renesas/for-thermal > > Looking forward to other review comments, too, of course. Thank you for the patches! I checked the patches. So: Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> And, I tested on R-Car H3 ES3.0 and R-Car S4 and it worked. So, Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Best regards, Yoshihiro Shimoda > 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(-) > > -- > 2.35.1
> Thank you for the patches! > I checked the patches. So: > > Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> > > And, I tested on R-Car H3 ES3.0 and R-Car S4 and it worked. So, > > Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Awesome, thank you Shimoda-san!
On 12/05/2023 14:39, Wolfram Sang wrote: > >> Thank you for the patches! >> I checked the patches. So: >> >> Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> >> >> And, I tested on R-Car H3 ES3.0 and R-Car S4 and it worked. So, >> >> Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> > > Awesome, thank you Shimoda-san! Applied, thanks