Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3034788ybl; Fri, 20 Dec 2019 02:53:53 -0800 (PST) X-Google-Smtp-Source: APXvYqxzZzZGXpsXVSADZmq8AsEFgb+TdDsW8/NLeqeS0EvMnqA5vGeRR1Pid8U+G22DoBJ8SIRP X-Received: by 2002:a05:6830:1185:: with SMTP id u5mr13356659otq.147.1576839232854; Fri, 20 Dec 2019 02:53:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576839232; cv=none; d=google.com; s=arc-20160816; b=v8o8/kqk/eWCV+SrZwhW3BgZo2Qxx2L+lO+VoYhA8ttoXTHpA3/n7NN+Vkd4dSYRtl ba1URrLpB48lPHsxCAqaLRrOdtG5Jq7xWxynZAxy10srPE/kpZ+kclByX7RBg5rNeRPU jdhDeeOzdVLqCZbiKDLBNf+fxQsLZw1TeTonFcBcnzJtfslDQKA6Tx/xzg1n92Q7Z9y/ wHaB1i903zTdPwTzRbQ+hyzrHqT1tV7qWQAhUTmnDDIZn0n4PsD+C/RsVDES55+Loyg+ JYoTVq6CNjJZHqHJS5iJY+q4iClimvxzoWYBDjpBFRLCUQod+k0eu6HSQxHFPGwxVoUs Q5Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zIL1GNLI3fK7aSg6DfMu511CTkd/o54Y5uOn48aAaYY=; b=MIBKu+MJn3uXo+Z6mHOSf7DX98apvWV0skGXtjU6oizHwS96RhOp6cqDIOTV9okZii 5n5FHssurqSGOSvnqHCNgj0fGEHT9jD9Dr7/58tk7bZQM8M1rNZw5IPffhZfhQgtxoiX FQl788I8uS1o7wobN0fGE7BHhYkvCOHGJ13XWW5YgClSlU6oMZauHzuXep1sRyX53uMO hxfeCiIvnDGqj3gCYw43DDpLlrGi0ojm4aNSahne8RLGdnNierY07RYIexBJ6Li/KJio 6yiy5weHn4FugDWOnBPS1mp/VKzk4tbOJJPSBQo5OD1nRoOdCTUZEQkI6o3murT/VpAw MxBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VN0SVFKX; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n14si5198482otk.179.2019.12.20.02.53.41; Fri, 20 Dec 2019 02:53:52 -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=@linaro.org header.s=google header.b=VN0SVFKX; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727198AbfLTKwx (ORCPT + 99 others); Fri, 20 Dec 2019 05:52:53 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:42483 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726210AbfLTKwx (ORCPT ); Fri, 20 Dec 2019 05:52:53 -0500 Received: by mail-wr1-f68.google.com with SMTP id q6so8940361wro.9 for ; Fri, 20 Dec 2019 02:52:52 -0800 (PST) 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 :user-agent; bh=zIL1GNLI3fK7aSg6DfMu511CTkd/o54Y5uOn48aAaYY=; b=VN0SVFKX5uXsOAdDBxENIoVCMPwSNHINlQXf4fLOv9KuypkjmPtussx6xMViQLfqy9 eQM+h55AnlLGapsZK9XUa+GcXqT9hkHLAAFiNo6PKnPsB99EyOuwtY29Keo6cgzT3mkB NNcJL7GW1UF9oyp3VbqyDODc7lub/M6IYcgssUKjHCcT1DlYZXy1IAQZ6/iC39QTDQp9 YSAYli2k6iA0mC6D6l7Ayv562uTmxR4B3azfmEt30AGJ/8W+wPLYopwPvHL3oxisjTSg 1sTW+a2Zzd1hSC8B7QREXhVHm9yvawfae6yyArRiBXBC6JMOfnVScIctd8N7G53ihdNs j9aw== 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:user-agent; bh=zIL1GNLI3fK7aSg6DfMu511CTkd/o54Y5uOn48aAaYY=; b=QlPHKzxg9XTwaXx1pkH+oQx38S7DNK4XzV1jb0It74J6H9GNqeqaQxJgCThzAR0Loi HYtqI0uQWUG7TENM2T4VumN1SEcjxbOuvuSd80eMXmVJpj4nlzydHE34Qj0efM/+aQWX oTmUO8eS+Yg45cJWKuEhzFLeuv2VvNOiMjPOXoDD0oZY2Js1QIpVYK/4dLN8qaFvrTvi u0BjRjPmntaa6cwpMRHLfLQW3EaMmbRLYIr93FFwrScaZaLePn4WOwp4EykH5PSwaddV GwBpvNUTJ6QuSV+Z/nZDAJopSG10Vk7VjBoj8kvxXjda1VctrDrs1kJfs2QEU5/Wceyu fNTw== X-Gm-Message-State: APjAAAW535y3x4ThTiXoaj5i2PxU7AmF0iUgI+uZJWWucqAQv/zKcvqq AyWTZKYr/vtiFu4Sq5rkaCrPhg== X-Received: by 2002:adf:eb46:: with SMTP id u6mr14929539wrn.239.1576839171568; Fri, 20 Dec 2019 02:52:51 -0800 (PST) Received: from dell ([2.27.35.132]) by smtp.gmail.com with ESMTPSA id e12sm9515113wrn.56.2019.12.20.02.52.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Dec 2019 02:52:51 -0800 (PST) Date: Fri, 20 Dec 2019 10:52:52 +0000 From: Lee Jones To: Enric Balletbo i Serra Cc: Prashant Malani , groeck@chromium.org, bleung@chromium.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] mfd: cros_ec: Add usbpd-notify to usbpd_charger Message-ID: <20191220105252.GR18955@dell> References: <20191219201340.196259-1-pmalani@chromium.org> <20191219201340.196259-2-pmalani@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 have 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_cells[] = { > > static const struct mfd_cell cros_usbpd_charger_cells[] = { > > { .name = "cros-usbpd-charger", }, > > { .name = "cros-usbpd-logger", }, > > +#ifndef CONFIG_ACPI > > + { .name = "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(). -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog