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 B661BC636CC for ; Thu, 16 Feb 2023 09:12:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230034AbjBPJMO (ORCPT ); Thu, 16 Feb 2023 04:12:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229739AbjBPJML (ORCPT ); Thu, 16 Feb 2023 04:12:11 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85D173B3CB for ; Thu, 16 Feb 2023 01:11:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1676538682; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/okeBeRsb4OotsLW2a18goWoRP3o4W4D8CZab0OhEhg=; b=Jo9tphMBHtXdt5gjWmaDLiKBQK+jhw7z8DDJkxDXXIswBxtjUuvtv5N7sUCx8fieqJxwal B1urZ2YDtfDuuwmB9qYqATKj+r4Bzlazk4TU5pI5xjwJh8EMgl+wM7sKA9wYXU4wDGkZmc ZTbk4Uy6n+pXA0TOhNGjG5sZF9EAmnc= Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-632-daS80nYyNM2KEm-aW0M18w-1; Thu, 16 Feb 2023 04:11:21 -0500 X-MC-Unique: daS80nYyNM2KEm-aW0M18w-1 Received: by mail-ed1-f70.google.com with SMTP id w7-20020a05640234c700b004ad6e399b73so188766edc.10 for ; Thu, 16 Feb 2023 01:11:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/okeBeRsb4OotsLW2a18goWoRP3o4W4D8CZab0OhEhg=; b=ntdNr4Yn9IFOpIyEw8R+W9ru19evhqUqxR4IksgFyiv91IeCD3gQ3PY0SMGBgBPdT/ d3eoKskfeD3Wf0+2eoNwt0eROSJkaexBnZfbVRzSQxWQYCwAVrolseJH2XfL0XtCHIKx BBFWgu24JyhFKfBjiF53wMLnSd1uOUQ7bvtWkjGJ0MgIBgGm1tCRb4k0V1Wi1EJu/v1Y uyWKvNwGHT0QRln3Vmy5ZbTkRIWrhzK4o6m0PESjvsS42QsvZcv61jpl4urxq7Af3lfi GIYHMIBNEGur4MA+zl31WAeajmOHRFTvvvZX9/FGnG1R1TBJKvRBzq6mAU3gmfVtGK+q N1gw== X-Gm-Message-State: AO0yUKVSBGSZOLafbCDeUoFz38p+zl6IJF49rJErvc5G/YhIaA117kxL KaBESqXeA+bCBj3yK8uL4RnPPW8MUZ9xuC5iMTIt77bguIQ2Xen5t4i8xo7q0ZOwtk/Q0I2gJwk FsHbLzc37pkNuv/rtfGMozadz X-Received: by 2002:aa7:d34e:0:b0:4ac:d2bc:32f9 with SMTP id m14-20020aa7d34e000000b004acd2bc32f9mr4605258edr.4.1676538680564; Thu, 16 Feb 2023 01:11:20 -0800 (PST) X-Google-Smtp-Source: AK7set+aC12lXhGWdqfz+x2ivny9MrkR9240xDnd1qIFSZpK6v8evidTu3DaP/z5Re+Jvc6Eaizy5g== X-Received: by 2002:aa7:d34e:0:b0:4ac:d2bc:32f9 with SMTP id m14-20020aa7d34e000000b004acd2bc32f9mr4605247edr.4.1676538680334; Thu, 16 Feb 2023 01:11:20 -0800 (PST) Received: from ?IPV6:2001:1c00:c32:7800:5bfa:a036:83f0:f9ec? (2001-1c00-0c32-7800-5bfa-a036-83f0-f9ec.cable.dynamic.v6.ziggo.nl. [2001:1c00:c32:7800:5bfa:a036:83f0:f9ec]) by smtp.gmail.com with ESMTPSA id u21-20020a17090657d500b007c11e5ac250sm543493ejr.91.2023.02.16.01.11.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Feb 2023 01:11:19 -0800 (PST) Message-ID: Date: Thu, 16 Feb 2023 10:11:19 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: acerhdf thermal question Content-Language: en-US, nl From: Hans de Goede To: Daniel Lezcano , Peter Kaestle , Mark Gross , Paul Gortmaker Cc: "open list:ACER ASPIRE ONE TEMPERATURE AND FAN DRIVER" , Linux Kernel Mailing List References: <59c24c3d-eb1e-cdee-3d2e-aa1dda5a96fe@linaro.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 2/16/23 10:08, Hans de Goede wrote: > Hi Daniel, > > On 2/16/23 09:57, Daniel Lezcano wrote: >> >> Hi, >> >> the polling interval is specified and modified via a kernel module parameter [1] >> >> The value is used to change the polling interval of the thermal zone, implying that is accessing the thermal zone device structure internals directly [2] >> >> In real use case, is the interval changed at runtime? Or just when the module is loaded? If the latter, the interval can be passed to the thermal zone at init time without doing a polling change rate after the thermal zone started. In this case, we can remove the polling_delay_jiffies change in the code and fix the structure leakage in this driver. > > I believe this very likely only is used at module load-time. > So the changes you suggest are fine with me. > > I have added Paul Gortmaker to the Cc, Paul is the last person > to have done any real (*) work on acerhfd AFAICT. > > Paul any objections against making the acerhdf.interval parameter > something which only works when set at boot / module load time > and removing the ability to change it at runtime ? p.s. I see now that Peter Kaestle is also still active in acking / reviewing acerhfd changes. So lets wait for Peter's input on this too. Regards, Hans > *) Real as in not related to keeping it aligned with the thermal > framework/core