Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp769644ybt; Wed, 1 Jul 2020 09:32:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtCFwhnlYQnoikpApnoo3QyYV35uqpuFDieA8s0lexqJNzn/7hzA78c4rthpxXMTKI7fO8 X-Received: by 2002:a17:906:fca4:: with SMTP id qw4mr22503954ejb.362.1593621147986; Wed, 01 Jul 2020 09:32:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593621147; cv=none; d=google.com; s=arc-20160816; b=eKNCxyrSiN/POgdWuZsnzzsqYpW+q4dInF0ReauqVnHCc/rRdokekkvqZOPTjHDowh oPX521msUdyS0z9JNGUzaYKiHy2ehfeJWi1KBIq1Q9NPdWfIJgF1UINFU1mx3wDkdhtw 4A17qQ9Z/YAydniJqVE+VZs5LTOTLWJEk2bfcl0j/qJTmXBCKb7VTD1hOxjKFFFB7L24 dmwzCwclXUzj5/XjnmlESXdkv4o7qqU51uPw6Pv1QEHvySbUVNHVb7JELEMpVDnNMBfK /HcO9l6zDXhakH1F2oH/DvdSXOUOLbSJAngemSHZEFba0Q8f0UFT65LwNVuplsAOhiGP gNiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=e8vy04L3oFjB+e/NYPznyy+y32Vl8W+XrBMmiEvQygo=; b=uFFXI3u+DwF3SmuXbgmK0PKV3PjerKFJveYmdYPHYj/Wh0oCULUkDq0QzujTAGAcan xUYEmPRePgThDd6QWgD27+qm7RMfCMIrnWn6OYxWALqvnK5Xn16ptAcGgRCizlwfnBvl xL2kJCKA1xrMg23yYLTPGrXnPFAsfyNvrz99bTCrFfLmCzj4sIiwp+7RuZo2c6m1Dn4n Mh57fjPDUndFSKgDj9LKpmq9TxZP2G5g6JtoCJNFEvgQsDJQgfIeH2PeF8fS1JBGsPBH 5+ZRxW7NGAVGyISmP0S6KYEeGaFaznNXME6MFwyhhcl7L4E3BUE1ZsWc7S4Uaro2tXxN MWJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i7WQX0n+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 36si4816408edp.290.2020.07.01.09.32.04; Wed, 01 Jul 2020 09:32:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i7WQX0n+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732361AbgGAQbe (ORCPT + 99 others); Wed, 1 Jul 2020 12:31:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731951AbgGAQbe (ORCPT ); Wed, 1 Jul 2020 12:31:34 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 664E8C08C5DB for ; Wed, 1 Jul 2020 09:31:32 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id h5so24710426wrc.7 for ; Wed, 01 Jul 2020 09:31:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=e8vy04L3oFjB+e/NYPznyy+y32Vl8W+XrBMmiEvQygo=; b=i7WQX0n+MjYFWRQdP/C4E5Y8PrAvqnDQ+SRHQo1ZgBlWV9OTIaai3ugazH8MLJkVx1 zeTMNmJUTIJJptEvMMoQTz/UwYei08/DDc08TrlbZTUXyCYiOHLKoTXXpFHsLnfhUc6O o5waCOOCPz4ai73p3a6QdYCaUDsKgLzrfV6lLC57MeJO1ubXc8waeRngBnB5tH9K6P4L Ap4ldEgE27AZ60TDc1mv5XCEZOnryj7Q7PPOBaNSfmyHMStZV0FJKyztp/UpI/t8u/BT JehJqzdjTNlJGIBAU7JS25hEN0U5uMV0UDc9FrpeJYYxxayPJEItBcElxldaTmH+eMdo fFHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=e8vy04L3oFjB+e/NYPznyy+y32Vl8W+XrBMmiEvQygo=; b=iJq+5pgR5YVWQDDCaxjdFVQpIbWvrmM69b4XpYwJucaqjbj+9wAQaoOhJzltP3uDKk yV6bO0hqkpvS6M5rAwKlY9fVAHehlzv3DhSo9VtACSqMhOXjv9+UiUygNSb0+k44Qyx2 4yZiGse1G/Nsr6YYRQ8uXGp5DjKkSsfaih+A9QpK37lMlm9ymBXXmWDakumMN9av7CjU qh8UlIThu0rULAESoYsgOanRc7rVBt6lTxTQotja/2BMUdOhkBtE0Z+3bUh1iu32gHDN OU79kn3N/Xh1vGlSNb5LQXvNGtzIPhNOwK0c0VD2DyIFps/FPtMHbOE6TLqXnjl9fBo5 wh1A== X-Gm-Message-State: AOAM533hC1tmjBSHv+x3gcl0h9FIXQFvmA1bfuvbmxD6KNZwaEKewt2H 69VC/Znl90osZ4nqRlGPHOHXdJLjEhM= X-Received: by 2002:a5d:658a:: with SMTP id q10mr23546055wru.220.1593621090716; Wed, 01 Jul 2020 09:31:30 -0700 (PDT) Received: from ?IPv6:2a01:e34:ed2f:f020:54f4:a99f:ab88:bc07? ([2a01:e34:ed2f:f020:54f4:a99f:ab88:bc07]) by smtp.googlemail.com with ESMTPSA id n17sm7752105wrs.2.2020.07.01.09.31.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 01 Jul 2020 09:31:30 -0700 (PDT) Subject: Re: [PATCH v2 4/5] thermal: core: genetlink support for events/cmd/sampling To: Srinivas Pandruvada , Zhang Rui Cc: rkumbako@codeaurora.org, amit.kucheria@linaro.org, linux-kernel@vger.kernel.org References: <20200625144509.17918-1-daniel.lezcano@linaro.org> <20200625144509.17918-4-daniel.lezcano@linaro.org> <73150ef4ca536368f087672b917dd9773417020e.camel@intel.com> <23458be6-1e5f-7397-4935-c5268b9f52a6@linaro.org> <171936e84c416d7647756d9b453ef2d4475ebdc8.camel@intel.com> <4c8abeb4ddff2355d9ba397f50b7844a7734c2e9.camel@linux.intel.com> From: Daniel Lezcano Message-ID: <8526622b-cb31-4d40-95b6-e209b3101563@linaro.org> Date: Wed, 1 Jul 2020 18:31:29 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <4c8abeb4ddff2355d9ba397f50b7844a7734c2e9.camel@linux.intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/07/2020 17:49, Srinivas Pandruvada wrote: > > [...] > >> Then I'd prefer we only introduce the events that are used or will be >> used soon, like the tz disable/enable, to avoid some potential dead >> code. >> We can easily add more events when they are needed. >> >> Srinivas, do you have plan to use the trip add/delete events? > Yes and also trip modify. Ok I will keep those then. > Also I need to have one more event for heartbeat like event which needs > confirmation from user space to hardware the user process controlling > thermal is active not dead. So whenever hardware wants to check health > it will send an event, which user space should acknowledge Could it be the opposite? The userspace sends periodically a message to tell it is alive instead of having the kernel asking the userspace? Is it ok if we add this in a separate series ? -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog