Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp314451pxu; Thu, 7 Jan 2021 05:53:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJwhRV9m0Rb8uessJ2EV8mdF4wfFwWPCwbeiPYfWoc9FPKmKqcWHKcW0IXMRSBqk1BJMtp4g X-Received: by 2002:a17:906:339a:: with SMTP id v26mr6251233eja.107.1610027639027; Thu, 07 Jan 2021 05:53:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610027639; cv=none; d=google.com; s=arc-20160816; b=iIPOisyScxUmBeOAUTOPdi9tWbM1C13figevqy98/+arNOjL134hBv3g2AAPI6XQMV cvD0R0Jo/xXNFEa7RElbsxX2Lpvc8Avmj/c/yrqwSOD+zPfp8/1/OyEl+mA97zsiquHP GVHo6AnGgvRZ2mr+JQOmooMm0JIZuKGg8s2iiEbLiOph41bf5N9NeOzi+RSe9nV8d6rI AFZrazVP/jmRwYk+GQUtEQp0NHKleybTqLBVhMjRDWpippib0tEFe0wzSEZ+b+Pp+8c1 lJ8NmUSCF/8GlX4vQpzXZC34mccPD0/OPh0V4rbRKatnDcmB3a6mH2uhwRZoSuFcuYYM A02A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=CMWuGz3d4Qig577O3FdlCU+qyCG2EaepFu5Glz45Sg4=; b=P8kDB+PbuY4S2fnUAdN2PEERooQns0X4FvsMT38vq+vWZMFg9/pkPGY4JKzQvI+MIM MeMeuauLInB+ryVEIqxUQ421x8MDCkUX/gnUbn+9MTgPD0xUVlY73GAg+spvCz15yvQb vj/yVX1NFYf+NRzkM/vTuBB7BkcKL7qhBgY+t+RHoTBGumAIUn+9uaA86t3t3K7UYHrt xsA66Oc+/+XacyVI83EXbHipGgEE3BAG5Ibj2k/Ojsfdp5v+LGH4t+73LuXJ6/MQFKHZ Axbbfan5E21Eg8+1/BfnjdsquWBRIMD+9k7yV4RyofsOhVM6TbmUd45vauVLvbzspCVV IH2Q== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u23si2223102eds.248.2021.01.07.05.53.35; Thu, 07 Jan 2021 05:53:59 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728507AbhAGNwJ (ORCPT + 99 others); Thu, 7 Jan 2021 08:52:09 -0500 Received: from mail-ot1-f50.google.com ([209.85.210.50]:35286 "EHLO mail-ot1-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728452AbhAGNwJ (ORCPT ); Thu, 7 Jan 2021 08:52:09 -0500 Received: by mail-ot1-f50.google.com with SMTP id i6so6326331otr.2; Thu, 07 Jan 2021 05:51:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CMWuGz3d4Qig577O3FdlCU+qyCG2EaepFu5Glz45Sg4=; b=XBaSAzT4Tc8j0MickH0r/N1zNOSlDVm8C/qJZG7Ki1bzANZY3XVaiXOPkskkL1BIgs JVCrwr9zuwyxn542lUKGCT4qq8by3qiP5CocqxYJFqvPkoeFbdinAhylClxbFPX24k7e TC9IY3yboCd1SLTHuJq07CRbYRT47hN7OGnzMNRuJ+hzZra5Dzkx5Esg4Z6CG5q7UYCI 3HxdHEy7E48CGLIoj14/2PAIcweOPISVXuYeucj3LMwgCZ6QAefGJMS499z1iuw8sC0M EgGLA0MtNuAOOZI9xv5UE9lERWu+KnY5b5W53XRIpQ22C0mOj6kitC+/LwnOaJrK8jFE Tmjg== X-Gm-Message-State: AOAM531ctlVhCQA8U9M/AAGiBkMcdlocBkVyzE9e0Nget46UrP8hssD1 m0fWA3RSjdyhJRS1dduYNdQakeJjIZehn8xpgEk= X-Received: by 2002:a9d:67da:: with SMTP id c26mr6708467otn.321.1610027487936; Thu, 07 Jan 2021 05:51:27 -0800 (PST) MIME-Version: 1.0 References: <20210101125629.20974-1-jiaxun.yang@flygoat.com> <35ac853a-266c-6944-6e5e-6286456865e3@redhat.com> <6a29f338-d9e4-150c-81dd-2ffb54f5bc35@redhat.com> <9e745724-d704-6250-9bfb-e347f3611ec4@redhat.com> In-Reply-To: <9e745724-d704-6250-9bfb-e347f3611ec4@redhat.com> From: "Rafael J. Wysocki" Date: Thu, 7 Jan 2021 14:50:51 +0100 Message-ID: Subject: Re: [PATCH 0/2] IdeaPad platform profile support To: Hans de Goede Cc: "Rafael J. Wysocki" , Jiaxun Yang , Platform Driver , "Rafael J. Wysocki" , Len Brown , Mark Gross , Ike Panhc , Mark Pearson , ACPI Devel Maling List , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 6, 2021 at 10:17 AM Hans de Goede wrote: > > 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 ? I will, thanks!