Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3574683ybl; Fri, 20 Dec 2019 11:37:16 -0800 (PST) X-Google-Smtp-Source: APXvYqz55O1lEyEiNQFSImGnuJaadhSd/0qZ6Kxs4tl47urp3IK+w895Ou/Ff5OjOtRP48Jc8J7k X-Received: by 2002:a9d:6745:: with SMTP id w5mr154575otm.52.1576870636707; Fri, 20 Dec 2019 11:37:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576870636; cv=none; d=google.com; s=arc-20160816; b=PItXTPlDH0FkNUJOVHejjd8HxVvUKJADZco2Mf1zwIddnIznzu3w2Ek0GbnBoSooS2 aXlQu653FA15FCvhSxyODJ4rldSg7YluzxYyligjSwUdbfwdtj3+6h/mFkH2ge+MrRiT ym74c+3UIZLL5RsLiWDZebClXCw1TYGF+6hj1/z7eglIoeq9G1au8nbLiXZu5wgKFeCF Nx+vbr4yFFYPCuMnsUd+450MdgG9QtYINC1GNA6bUMIxCVy7zBRyFw23kTMSb2l3mVbx hN+OeoPkanWo0yOtRGPa0HJx/xBMp+rH0uq14OlpkeKFd704cmcSR+9AHeGuRES114nA FZYA== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=6ccQDi1F9SPbcPBXhrPvQY95LBc5kJhF17D3pnjjDvU=; b=pnzga3o5/KeHEbxY+tTCLiYbh0jQ0FpHwW3src8Ekz/3tbje5RzZv3u1TmTG0auNcA gPhCI1N+xODr4WxOhp+D+hI6qoFH95E8vaEjujlJGRj0z97EUzB1OMZHois+uTA2gGMb u7YBLZurUvhJnW7E7Zhsi7m4xbsLPFrL9f+yosoWPabIRtbEwnPxn5DpXw7F5IMw6rQs BLogGWfjHqbwy1ukUvJuMy0nPlpB/8JcR/zE24NbneWax41w3FVxTpxG+AnVDMNhoxFT mH2Nu2tIM1zLKTIfGv6wryQ1EM4mv9jAwkk0XA1tfXr+dp/hAYI3CTuZQ/bonUifSsRj F/qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=dzeo1u9l; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c11si454856otf.91.2019.12.20.11.37.05; Fri, 20 Dec 2019 11:37:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=dzeo1u9l; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727474AbfLTTgA (ORCPT + 99 others); Fri, 20 Dec 2019 14:36:00 -0500 Received: from mail-qt1-f195.google.com ([209.85.160.195]:33102 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727394AbfLTTgA (ORCPT ); Fri, 20 Dec 2019 14:36:00 -0500 Received: by mail-qt1-f195.google.com with SMTP id d5so9183441qto.0 for ; Fri, 20 Dec 2019 11:35:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=6ccQDi1F9SPbcPBXhrPvQY95LBc5kJhF17D3pnjjDvU=; b=dzeo1u9lXJAwfs3L4kdz9fc21Io6Hve8ECQKPAi4L6/gQvOc6Uz/5vD1BqxwlD7qUC 04vL5BKOLAUlWUAxeGx5hkMEiu2qXO4uyIMW+TsVMVSYJRGTaZsBMFgE2dpyDvJPgHyb TENcNgpO7OF//s1sajTWTR3aELFVgXjX7bNJs= 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:content-transfer-encoding; bh=6ccQDi1F9SPbcPBXhrPvQY95LBc5kJhF17D3pnjjDvU=; b=pHmO/pebOXO/ZJynuof8IXJQQULRlbWaEcVKT2xcFVCdjh36hs9p0yLIw/XLrPjN4Z Y/3PmFivOFfTCTjB9MHA13CXTYbggJ0QYUS7vcMn2BagjSvtyE0172FR1vQxHPsnlUPV 5FBPrJO2YpNtbemt5MizmmDqqnbtS51tDbxv5bWIY/jtbS+VDqEXmLMDheeEO/eTUGU1 ftzn/Ch5Hm0bjgjY9Qexf9BZn/vNJHVH9fHScx2LfrD52obQmdB2T+bm951eQP7VIg+P pxdV23i1DlbCafEF5nYL+jkJ+FFsUB2PXOJ8eKJxjGt3jjaftBhQV1nWZo252ZTWyySW GRxw== X-Gm-Message-State: APjAAAWfMZFV38riWIoz6DP1NiS9DU1VwcqULSayrzdE5Y/xF3uXlQQD fOOyYDgywAtM/v2uyhuD4ECp0R6qJgY8aHA6ZtGEzA== X-Received: by 2002:ac8:5457:: with SMTP id d23mr12606355qtq.93.1576870558756; Fri, 20 Dec 2019 11:35:58 -0800 (PST) MIME-Version: 1.0 References: <20191219201340.196259-1-pmalani@chromium.org> <20191219201340.196259-2-pmalani@chromium.org> <20191220105252.GR18955@dell> In-Reply-To: <20191220105252.GR18955@dell> From: Prashant Malani Date: Fri, 20 Dec 2019 11:35:47 -0800 Message-ID: Subject: Re: [PATCH 2/2] mfd: cros_ec: Add usbpd-notify to usbpd_charger To: Lee Jones Cc: Enric Balletbo i Serra , Guenter Roeck , Benson Leung , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 20, 2019 at 2:52 AM Lee Jones wrote: > > On Fri, 20 Dec 2019, Enric Balletbo i Serra wrote: > > > Hi Prashant, > > > > This should be [PATCH v3 2/2]. All the patches in the series should hav= e the > > same version otherwise makes difficult to follow. > > > > Thanks, > > Enric > > > > On 19/12/19 21:13, Prashant Malani wrote: > > > Add the cros-usbpd-notify driver as a cell for the cros_usbpd_charger > > > subdevice on non-ACPI platforms. > > > > > > This driver allows other cros-ec devices to receive PD event > > > notifications from the Chrome OS Embedded Controller (EC) via a > > > notification chain. > > > > > > Change-Id: I4c062d261fa1a504b43b0a0c0a98a661829593b9 > > > Signed-off-by: Prashant Malani > > > --- > > > drivers/mfd/cros_ec_dev.c | 3 +++ > > > 1 file changed, 3 insertions(+) > > > > > > diff --git a/drivers/mfd/cros_ec_dev.c b/drivers/mfd/cros_ec_dev.c > > > index c4b977a5dd966..1dde480f35b93 100644 > > > --- a/drivers/mfd/cros_ec_dev.c > > > +++ b/drivers/mfd/cros_ec_dev.c > > > @@ -85,6 +85,9 @@ static const struct mfd_cell cros_ec_sensorhub_cell= s[] =3D { > > > static const struct mfd_cell cros_usbpd_charger_cells[] =3D { > > > { .name =3D "cros-usbpd-charger", }, > > > { .name =3D "cros-usbpd-logger", }, > > > +#ifndef CONFIG_ACPI > > > + { .name =3D "cros-usbpd-notify", }, > > > +#endif > > We don't want #iferry all over our c-files. If you *have* to rely on > Kconfig configurations, split this out into a separate cell and use > IS_ENABLED(). Done. Thanks. > > -- > Lee Jones [=E6=9D=8E=E7=90=BC=E6=96=AF] > Linaro Services Technical Lead > Linaro.org =E2=94=82 Open source software for ARM SoCs > Follow Linaro: Facebook | Twitter | Blog