Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp706007rdb; Sun, 18 Feb 2024 08:02:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW5gjVC9RQPIPboqjltbWCQztKPqNfFBCTYuiHqPswUS6aizVKXJJln3FiHmgxoAOG5wzs9awh3z3A/NxarwHEOJm+BD9VNmKH7sgI4SQ== X-Google-Smtp-Source: AGHT+IGrnOS6FZhjarfevuCVu1Y4ZX8yjdrKD+nrfUnrWVyO63lNGQLqGgk3sy2RnWctynaXKAUl X-Received: by 2002:a17:903:2282:b0:1db:b5be:5981 with SMTP id b2-20020a170903228200b001dbb5be5981mr7248708plh.31.1708272153846; Sun, 18 Feb 2024 08:02:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708272153; cv=pass; d=google.com; s=arc-20160816; b=OiuDyketa3l+zXRnrjcOzO5kVnvzoIpbwZ9MayApdwya3m2AV3eFgM2/PjkDF9X6tn trH9GStlN6W0Ry7L4r3s1TWX1I7mOoNKBvIX+9RjYnwa8vA9eZOxsOl3+jsf+ITUFIdX nhMjbfLDgKAEz3nNN4hVHVdhcEQ0+jsKLFne5lXVppfS3ZtqXPa3zHA+ffdCnTjqACiB 9SsVTgmcy/7JCFc6JOQkmDdyCy3F7PY6IySjyjfccrzFnwJVaEFm35oBMGOUAQvelPjt hvzOVNlg4AtatYPuXFDJnXVoPVbYGFzrGi9xPX3NnhWm1FGTijRsPp/4tCQ6H67ym9O8 CyyA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:cc:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=AtYTDa1Lhl+B0ws7FJiPos9NKcWS7fkqx50JTS9on7c=; fh=3HRcGKTVkFSJNC1VK935ue27gIc0wyr6vtx9+ncKZXs=; b=gAxOGlQJTdduJF9DJyS19YlvePJV9EF7v4oB9eJ/PGds5yaGVj2fZ1jZri9VX8nmyV Q/55R3W5q1q97bX49RK5qzwlLIPTK6TTkzWp2jSncj1IF6O2d0XgIDgqruqV0yn23Kpf ZS6hZpXmmCJtkr1ZqEIRGb9rupEXpQdxsAtJRKLQIpeVWuV0Xcyzu+uq0831zdfQX42o Wh2hjyhPvpOAbyH51anrGDwA0TbjMXyzi5za7lZeldNrAagc/qo/DCFj8oVWKreF8Ht3 +kAlfmgFN2ecukbsyU0CJI44CMUl7kzKiB1kFJ94RzX1OfSNCYAyHZwqQ1OkbbQEM2EI shYQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PFTFXikO; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-70436-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70436-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id n123-20020a632781000000b005dcbba492aasi3163713pgn.736.2024.02.18.08.02.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Feb 2024 08:02:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70436-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PFTFXikO; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-70436-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70436-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id DB00EB20DF4 for ; Sun, 18 Feb 2024 16:02:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 542AF6D1B7; Sun, 18 Feb 2024 16:02:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="PFTFXikO" Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (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 074661E534; Sun, 18 Feb 2024 16:02:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708272143; cv=none; b=RaJ7G1JZsXJJCVyE/CSuiEW5ffzOhDM1Hj0hSkDhdKaKjrlaoaQf2ZKTBhDOvEuupzASJRBkstGxOe3+ghgNi23PL/0lYhJis1TzscE6Jhjw5t9hoExsi0B16TAhcACZKpQF6rGvjkFJylcNZXmHBnM3mcRHjaY2inuYAlHwtWA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708272143; c=relaxed/simple; bh=jFXeP5DOfUwj9Q0l5p1vPN6O8Sx+lmqQycqgTdkil48=; h=Message-ID:Date:MIME-Version:Cc:Subject:To:References:From: In-Reply-To:Content-Type; b=SeJwcTcFQBRnLDSXCLVmXCH3aaxEwqNnL9rjfHM2/xGp/tkLjRU2y94/lY8jpy/xN1C7AbX05GFeKUD2hjELfUiZi30ewz9Qpbfaxdi1s2sj9W0GKeut+0m7z7aQhLnlNhGoUzTArHANJQCJlOUXyGbCYwt2ktvAKoBU1lqdCaU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=PFTFXikO; arc=none smtp.client-ip=209.85.208.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-563d32ee33aso3101134a12.2; Sun, 18 Feb 2024 08:02:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708272140; x=1708876940; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:cc:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=AtYTDa1Lhl+B0ws7FJiPos9NKcWS7fkqx50JTS9on7c=; b=PFTFXikOwYkyIQI9l2HpsbdSf3hd1lGiYX84uC6dH6fNMLB/k9MgVP4iN68kTPrDMD 6DqCF251KvwWVWHJP621v07OWd9mJ/PtwxKcqARoPNbwRkHmuBFEwAX2kuU6UNFGI7Ss +94wsNdIc66P9Ge52OGxUm6G/A3ValdbzNPR789BjHloBMr9+mFZ1XVwFybUTprAwmjQ W6OTFP5FJQbgK/K2JVVeVssW5XLNYTGLlOFje/jelrIGzZ+62ZhzfbwEkRppmW3dH8/V JiLh+4bs+W+/LEtYX5t9K4vEPj0/y/w0eptMdxtEwz62u/AxfMrg2RWitjvKv+T8Z1/V AM1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708272140; x=1708876940; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:cc:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=AtYTDa1Lhl+B0ws7FJiPos9NKcWS7fkqx50JTS9on7c=; b=u4hoBp6pWvkhpaQ4FOFy4ymZuTx0rPr31o3ZEyTxwXsHxW63iBp5CAejGFB7jvHQ4K dF/xQvStyp17aARvfsaNFweXlHC4YdgIFZXGhZ/uJ/ChGb85/yaz/qqxMDxbI5AQBGDE H1HEbgrp51ld2EyC5lPIVu36Aqc1LcgBDubNwYhWgTpgkqYqDgJaX11eKN3uwGzixvOq DXRawojt9kOm/YcaQ2kkJbgJMyw+ixI7SJY3bBN2m921NIw7MIrB/4AE46w5TpO+64UH ipvxqsEaEOZX3CeBBK21ExdxUxJaJrPxbfypDRvcesC274z/8ENNLo9iXaOR1DhWP5UN M10Q== X-Forwarded-Encrypted: i=1; AJvYcCUDnN0i9IAR5XWA1HU/ZM1vyAdFfVrlKgO0785A0EyqkUMOjCJekxMtPZeFFRzZtM3wg4U+ADwBMifDqsWrd8MHNuB8LZJGT5TEJB2joULVPChHkNTIotIRAnyl6qOwKX4AUQrSJQx6+j4= X-Gm-Message-State: AOJu0YzSMGrJblmFvlW2PPdgXFGs6DY38KQKv4sv9EabbsAlH/Y8hJkU sLJ+hsNyrMGHZwbkXoWl25WbODBGzBh4+vRB2oTWRw66kcGicLfl X-Received: by 2002:a17:906:859:b0:a3b:7216:3091 with SMTP id f25-20020a170906085900b00a3b72163091mr6887010ejd.20.1708272139847; Sun, 18 Feb 2024 08:02:19 -0800 (PST) Received: from [192.168.0.28] (cable-178-148-234-71.dynamic.sbb.rs. [178.148.234.71]) by smtp.gmail.com with ESMTPSA id th8-20020a1709078e0800b00a3daadea882sm2024675ejc.56.2024.02.18.08.02.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 18 Feb 2024 08:02:19 -0800 (PST) Message-ID: Date: Sun, 18 Feb 2024 17:02:17 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: savicaleksa83@gmail.com, Jack Doan , Jean Delvare , linux-kernel@vger.kernel.org Subject: Re: [PATCH] hwmon: (aquacomputer_d5next) Set fan to direct PWM mode when writing value To: Guenter Roeck , linux-hwmon@vger.kernel.org References: <20240217181536.344386-1-savicaleksa83@gmail.com> <718f0dd9-121a-4885-8976-aaafa7c44f2d@roeck-us.net> Content-Language: en-US From: Aleksa Savic In-Reply-To: <718f0dd9-121a-4885-8976-aaafa7c44f2d@roeck-us.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 2024-02-17 19:24:50 GMT+01:00, Guenter Roeck wrote: > > You can require that a device is in manual mode when setting pwm > modes, and return an error if it isn't. However, changing the mode > to manual automatically when a pwm value is written is not acceptable. > > Guenter > Right, thanks. Will implement pwm_enable, then. Aleksa