Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp498942imn; Tue, 26 Jul 2022 01:19:35 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sRResX55ITU6uYyhQnYudX774d88uOtzGlftvLV18OhCAaC4lfkwdPvaxYX7hULMUen/Bd X-Received: by 2002:a17:907:2723:b0:72b:5a8a:f983 with SMTP id d3-20020a170907272300b0072b5a8af983mr13191105ejl.635.1658823575279; Tue, 26 Jul 2022 01:19:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658823575; cv=none; d=google.com; s=arc-20160816; b=cj2WM2DZp5b+1h5CSsbv/qiNUEKtoMPk0YG7ch0EIl40clhlZVNMZMMCuDyvDw8QrI sI1M8JnupPNzZ/zFDdZasBskNDLaQjTSaeb9fB9P530IhVj9aTUZaenkATtx9d12XAk9 LQy8PkKEO97zyDII0rYRSux75V7A/PQZVBhWBVbfYbl0ZV1KvJElrxK58mI94y/JgTGY GA5qPdYC8+veZZjro+vpGyudu+os7wY/z2D4LEPLDJlAq+GjzUuu5iI11d661W1R6fRj el5VkeueqhrWYbN33madDQGVTI4ofeyzyjPlRfbAhMvCdYPzZnymY2w1fUqXr1RVH+fE m4Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=4h2dh0G/cEjF26YEckFCcOTIMdSOAHpqCON3xojJWGY=; b=QLWK/6DCH3l8D2YWnBpgDQhuWR2nriXWuRpwEcgqs/HMouy7aBmI5W0pfECuBNVZeP D3qEPLXPwH87w+reJghTGSxaNUpPLwKUlu24O9wGhdvQECpB4xGz1uRosXeCpamf5MEc ySjZIaMkQMp36Zs2Xk1cEeFYWkFG3LFSZwdMZAI0pm3pvjYSg/pH/nleHnUG5O8WZcHm og2cW195a7wQclHOKAX2jNYxhCvw2ieEa9bHK/KWjEbGpu+L39B9zAQuOImsRE+KVN9t Okyp5qJwHlR3UjL2ESS14cr2zgZnqo64JbqG/XgF2CaRfW+cpzIWeHnq7p3N8ZiZOPSQ o9YA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lf10-20020a170906ae4a00b0072b2fe30745si12854023ejb.279.2022.07.26.01.19.08; Tue, 26 Jul 2022 01:19:35 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238313AbiGZHsF (ORCPT + 99 others); Tue, 26 Jul 2022 03:48:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237783AbiGZHsD (ORCPT ); Tue, 26 Jul 2022 03:48:03 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1DC91DFDA; Tue, 26 Jul 2022 00:48:02 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4CF721FB; Tue, 26 Jul 2022 00:48:02 -0700 (PDT) Received: from [10.57.13.197] (unknown [10.57.13.197]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 48D1F3F73B; Tue, 26 Jul 2022 00:48:00 -0700 (PDT) Message-ID: <500c8773-12e0-1e3a-fb11-4d7a5da11b71@arm.com> Date: Tue, 26 Jul 2022 08:47:57 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH v6 00/12] thermal OF rework Content-Language: en-US To: Daniel Lezcano , Daniel Lezcano Cc: rui.zhang@intel.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, khilman@baylibre.com, abailon@baylibre.com, rafael@kernel.org References: <20220722200007.1839356-1-daniel.lezcano@linexp.org> <1aa3ae56-84ae-8a96-7a52-3181c47dcb07@linaro.org> From: Lukasz Luba In-Reply-To: <1aa3ae56-84ae-8a96-7a52-3181c47dcb07@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_NONE 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 Hi Daniel, On 7/25/22 17:34, Daniel Lezcano wrote: > > Hi Rafael, > > On 22/07/2022 21:59, Daniel Lezcano wrote: >> The thermal framework initialization with the device tree appears to >> be complicated and hard to make it to evolve. >> >> It contains duplication of almost the same thermal generic structures >> and has an assymetric initialization making hard any kind of serious >> changes for more complex features. One of them is the multiple sensors >> support per thermal zone. >> >> In order to set the scene for the aforementioned feature with generic >> code, we need to cleanup and rework the device tree initialization. >> >> However this rework is not obvious because of the multiple components >> entering in the composition of a thermal zone and being initialized at >> different moments. For instance, a cooling device can be initialized >> before a sensor, so the thermal zones must exist before the cooling >> device as well as the sensor. This asynchronous initialization forces >> the thermal zone to be created with fake ops because they are >> mandotory and build a list of cooling devices which is used to lookup >> afterwards when the cooling device driver is registering itself. >> >> As there could be a large number of changes, this first series provide >> some steps forward for a simpler device tree initialization. >> >> More series for cleanup and code duplication removal will follow. >> >> Changelog: >> >>   - v6: >>      - Folded patches 8, 9, 10 >>      - Removed thermal_zone_get_trips() and thermal_zone_get_num_trips() >>      - Moved tz->ntrips => tz->num_trips changes into patch 11 to fix the >>        git bisecting >> > > I believe all the comments were addressed, is it fine if I merge this > series ? > > My apologies for being quiet, I was on holiday last week. Please don't wait for me, I'm still catching up with internal stuff. Based on your changelog I can see you've addressed my comments. Regards, Lukasz