Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1286890lqh; Mon, 6 May 2024 03:06:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXn85UjA7WUeW2uDyog/HxReJRm9dSYP7iDdDVBW2vVSawy+fxg/3g4tBX/bhVrMuy1sr2wbDIvcbgaXHDl+jUwTNIuvxIzeC9RM84h4w== X-Google-Smtp-Source: AGHT+IGiy7qm3XxkZicXsbuESLu4ntauS2eqbbx0w8g59XxYurXnfb+hc4wWdhu+hRHKbvRhk4LN X-Received: by 2002:a05:6830:2006:b0:6f0:5e31:3240 with SMTP id e6-20020a056830200600b006f05e313240mr2173796otp.13.1714989961038; Mon, 06 May 2024 03:06:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714989961; cv=pass; d=google.com; s=arc-20160816; b=STKvVNg6OMp9T7xYa4zG4qLUlSd8AgrNKh2HZ+hm8mf9/dguYko1aVSl+7GLgXLERF tEb9sGIzb8sktW9XYKhVwlxu9tGOBJU6WGlA3SLuJF9RF1ouzEUjlBq2Oux7vRN9ErIb +T3634z370Se7vv3jB1850COsBUDR+r75b1P6Z/D4Vn6mG5313t2JTnQepRYuruMZU9E i5nFu81E3flEJ1E8qlFtywW2jupwyMwDXckgQAh/nOmhRNBiiMourc3GBcPfWSpdG2s2 aLVwfi+8jSrosEW+0/Rv/JhPkfIgzYbE6MIXtBx6pgot2yAYyzvMYL4L7W7lONylvWuP 9i4A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=EHVAhxJUUskPmEprZXUYYP2CVf27DfLU1+UviOggadA=; fh=qk2uF3Z0Fhvmj5A4qWoFsQHHB8Pt/z1oyY0aiXhcEV4=; b=hcjJf73sNA3IqBNHubtyTJx4492YMvBpLZHo7bZxg6meOovEeHKm1hgkOwLfpnBDL/ 21Jor7TKV8wTnclBomqKEZbg40rOA3GJYa20Ae2GQ9e+sFc3sKucEHmksQTio8+owyqa fhel4IqN7WQpYFlg2T8g7VGTh11qBnWXDW1W6DAMlSf0fRumvOlSBFDOY47PtiP0L22h OY/e4wflbSG+2VKaw3Ggd2ptrtHq3lj3HG4PodsumtDrPQptxFb1iMaMYhR0PylvGgnw gUdoonizPHsfkoGgSPkyhuotyniYVL33BaC2PW5epY5ZGMXVNnHYAGYw3s35COdNEK6U wwzA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b=Px6qogDZ; arc=pass (i=1 spf=pass spfdomain=9elements.com dkim=pass dkdomain=9elements.com dmarc=pass fromdomain=9elements.com); spf=pass (google.com: domain of linux-kernel+bounces-169639-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169639-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=9elements.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id ca19-20020a056a02069300b005dbe2220330si8963443pgb.171.2024.05.06.03.06.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 03:06:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169639-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b=Px6qogDZ; arc=pass (i=1 spf=pass spfdomain=9elements.com dkim=pass dkdomain=9elements.com dmarc=pass fromdomain=9elements.com); spf=pass (google.com: domain of linux-kernel+bounces-169639-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169639-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=9elements.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 87588284902 for ; Mon, 6 May 2024 10:06:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2C4E21428F0; Mon, 6 May 2024 10:05:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=9elements.com header.i=@9elements.com header.b="Px6qogDZ" Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A3B974205F for ; Mon, 6 May 2024 10:05:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714989955; cv=none; b=a/VKrLZg6N0ftMJbvcn1MuoTs9TwOlM9vCJWZSPFZx+umc1mQVYz0i03kPA3AlZ+nKb1MsfNJZTP8P7OuUrvT5sbF9tBisdt/sHueH+Odzo8GSjvHo6tnsJUFVxfZD38eQ/ABJD9kKDNNq98u5eptMOwolI4be+perpmUjjnjbY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714989955; c=relaxed/simple; bh=EHVAhxJUUskPmEprZXUYYP2CVf27DfLU1+UviOggadA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Kji1trTn42oUQeYz7RkCZa7ULoVZYbBr/j5KAUmdFxAwNWqeQxkTEIi7TZn6QqPoW71Kwcf8gWVBrczqxKRnFM55EPFGBx7MoUAuL1YVfGeZ7Qt1AYiyX1fFLvhfrIQBZ27jwh/KTRSR45s0dPI5dERLNdmHGHvSXycPynErOks= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=9elements.com; spf=pass smtp.mailfrom=9elements.com; dkim=pass (2048-bit key) header.d=9elements.com header.i=@9elements.com header.b=Px6qogDZ; arc=none smtp.client-ip=209.85.214.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=9elements.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=9elements.com Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-1eca195a7c8so12228545ad.2 for ; Mon, 06 May 2024 03:05:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=9elements.com; s=google; t=1714989952; x=1715594752; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=EHVAhxJUUskPmEprZXUYYP2CVf27DfLU1+UviOggadA=; b=Px6qogDZ74sIj76MnfPZEftB4i9CXxmbjl5Kai4YZc0EMZ4ZUlAY5NJdzZp1qpscCF DcAPfjSdBXEhfXaoCNBktYMzY1NPjvitKd2f5K1EHu69a4qF/x24gueo/qRT6mZQm4Mx g/3Im7IWCRo6YRR2RbYaLf9XhiYDE1b2kKqM9xu7RI5bGMLIYcnWO0Tt2jr5oLJsDl80 gtrBQjHBliIE6b2vh7dNvngGrTX4NfbiaBzmfx+o0aK2TLi5XhuSgf4zB9UkNiV1u8QY UlqKXtsgHcaCHsCGP9C0a9D858+mTnh6FMZ855pdZdfK9VuMAgykIfjYpa+YUFHN3Rt0 rsGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714989952; x=1715594752; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=EHVAhxJUUskPmEprZXUYYP2CVf27DfLU1+UviOggadA=; b=H9jYJPRq2EW4FJwSXNQlzlW4GO4OGbi3ZnOQ0b1rM40rvB3z/SCuN0O8YeOlqD98IB lKrWc0Vqh2dy5cws2rEyGW/OG7Q6gj+DGia1PvQ7LIATsFcRGvVNgqMbeox+UOEd+cGt 3KD5gQsULjy+sYy1uiFT+eFMK6riuvT1kY9iDs4mGe/P7HSZI6wZGmCoEdjXdzELhbYu T/Y7x23XSzay46MHjq1YrcAof5FtdapMkxV3yLwFgxLXxtF3QJBXj5vxibfr9MrIJKdT sdHVrwI5O7oGthwg1sNmrET6uCIp3ePMsqXGCqrz+dMMGhElxa6iGJfQp1iOVK1lCnkx jB2g== X-Forwarded-Encrypted: i=1; AJvYcCVeL9M6GeR2eFFnKLHA4AbNfr1I40iGfVwbkuwLwc5HNia/Yc7XcAt294ePnMYfN6HkMDbjjyXmubGttl4HsO0/7GUyR7mb/r5ERZGE X-Gm-Message-State: AOJu0Yzzzm+QPqFG1yqwvo1RSLEYrGwDliM+JyOSzmczNNvp3xeWVKj0 gddZXuWP3nbp5YBUZmTqX31NXHX/T8geXgzcZLjB81Le6w5iweuB4IEmJ2emdII+yQCdY/kpmI0 WDq2eS4eZkkYT6dvOz9xipaz1Hb4XZtTRGFrKjg== X-Received: by 2002:a17:90a:c505:b0:2b4:36d7:b6b5 with SMTP id k5-20020a17090ac50500b002b436d7b6b5mr8376894pjt.34.1714989951948; Mon, 06 May 2024 03:05:51 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240416171720.2875916-1-naresh.solanki@9elements.com> <20240416171720.2875916-2-naresh.solanki@9elements.com> <1294114a-4509-4c8a-a0a2-39f6e5f83227@roeck-us.net> In-Reply-To: <1294114a-4509-4c8a-a0a2-39f6e5f83227@roeck-us.net> From: Naresh Solanki Date: Mon, 6 May 2024 15:35:40 +0530 Message-ID: Subject: Re: [PATCH 2/4] hwmon: (max6639) : Utilise pwm subsystem To: Guenter Roeck , Rob Herring Cc: krzysztof.kozlowski+dt@linaro.org, u.kleine-koenig@pengutronix.de, Jean Delvare , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pwm@vger.kernel.org Content-Type: text/plain; charset="UTF-8" +Rob Herring Hi Guenter, On Mon, 22 Apr 2024 at 18:07, Guenter Roeck wrote: > > On 4/22/24 03:39, Naresh Solanki wrote: > > Hi Guenter, > > > > On Wed, 17 Apr 2024 at 02:52, Guenter Roeck wrote: > >> > >> On Tue, Apr 16, 2024 at 10:47:15PM +0530, Naresh Solanki wrote: > >>> Utilise pwm subsystem for fan pwm handling > >>> > >>> Signed-off-by: Naresh Solanki > >> > >> That adds a lot of complexity to the driver. I am missing the benefits. > >> You are supposed to explain why you are making changes, not just that > >> you are making them. > >> > >> Why are you making those changes ? > > Sure. > > This is to align with fan-common.yml wherein chip pwm is exposed. > > I'll update commit message > > > > Adding lots of complexity to a driver just to have it match a yaml file ? > I'll want to see a use case. Explain why you need the pwm exposed. > "because the yaml file demands it" is not a use case. The idea behind this was that this approach provides flexibility with hardware routing i.e., PWM0 might be connected to Fan1 & vise versa instead of assuming 1:1 mapping. Regards, Naresh > > Guenter >