Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2048291pxa; Mon, 24 Aug 2020 03:44:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqwlAiYYXQVu9cladTW7iQFR7j5yleYecvRuOo1Dmv9aRwHyjESAHEAe202NbpDi9x1KRE X-Received: by 2002:a17:906:660b:: with SMTP id b11mr5164900ejp.509.1598265883575; Mon, 24 Aug 2020 03:44:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598265883; cv=none; d=google.com; s=arc-20160816; b=LAD0Qn237b99apxuqnh1WOlqkSEVyRcwkXHeMEfXivggj7B9GbUPP60YElb7SPAUWv r8GAb6wY2eE/gny18e1TnE4V2SZkRPPXO0qhPEJULCJEFZ8i9H57OZiXHI+5meRivV/P HXdg4Ipbbe5IGcAeqO1Ut8ijVoNsgApP0Ndmw2/7DRISXBaDnGYBotKXRfDw0PtSIayx fDaRsmD6JjSQmLVTuw4PVxH5/lYVe0kgHWdydefYi5ox1hBMkkIPintp/VPhaVUB71bY 0RYvGaUXp+K6XAZtMQ6bYbEil1lq8orvpGJ9z1AziQoMUQ5QoQ7zba2+i3JAqpAfkbjc wC0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=vfeJpdo+reXlUp8I9Xltf/bKT4P5/2EZI29RPHRcGTo=; b=sy/7js9B1AXktmLKBnqFrBX5laNOyJQF2rjyxpZuyo/t15ehXPfMK8P9QNkqqOZYlp vqPfEvZlAswa1EF1VSU3Usz6WvJcFvvaAJbi4HaL7x1ztq5C/gZSodJ/whjsNViICq3o q0y/dQg/f3JXki0sbw3bJDKmBkypFy+XlOqNYLSlCKYzX2kUvVztxvXpRGIDY3dgA4a6 lwRJOE9RG+gsx0I/8rlOuW1s/EW/425rD0nbM1ds/Am5lmJFnJ0IXjod9sumPgmMuM/y jBSpDlDl3oNCoSSA3WtEdlGwSjfl5r1B6t+Jd002hxiUlfvqouucH8WYFgVkHBpWDnp5 hXtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="zYrP/1bz"; 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 be10si6468559edb.574.2020.08.24.03.44.20; Mon, 24 Aug 2020 03:44:43 -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="zYrP/1bz"; 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 S1726532AbgHXKnm (ORCPT + 99 others); Mon, 24 Aug 2020 06:43:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726189AbgHXKnl (ORCPT ); Mon, 24 Aug 2020 06:43:41 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90060C061573 for ; Mon, 24 Aug 2020 03:43:40 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id g75so7667308wme.4 for ; Mon, 24 Aug 2020 03:43:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=vfeJpdo+reXlUp8I9Xltf/bKT4P5/2EZI29RPHRcGTo=; b=zYrP/1bzSHAaUnEcj4HL//n+vYvLSDc9feOiIUJl31IuKVau98RwHMSK/ozNps5bTR oYKfl5nukEcPBR6oPloC6dUWnJMYinAJ5ZTA0uCMCnjENm12q3qNJLyM9fX7fpZsWKwf sAjPWWliJ59AzuScUI1swcfCyVp7j0p8T+bs9qKTAtSAIjqsg799vQKGdoz1rKObLU80 SnesywaeXAUN22biSQs84mCq1cEZwFAayZBmrDkSk+3c1GHDVa2eLVFKtTdmZE4yO4bU pDA3wJDt5ycrQrRl1889ScC1ZC/OoaxJjElqCH337TWJtCl4rjt6zn/82C+A0UGm+nIp 4SzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=vfeJpdo+reXlUp8I9Xltf/bKT4P5/2EZI29RPHRcGTo=; b=FP8JHANab+vDdP/xSXP8dBmlwe7v4U4f5qWHTn7E2uNnkct/l1FtVLzFhK3yDOTJA4 r08+qaXxv1Ku6sKxkmlT6554bCYlz9SSgjFO82aE5o7pMDv1SsBqk5sBUgrTer3FqQHq yTWWCgOxwr94QmUJevt81HCxRubfxsl+GUCD6iSiAfm8MEHXy5IIin66EPKmj0w+NhnH x9X8GP3GcNEw5CkekxTfBdEnf6Qf0P86+fILkxy6gnltdUsnP8PNupjbOviU3vOnxxI2 PG7PHdvX+8eyLq1JY4yvMUYmAw1nw/DABpPvNvJ14IYIuwiqfL1RXjeeMYBHy7X1vmtf f9jw== X-Gm-Message-State: AOAM53052gGkr4kOCBTOOcMQoF1Crvi5loGAIcj778hXcsKncH5zgGZa YT2AubnfKCpr0GA9i+JVbrrmkA== X-Received: by 2002:a1c:68c3:: with SMTP id d186mr5179539wmc.68.1598265818867; Mon, 24 Aug 2020 03:43:38 -0700 (PDT) Received: from dell ([95.149.164.62]) by smtp.gmail.com with ESMTPSA id f9sm1783125wrm.5.2020.08.24.03.43.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Aug 2020 03:43:38 -0700 (PDT) Date: Mon, 24 Aug 2020 11:43:36 +0100 From: Lee Jones To: Dmitry Osipenko Cc: Lubomir Rintel , Rob Herring , Thierry Reding , Jonathan Hunter , Pavel Machek , Dan Murphy , Sebastian Reichel , devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, linux-leds@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 1/6] mfd: Add driver for Embedded Controller found on Acer Iconia Tab A500 Message-ID: <20200824104336.GK3248864@dell> References: <20200823140846.19299-1-digetx@gmail.com> <20200823140846.19299-2-digetx@gmail.com> <20200823181653.GC209852@demiurge.local> <82abab10-9af6-a9c4-b241-d5a3af5b588d@gmail.com> <20200824073331.GG3248864@dell> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 24 Aug 2020, Dmitry Osipenko wrote: > 24.08.2020 10:33, Lee Jones пишет: > >> ... > >>>> +static struct a500_ec *a500_ec_scratch; > >>> > >>> If this is only used for power_off, please rename it. I've been told to > >>> do so in my driver: https://lore.kernel.org/lkml/20200519104933.GX271301@dell/ > >> > >> I don't mind to rename the variable, but not sure whether it will be a > >> worthwhile change since _scratch is also a common naming scheme among > >> MFD drivers. Please see max77620_scratch for example, which I added > >> about a year ago. > > > > If something is used once, it does not make it 'common'. > > > > Not sure how this slipped my notice before, but I don't like it. > > > > Ensure any global struct used for power_off only includes items > > required for this purpose. It's unfortunate this API requires a > > global variable at all. > > > > Okay! I'll change it in the v2, thanks! > > Thierry Reding was working on the shutdown API which should replace the > global variables, unfortunately he doesn't have enough time to finish > that work yet. That would be really good. :) -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog