Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp685792pxu; Wed, 6 Jan 2021 01:20:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJzyoNvGjeddQQ4A7rKm+AAugXVw+bHLRSAzSRC1ESWsuol6cXx1cq4LWhx+6kgpYpB/hrv1 X-Received: by 2002:a17:907:c15:: with SMTP id ga21mr2285335ejc.472.1609924826569; Wed, 06 Jan 2021 01:20:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609924826; cv=none; d=google.com; s=arc-20160816; b=fQ5kMzpcK1WxsvRNX04yNfnUIdz4Mvr/Ih5FHOLn7B6/aIofew0uPieQ76OgRMsyr9 BTfa5+UJQIs/WbVLbD1BeUsAPffQJSb4nP68iAUKP8En0yuLMlKEqij29ee4MedqmC+1 wnnb8T97ftSBU3Pv/TQV0nRxlKZSnzLf1/Clb0ZMTSxj1mHS4x/hW7+dZrCbrZtjt+ba V8TpWilIs33cnyisABTRy5qfFh9Lc6KFRK78OkWACcRwCN7MJstSgeQ1XUOeP4Kz7quo nibg2aL74B83N8x3NCRuqnDuOfPvD58jPpVAqdYczwskcNgxh3UAGx8rXlEAonJBnuOx c2NA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=74reAFMP9bENCEIgFbfQOXKA/PsWi2wcOMNMUHX6jRs=; b=Mlt+P2wuSTIUcHYmkSEw+wjaEOW8r8lwKqB8zQRgS0t7rcHKnO3uCj5a1lpKupkXyQ 7AHgkbJbdp9dGCpVhzMuQVP1oXAg7IWc0Kdpw8osU159ol3NPHYTzqHYbQy489LYKJCd hqVRSfX9aXhXEEvOA9KhzXMtcAyBpblZqgyq5MFhIQK+FR/OcjkLGX0WFmtylBrcaa4L iXa/0ZAGg658dqvPqSbTwDbyPGyXSyweBYQgMS67Xi0iWnMQyZ7P0GHVEmgYROxZqvBb VJAyai83vXBWk7upOw9G9vviPwtQPcQjF0+XcSGwKArrGrUSenkd+Fvdul+DR9wk4KPo LHZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NncPIcfM; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n15si790347edy.394.2021.01.06.01.20.03; Wed, 06 Jan 2021 01:20:26 -0800 (PST) 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=@redhat.com header.s=mimecast20190719 header.b=NncPIcfM; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726334AbhAFJSz (ORCPT + 99 others); Wed, 6 Jan 2021 04:18:55 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:39713 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725952AbhAFJSy (ORCPT ); Wed, 6 Jan 2021 04:18:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1609924648; 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=74reAFMP9bENCEIgFbfQOXKA/PsWi2wcOMNMUHX6jRs=; b=NncPIcfMenZN+GlJydfVWrMld/lrhzHQHBmSoMdt9BAVrc98/miKmT9CZfD71AH9I4EDor OG5dlzqln/LgNIKh8S9GBG9FkqbFroffq24LyCc0MpUWK+eKDAl9LMI4eik2RDaRE+gOlZ N0nTZf5G460yhn3MV6GzAFch0WLdemY= Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-505-0lLnaQJrMMiLv4E3O7YBig-1; Wed, 06 Jan 2021 04:17:26 -0500 X-MC-Unique: 0lLnaQJrMMiLv4E3O7YBig-1 Received: by mail-ej1-f69.google.com with SMTP id dc13so1048075ejb.9 for ; Wed, 06 Jan 2021 01:17:26 -0800 (PST) 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=74reAFMP9bENCEIgFbfQOXKA/PsWi2wcOMNMUHX6jRs=; b=pzGkYnPPm/FIWCeQl+J8RjuTmYqFZi//0OGbmCXWnvHqQDGZNe6ZNxN2x3z5QxSmPI PLO9pu9Eg0oIk42vFUUHkqxEGYRAr8DboO3boH+pGjRFLQDToOU8YmRa0gNkgW17alen qlAPHQlZFgjdgoUEuNt6bOrnSTUP+JukdnKsuK01sbxcAsg96p8TtJJJCyIZJ95GIExr EsHN4wQQpVfk3sDCVDOUxFGQZ8r4nx9e/Eno7Nr/xjBNpV9aBearMsJL9gEBepkZQMsH k3mNs+RbHqGrxHVMP5XLkCBsx7j2abt02JWaOjL0+YLnnGRlum8K8hmC7tlVSCAd7PK6 E7kg== X-Gm-Message-State: AOAM531n+15Tnf/j/qbu/bZ0FRaiwwMxECrlJBt+MvVOu20UoIsTGmxo V8b23Dp28GjkaEiTVFlN/vr3Cf17OU9++xILTdn9DoJFgm0YAzfdqWGmXsQ+aHy3hu9GXqXMa1v t1rOak8CenS2Eod2mHM7kz4HZhcEV0nYd5Cj/dU1D1SJDT+y9UqbdEm+eh/A1RNs58WJwddjywm RD X-Received: by 2002:a05:6402:746:: with SMTP id p6mr3354049edy.313.1609924645449; Wed, 06 Jan 2021 01:17:25 -0800 (PST) X-Received: by 2002:a05:6402:746:: with SMTP id p6mr3354035edy.313.1609924645315; Wed, 06 Jan 2021 01:17:25 -0800 (PST) Received: from x1.localdomain (2001-1c00-0c1e-bf00-37a3-353b-be90-1238.cable.dynamic.v6.ziggo.nl. [2001:1c00:c1e:bf00:37a3:353b:be90:1238]) by smtp.gmail.com with ESMTPSA id z24sm1187871edr.9.2021.01.06.01.17.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 06 Jan 2021 01:17:24 -0800 (PST) Subject: Re: [PATCH 0/2] IdeaPad platform profile support To: "Rafael J. Wysocki" Cc: Jiaxun Yang , Platform Driver , "Rafael J. Wysocki" , Len Brown , Mark Gross , Ike Panhc , Mark Pearson , ACPI Devel Maling List , Linux Kernel Mailing List References: <20210101125629.20974-1-jiaxun.yang@flygoat.com> <35ac853a-266c-6944-6e5e-6286456865e3@redhat.com> <6a29f338-d9e4-150c-81dd-2ffb54f5bc35@redhat.com> From: Hans de Goede Message-ID: <9e745724-d704-6250-9bfb-e347f3611ec4@redhat.com> Date: Wed, 6 Jan 2021 10:17:23 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 1/5/21 6:18 PM, Rafael J. Wysocki wrote: > On Mon, Jan 4, 2021 at 9:58 PM Hans de Goede wrote: >> Patch 1/2 does use a slightly different approach then I suggest above, >> thinking more about this it would be cleaner IMHO to just pass the >> cur_profile pointer to the callbacks as the pseudo-code patch which I >> wrote above does. Drivers which use globals can then just ignore >> the extra argument (and keep the platform_profile_handler struct const) >> where as drivers which use dynamic allocation can embed the struct in >> their driver's data-struct. > > Agreed. Note that Jiaxun has provided a v2 of this patch-set with patch 1/2 implementing the new approach. Can you merge merge that patch please and then once you're happy that this has seen enough exposure in -next, provide me with an immutable branch with the 3 platform-profile patches in it ? Regards, Hans