Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1964844pxa; Mon, 24 Aug 2020 00:34:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylayCfJxBFzFWk3JPj5zEE9+UYYbEvyrH0SvGtvUhCXmwJqQ9e2uNUgPRhD0Q5xOmNY7Np X-Received: by 2002:a50:ef09:: with SMTP id m9mr4176460eds.230.1598254489113; Mon, 24 Aug 2020 00:34:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598254489; cv=none; d=google.com; s=arc-20160816; b=UbtCWkf1NkuVVzQs7mYEd5E8jYPDa+7KjyAv7vSzGUfnTj5MSbwwbewzMxsJA3bpOy CoxVB0QL5nUD/VLwUXz47yt96G47rVMxCkSsU4VgMjQiWsj6jniIw6OmK9b0zpJUkNIG AlTLfMHTAOaESQkreVYL9YndswTmUISPXcHmjDHop+PVtDG2xP13UP0sSKNhDfpyyPl9 DNW3Oqu3E8ArhiMrmK5HIkqnx8/UVVXSyykH2rjmwuJxnorJKTgLZgU6YOrGaz5ioS7e MWj3+uv3ZQf+FyDiM/PWJUv+l/vjVyC6EKFXGAP56CmE5DECLFElhIbmwh9i2Bpiw7g0 p7Ew== 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=9b6JStI+Pc7Gan44H9Zai7qTn63i//epl6t/+SyCbvI=; b=FW77fepZ58nJsu2/D2nignJNeer5B0VXWygIaB/HgyRkEpVY1NYepv3vAaI72P2VKZ Rkoc2jF2Tlj9TXMjoksqrqukTDUo9cE1ewbC9vUPcFMNHD7BAtVwEI3YHbZAtQ5rLE/1 /Mw7Tdv0WTYNybWU6zc3swZ5DcjCn3b+PYAespX0I5GfaX3Nn+MwVupvdp2TA+r+J0VI IkVVcAKMLaezFVAxCOk3oKSTVwMOwmSM2xD7gNxmj8EdnR8EvtacS4Hk3lCJRsrtvDXX rJV3psp3UNCNs/qOEMWy3JrA09SRVvpkDP3z1Yn6RzQX//Zc4niCu3FRWCaIFCYT+fpK FltQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QtU30oRE; 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 bh4si6831900ejb.193.2020.08.24.00.34.23; Mon, 24 Aug 2020 00:34:49 -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=QtU30oRE; 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 S1726086AbgHXHdi (ORCPT + 99 others); Mon, 24 Aug 2020 03:33:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725968AbgHXHdf (ORCPT ); Mon, 24 Aug 2020 03:33:35 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7421BC061575 for ; Mon, 24 Aug 2020 00:33:35 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id p17so1935233wrj.8 for ; Mon, 24 Aug 2020 00:33:35 -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=9b6JStI+Pc7Gan44H9Zai7qTn63i//epl6t/+SyCbvI=; b=QtU30oREihjyaqVpYIPlh7uBHK/+lhu3kH4oL78qeud837ZI7zpawFKbrvXu6gEeF7 lirP1Q5eX5PgM10QHCj806++kYW29bWS1XHPniLoLJmno35vPnyrxiKHV7p3aodMTbfn Y04755PuaOjBiEiyjPx6oxKlWUTs8W/nrEsTE3D3EiVIAnqck+zGCO2Kq8GPGxqS88WV f4gu+gKuQuMYYK3aNi2V+GEfSaNUiYjGZVV3Uw2wOTjSE1MiKI50ALupBV4fO60Qx61C dqwaeZn9bWLrQ8yqRwpZvWKQJqdQJBPxLU4x9pO0dXGyofFd0dRNrP7PqtDNr3k7hB5u E43g== 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=9b6JStI+Pc7Gan44H9Zai7qTn63i//epl6t/+SyCbvI=; b=F2J1+drLIz1pNF1M5SfRl+7OQMSwyLhf994pc6rmb9K5ThACQ3EQOBo0YA42b7JF4u yzttSVAoYbDUuqZMLk9HCQUZO80G/CjgZDHs/bV+KVq7jLaRoFBv7/ClJh3NURkMudgP 1gIgk84kTqv2ZhV7g4UbEam8wvaRJd2+gOKkQL9B1/2Z9GNYZZXACOSM93npNwVXYMbV LCIF730MMMqkzaqdFbqr0/MLMWB4EIcgX/L7x7gzN10tVfrpxuH2aiRcH/lunlxP+wco PESsetTUY5FpjNSfMpNcj84yI/wTg9TctF3Kc5dt5uy4z2n0lBON1SUCuieh6y0YxPIh pCLA== X-Gm-Message-State: AOAM533vYjh/ecEIIpOyWu53b520ceGbUHtf8v8EjSOipHXosqNSHn+o Tk62/YmeQqyQWbHDfD1/pEsIkA== X-Received: by 2002:adf:9ec1:: with SMTP id b1mr4456180wrf.171.1598254413967; Mon, 24 Aug 2020 00:33:33 -0700 (PDT) Received: from dell ([95.149.164.62]) by smtp.gmail.com with ESMTPSA id t14sm21197697wrv.14.2020.08.24.00.33.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Aug 2020 00:33:33 -0700 (PDT) Date: Mon, 24 Aug 2020 08:33:31 +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: <20200824073331.GG3248864@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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <82abab10-9af6-a9c4-b241-d5a3af5b588d@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 23 Aug 2020, Dmitry Osipenko wrote: > 23.08.2020 21:16, Lubomir Rintel пишет: > > Hello, > ... > >> +config MFD_ACER_A500_EC > >> + tristate "Embedded Controller driver for Acer Iconia Tab A500" > >> + depends on (I2C_TEGRA && ARCH_TEGRA_2x_SOC) || COMPILE_TEST > > > > This seems to also depend on I2C and OF. Perhaps I2C_TEGRA and > > ARCH_TEGRA_2x_SOC imply that, but it could lead to build failures with > > COMPILE_TEST=y. > > Hello, Lubomir! You're right about the I2C because it could be compiled > as a loadable module, good catch! The OF seems should fine as-is. > > ... > >> +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. -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog