From mboxrd@z Thu Jan 1 00:00:00 1970 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 9B3C5C41513 for ; Thu, 3 Aug 2023 13:09:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230302AbjHCNJS (ORCPT ); Thu, 3 Aug 2023 09:09:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235536AbjHCNIw (ORCPT ); Thu, 3 Aug 2023 09:08:52 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE9354EEA for ; Thu, 3 Aug 2023 06:07:19 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-3fe2bc27029so9702445e9.3 for ; Thu, 03 Aug 2023 06:07:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691067975; x=1691672775; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=9mOCS+sHZ9OYDGZ+r3hB6DlHjCqnsHVrb+8LC3PIeLA=; b=HE5cLu5IQzavix5nfCpMgiTvxlkyxUkJMK2jRocYbQCy2PnqnMsWC3NSRidxgGEo0Z KPr2l2DORIsicGEc50tzC0oyaABYDx17j3uWFBv4+3IaqCPlTQCY1XqHWr+mtjS/dwiI 87HGWsIPQhQam5qqhPQfU6FWMSFq4VNCiE5Kr8gRN/TtAqeUzIIoWsMDgVhQZHu5l/a1 j6env9DlHacs3vnUMw5kEOFYk0C/GYCCvWszU+N1FwTPt0+nyTFfwbyekbT6oAV76hXt 7KNQVELTpfmy7jUH5CT6hxN7m/OaR0u714bmUl75x9Xr7HRETy3n85PKhjPQBpr3f8r+ Hoqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691067975; x=1691672775; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=9mOCS+sHZ9OYDGZ+r3hB6DlHjCqnsHVrb+8LC3PIeLA=; b=CLsbBV09GwWAEXN31n7V6fMzVc4iA0BYuYkEwLMg2XUNu37ZY5CxrurNnWO8KhG8kT +meAG3SeKU3rR0PkOOsh6N5skKU1qFDOLnrJfAvfT5X3DzBYBlv3zSouOlbvlQMQVf1Y RRNRuDMnWs245U0JqwOFsKLR97Qpf40aQ7Q5n8m+N/ZFMDP6w4RWa2ML4QxoSTsU3zjq pUbX42H4u/WQkY/Z+YFU/tLho5MbKUWu/pHcoW2hRBNtZfz1pPkae4UFHSDcBS42yZ6G KhiJnyUAZCcpumxgiOANvnEgc497nWbB0xo4j54z/fDDVjjsgtobRQ3sxxuCHvDlH4gt bOIw== X-Gm-Message-State: ABy/qLZCkmkNdAhY9Rr/i9LxW0ErqQX6WdQqlEX6cuh92iB4XAYY+o8v IpI/fCjO5THNnMR567nXd/y+1w== X-Google-Smtp-Source: APBJJlG80gudR9LU0/3zq7coND676L3IK21c5s2iw2yBqdiqauL+wz/tpF8p/JXxwsJxejMflM9+qg== X-Received: by 2002:a05:600c:2048:b0:3fe:2bb1:11ba with SMTP id p8-20020a05600c204800b003fe2bb111bamr6423174wmg.27.1691067974611; Thu, 03 Aug 2023 06:06:14 -0700 (PDT) Received: from [192.168.10.46] (146725694.box.freepro.com. [130.180.211.218]) by smtp.googlemail.com with ESMTPSA id w11-20020a05600c014b00b003fc16ee2864sm4221824wmm.48.2023.08.03.06.06.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Aug 2023 06:06:14 -0700 (PDT) Message-ID: <5c93d78d-835e-c740-280b-9d76456aaeda@linaro.org> Date: Thu, 3 Aug 2023 15:06:13 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v3 1/8] thermal: core: Add mechanism for connecting trips with driver data Content-Language: en-US To: "Rafael J. Wysocki" Cc: "Rafael J. Wysocki" , Linux ACPI , LKML , Linux PM , Michal Wilczynski , Zhang Rui , Srinivas Pandruvada References: <13318886.uLZWGnKmhe@kreacher> <12254967.O9o76ZdvQC@kreacher> <4501957.LvFx2qVVIh@kreacher> <2d0315d4-35b4-84db-4dcb-c9528abad825@linaro.org> From: Daniel Lezcano In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org On 02/08/2023 18:48, Rafael J. Wysocki wrote: [ ... ] >> Let me check if I can do something on top of your series to move it in >> the ACPI driver. > > It doesn't need to be on top of my series, so if you have an idea, > please just let me know what it is. > > It can't be entirely in the ACPI driver AFAICS, though, because > trips[i] need to be modified on updates and they belong to the core. > Hence, the driver needs some help from the core to get to them. It > can be something like "this is my trip tag and please give me the > address of the trip matching it" or similar, but it is needed, because > the driver has to assume that the trip indices used by it initially > may change. May be I'm missing something but driver_ref does not seems to be used except when assigning it, no? -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog