Received: by 2002:a4a:311b:0:0:0:0:0 with SMTP id k27-v6csp4754088ooa; Tue, 14 Aug 2018 10:05:19 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyWwEeMu7ClN91s1yJkwmG1K66WAg6Pyal0gCOA1lw7cW8k/xO8yN4/p4M3GMjiW6y29twQ X-Received: by 2002:a63:1d3:: with SMTP id 202-v6mr21791894pgb.136.1534266319852; Tue, 14 Aug 2018 10:05:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534266319; cv=none; d=google.com; s=arc-20160816; b=jgDaL15tSJVFuyH1ULIIpzKLc8akJr2FbV1k53dRP7MvjOu2dPeQuSWtDtYF20xikP fMpfkmhq6AXuRVkYHK6iei9+U27DXv6ZC+oHjoj7P6nu7B/3xqvOArKzPPOl2OWqlER6 NnvENimQEYxc5BR/txG9Z8CAvoRfxdmqh+UVqtdiNxRmmcYcJr8V7GvbYSwanqbbRwsh Xckyk2HQtTV87kam6i7/etcwRBit+gVIQ93jL8b5lPCN/SD1jJG20+bXqA7vH1byd3qq /G3+O2nUwHGysoBYP+j4VekfVCorDlq4ykpi9dZUCESeGNgBfiqtgh0X8bBE1M4u2der ib2w== 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:arc-authentication-results; bh=hwcz69zsYXmG3IcMIDADTpBUdB+YA/0mi5qWgX+U1uo=; b=ZlBzedDFj+XMbJAQR/xpH8y1Wl1SElc58ZiTzUIjeTpHyIIg5JdhhtlRXjVlBpTYrv rpZivpwHsVh9kObouSehsNIqHFcG8qP0FlHL1eB6oS0I7UtKF0v0gVg2tHOShd/hQON1 C89QEkUPV0rwWOmuVxBrpNU01nXZbmqWmv5jnxsu6WnvZlk8NzJa/6csvZGNhv6M9in1 AKM5SDwLgUCSR4N5wSI4GfNP4DBwTI0/CTFOVT3P1XUIeyK0OleWhqccjL9s8tQ0IzVi kTG5ry7ht6DKKKHMPzV1CEqLrjnaZIig6V9MJes8LZpjBTDQDMIvW4K+xWUaSz2IYx4P GEbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="aEzx/yqn"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b11-v6si18031778pgt.44.2018.08.14.10.05.01; Tue, 14 Aug 2018 10:05:19 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b="aEzx/yqn"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387509AbeHNTwK (ORCPT + 99 others); Tue, 14 Aug 2018 15:52:10 -0400 Received: from mail-qt0-f193.google.com ([209.85.216.193]:36218 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733037AbeHNTwK (ORCPT ); Tue, 14 Aug 2018 15:52:10 -0400 Received: by mail-qt0-f193.google.com with SMTP id t5-v6so21899292qtn.3; Tue, 14 Aug 2018 10:04:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=hwcz69zsYXmG3IcMIDADTpBUdB+YA/0mi5qWgX+U1uo=; b=aEzx/yqnXMydQu0XmN9nGhy1Z2tYQcL6OGRdRIqTg/OuYZU0sgT9GJrx93Xt66SEsS QIjv2GHCf/UtfgYPrhuBCx9tjhVXSEN5JnK/pwOB5532MvYAVRhU1+G5M3oSp2EQcO+s mRrlT1YTtbw6WVpJJaGWJERbU5ft30y1OLPivIjzzjHV+25p31VJgYOHWEQScLoYlwLl 7DKqyPbVJC9I4VdE0ytAp3y62PFdNhOaOUovfJ8EN5BJLsIhkbm3C26NoIRLU/0q/DiG FY4LmYgMvl3YrbqHdwMhdwACMre+l9lZHzPU37BYLp7gtRn4QFH38gtnYOQaCAk6tF8r QBiQ== 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=hwcz69zsYXmG3IcMIDADTpBUdB+YA/0mi5qWgX+U1uo=; b=I/FOQ5CGsZcsTGYxYW2TW4jG59aI3dwaVWxIMZpp+LKp0kUYvAhAa3Yy+9+vd8bBwe FQMJfVBdQLRH9VzRjZlPHZW1TktXcRNEvjpLQVHJBGeh/B8v660kiJIIzSsP+Zu1jJEK 4VmbwHGdxAQ05idcuY/lJhV8wwNd382gCd9pa87+v+DkZBEinas3cTbk+fdLch3vTGnE wyU0s8ibSecagT8yXSUQPJK0gOyeoNGZrElo546hIgMFzCRWITcgG1bx+javqeZY8wnV l6Thk8KBivjlasyXZj3V4gLQ55L4qEoZTmHaCKSTfjX32bEuTyBxCYcSm8DaByANVjx3 Vnuw== X-Gm-Message-State: AOUpUlHcOGzYywnOl7+7tNoEFsrQ+5/Iwq4DhmT+V9oY9KnHD6wE611I jAhhaJld79IY1R2BLH6oBSL/OPiiwiAPZ+cmtqw= X-Received: by 2002:ac8:2a18:: with SMTP id k24-v6mr21727300qtk.219.1534266250443; Tue, 14 Aug 2018 10:04:10 -0700 (PDT) MIME-Version: 1.0 References: <20180810131349.3883-1-fparent@baylibre.com> <20180810131349.3883-2-fparent@baylibre.com> In-Reply-To: <20180810131349.3883-2-fparent@baylibre.com> From: Enric Balletbo Serra Date: Tue, 14 Aug 2018 19:03:59 +0200 Message-ID: Subject: Re: [PATCH v2 1/3] mfd: cros: add charger port count command definition To: Fabien Parent Cc: Sebastian Reichel , Lee Jones , Linux PM list , linux-kernel , gpain@baylibre.com 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 Hi, Missatge de Fabien Parent del dia dv., 10 d=E2=80=99= ag. 2018 a les 15:17: > > A new more command has been added to the ChromeOS embedded controller > that allows to get the number of charger port count. Unlike > EC_CMD_USB_PD_PORTS, this new command also includes the dedicated > port if present. > > This command will be used to expose the dedicated charger port > in the ChromeOS charger driver. > > Signed-off-by: Fabien Parent Seems you missed my Reviewed-by tag, not a problem :), in any case, for if it helps to land adding again Reviewed-by: Enric Balletbo i Serra > Acked-for-MFD-by: Lee Jones > --- > V1 -> V2: > * No change > --- > include/linux/mfd/cros_ec_commands.h | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/include/linux/mfd/cros_ec_commands.h b/include/linux/mfd/cro= s_ec_commands.h > index 0d926492ac3a..e3187f8bdb7e 100644 > --- a/include/linux/mfd/cros_ec_commands.h > +++ b/include/linux/mfd/cros_ec_commands.h > @@ -3005,6 +3005,16 @@ struct ec_params_usb_pd_info_request { > uint8_t port; > } __packed; > > +/* > + * This command will return the number of USB PD charge port + the numbe= r > + * of dedicated port present. > + * EC_CMD_USB_PD_PORTS does NOT include the dedicated ports > + */ > +#define EC_CMD_CHARGE_PORT_COUNT 0x0105 > +struct ec_response_charge_port_count { > + uint8_t port_count; > +} __packed; > + > /* Read USB-PD Device discovery info */ > #define EC_CMD_USB_PD_DISCOVERY 0x0113 > struct ec_params_usb_pd_discovery_entry { > -- > 2.18.0 >