From patchwork Sat Oct 22 12:56:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 532 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp1193046wrr; Sat, 22 Oct 2022 05:57:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4M6BaRrvws6dvygyBFEsIhZ/fbuBYl41U7gcgEg9+9LbMyVrSUJExdi8/f/DmzUeiaY6cW X-Received: by 2002:a05:6402:51c6:b0:45d:50ef:1142 with SMTP id r6-20020a05640251c600b0045d50ef1142mr22452528edd.259.1666443471411; Sat, 22 Oct 2022 05:57:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666443471; cv=none; d=google.com; s=arc-20160816; b=yHBW/osEH2HXFyjzxKqJttuz7eNsatgL9bssTAhRkwRITiwpxvD247+x0RIqWp7e8D lYN8wnzWkXzVhXmaHAxswUI4Iiw8Kh0lSWFX9m4gf9PydoX72BrfkQ47nYdtkw98wk6S ayXNbDrPT9qPbJ3/q2aEP1UYM7PLwhskTXCfLK108QB3bp8hzufFlQ17esMXX8fP33ll kmWK+PMqiHPwLstfK+l8uhk52vzHWc/wUuvhhdfhWDuVTml42DvNUjbOIwRp8XCc8w3P rjTJbvSxjzXS/y1I1OcjnKUr7R0eDgD76KaHz9IEhkbKbM27z250xNpH+GH7cO0bQVP6 lvQQ== 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=527bxp9h/jqaP6bCJj6qmuI38uc+kV9+b2ns/HCfZM8=; b=clSbf292rDkGVyfM/3lIXN71Dsn6jNT7pMDr5YtKsxj1gLrZMlDFFFSDSekCEiPXuR PwD+niT/Fgf4SEKWJm8wniTql3pHQ3kYEkGVfJPqx0h2ogj4F8egRtr3WJ74Ks1f8QIq FFFFDd6YI/KjfCAS8Zg1/USUEwPmqPcPDMJDNpTijncDvYJSvsMoOIBzjj4QAJD8jaSa iI4Rw9srbtUxPwWHB3xXqQR9BObS07K0iTUhZykH9dN4PW/iS52QY209BWey3iSQQY/c F72WqMXEKexEuJ1qs1Z6+vIOFGBnO2c8qoilM/t6wb9fYrohpqUyRM4rrnCdN499lpHX +TAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=G6ngoJy0; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y3-20020a170906524300b0078d148dafa3si19420773ejm.329.2022.10.22.05.57.27; Sat, 22 Oct 2022 05:57: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=@gmail.com header.s=20210112 header.b=G6ngoJy0; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229796AbiJVM5M (ORCPT + 99 others); Sat, 22 Oct 2022 08:57:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229767AbiJVM5K (ORCPT ); Sat, 22 Oct 2022 08:57:10 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F01AC22B38C; Sat, 22 Oct 2022 05:57:09 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id z97so15312982ede.8; Sat, 22 Oct 2022 05:57:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=527bxp9h/jqaP6bCJj6qmuI38uc+kV9+b2ns/HCfZM8=; b=G6ngoJy0awMrBKvuw1h47s/rl8H0wPcmh4spCh/kMBZ2e+bHcBagxeNSzrhqVQ/Pjs rnuLGgZngqVL3/yMAcsXbNVLv/jbPRxXIbVjhHa7NZvZrjQig3Z+3n8QDqM90QSmxhu9 4V8PtdORXhxasdAEVTH34Us65ggHldjnH2dntHIJw+22G3urNR6pe9GOz7LlfzTwLTSp g7G4jO/w1EtMPExUDLI7RBWZqUW76/FSJTF7KTPll83EqU/oVBhInJb3eULY7340wwpy 2EWrIJYxfXtivs2mCCCjwtBVbYeSXcO34yw8gPsQc+k9MA2lSjpL19jo54OIUVl1xjPs jEmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=527bxp9h/jqaP6bCJj6qmuI38uc+kV9+b2ns/HCfZM8=; b=kIAg3B50B9+sVFUSMSZXdZClRaOBeB4RCKi9/Z9YOBaJVQUzRlEtmgYc1dCu5YMW2V G/90IKu3HvIO+Mf05nMOrx1BEoi4OUpBTbD/mpXb55zQHd9JtiySrCtvyuES3zYP+79W e1OsHD+myoMpRjZPM7qJ2U4r2clgrcSF1YcYz6N678KX4o7n0z33BRGrBkavZqpVt4lv nmh0ciYkn0n/s78tCeQHMJDIa+rgOiqLpQXae7STvG6+YWhon35axpZl5qtN8W68pxT1 cpgAXcDgQoQbqrsQKtDi366ZiFxvdgP+ZdDOIzvnYgGEWiM6XvfnWZqLCFlEWEFmHS0Y ZH0A== X-Gm-Message-State: ACrzQf0h7EdfiKovQ742Nlzkh67CuPImuZkecHOY9DUONJGkTAAmGKrx aMZvRd6UQspNeyLvruMmGos= X-Received: by 2002:a05:6402:3223:b0:461:8635:e5c with SMTP id g35-20020a056402322300b0046186350e5cmr1580007eda.303.1666443428117; Sat, 22 Oct 2022 05:57:08 -0700 (PDT) Received: from localhost.localdomain (93-42-70-134.ip85.fastwebnet.it. [93.42.70.134]) by smtp.googlemail.com with ESMTPSA id t29-20020a056402241d00b0045ce419ecffsm15173970eda.58.2022.10.22.05.57.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Oct 2022 05:57:07 -0700 (PDT) From: Christian Marangi To: Amit Kucheria , Thara Gopinath , Andy Gross , Bjorn Andersson , Konrad Dybcio , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Christian Marangi Subject: [PATCH v3 0/3] thermal: qcom: tsens: small fixup for debugfs Date: Sat, 22 Oct 2022 14:56:54 +0200 Message-Id: <20221022125657.22530-1-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747392629961248054?= X-GMAIL-MSGID: =?utf-8?q?1747392629961248054?= This is a small series to fixup some bug in how tsens init debufs. The first patch just handle situation where tsens fails to register and debugfs are getting registred anyway. When tsens is tried to reprobe debugs will print a warning as the directory are already there. The second patch is a fixup for wrong version when the ancient VER_0 is used. The third patch is a rework of debugfs structure moving version in the tsens istance instead of ignoring any other tsens istance if it will ever be the case in the future of having multiple tsens instance with different version. It's just futureproof on it's own and also removed one additional check. changes v3: - remove extra space from patch 1 - split patch 2 to 2 different patch - patch 3 rework wrong debugfs structure changes v2: - Changed sob name to new one. (the resend was actually v2 but i totally forgot that I sent it as v2 with the sob name fixed... but everything should be good now...) Christian Marangi (3): thermal: qcom: tsens: init debugfs only with successful probe thermal: qcom: tsens: fix wrong version id dbg_version_show thermal: qcom: tsens: rework debugfs file structure drivers/thermal/qcom/tsens.c | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-)