Received: by 10.223.148.5 with SMTP id 5csp6930277wrq; Wed, 17 Jan 2018 21:57:31 -0800 (PST) X-Google-Smtp-Source: ACJfBoua09//qpDO7OFq8HLcr2LD1o1uvSa9rMFT+5j2VF6pHjWUiy1SoItXHx0JNwr7M+yx9/CO X-Received: by 10.84.218.138 with SMTP id r10mr24450119pli.83.1516255051112; Wed, 17 Jan 2018 21:57:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516255051; cv=none; d=google.com; s=arc-20160816; b=IwHLzL+DLfs+ReHLspl9rjZj35hhQEKZsOawgnmF2khyGYPalQZCKaFxdLWI6lbzFK laA2LtDnJzSRLBMdSay9wn76efNgj3dFat+9oBFWFHaKKrmfgAZzyjZS1RSrbewUGMp1 3pjKqtd4qTZHcootg8Aw+cASJGRF4ARhVgaXJS7KEEcfeTyDsvojZn+LL+pHcNJvu1Pj GZLbbsBa4kytOMHHiryQ3DuRGDmWwPm6VTKdHRE9KqfuJAojWyA/vc2fCUCmM1cHoa79 xmZWJHxNXd1ROS9sSIwHj1GllIe8ICFJXThpKlXMNx292JLXazWQJbxFBMIk1A3MuBf1 /iKg== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=7nxbReQ9yOL5MDuNl281cT8jEL1GBZRyRnD1lv2tYQs=; b=mGJ3u0SZ8fNA/Sb+39KQTcDTgv9pfEdo16LFDmj7/jJ1PoiMyQ9Apg3C/pN4xe63RY TJrWM8gTr53x6fiUSHwuJrxPGdyfTAMeMUwjtPg5f4tYZaDH5pR8hrdRZ7f6EkDUCnFu gj4qNcERcQXTg9butZE7nYprRtBEhregOHh7+AltzCqVDJ0Op2nPsEtTfcGsLSaxm1vD 7aPEAeXz/gt8QLXqsNI1e0ISMoB8yVIGQuNFjiOigxmM/jD6ol1B0CjF8Qb+zb9vUEmd 9o3jswde5W44bKV9CHeweqpAeAgl9Ih7/4O0t6BDHvxPReFlPWlrm5EgyVM6RRJ+vanr 3iSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KXHjXVZA; 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=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k12si4535144pgc.587.2018.01.17.21.57.17; Wed, 17 Jan 2018 21:57:31 -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=@gmail.com header.s=20161025 header.b=KXHjXVZA; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754635AbeARF4u (ORCPT + 99 others); Thu, 18 Jan 2018 00:56:50 -0500 Received: from mail-io0-f195.google.com ([209.85.223.195]:41549 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754498AbeARF4s (ORCPT ); Thu, 18 Jan 2018 00:56:48 -0500 Received: by mail-io0-f195.google.com with SMTP id f6so23557384ioh.8; Wed, 17 Jan 2018 21:56:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=7nxbReQ9yOL5MDuNl281cT8jEL1GBZRyRnD1lv2tYQs=; b=KXHjXVZASW6GOl5BOxV/vExfuPB19FJqnVGMUKloHW5o2JacUbkfw5dbvIE9D6+CyM JuBnNJalabcPTcoJonDXKWb6a8sSBCOoOhDDjw67hLVS/l+fpy0vkwE4GvnSuJB/zOL5 unKdK8uVhZVtvb3YJJIHooLt+TaNCSS6S7d8v58JCsIxkSot7s3FOrAbbXOucCFHo4Ep cxihnkYl7SvlxfM1ng8o5mQOLZasHfzc8H5ldEL8KjIMg0XDfknkI+JQd4uQb6ktHrVI KwQaeuC0jMFCYYh19AARGLpvPwtb47+KT0t/Zbgx1w8Uw1TuhBNgRk4lrP7LioeWnp6o C8tw== 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:in-reply-to:user-agent; bh=7nxbReQ9yOL5MDuNl281cT8jEL1GBZRyRnD1lv2tYQs=; b=JaFktRawHpFPVfy+JRUs7VjIp1lnBdlAgGR7DBb8vfmFUze5FqfErAiNtAuWsdfUY8 IUn1xrgnacfsIhzLTyMDTGgG+rE/2HAH6oTaukOx8hZ0+PpbB7lL3RBYYj2az2axl8Av Q+7OqE6r7qyvLocF+hbvP5UyhjkD5fLY6hb120f9IXmOoX3PYjCzJHhq55kQN0rw6vRr 2iQxk9QVvQRlMY9Kg8enqJP31JkuKe7FOyXJ4ZM8/mgjR6E75oevFZpSAR5saUmz6h4G rRtLJ+00YcOg0uHDgtuNyzGWEM+CjOfwkmhyycJAVNAzRo2zT99U0FeBb/DWFCpIJDf1 nHzg== X-Gm-Message-State: AKGB3mIzCECwNmDM9TtDbvkeF36BCp4ZmPGaRkeiAX7Nnlp9QSqB+M2x y0MCeJe0mToTlm1c+4UvuITzcTHO X-Received: by 10.107.13.12 with SMTP id 12mr46711044ion.174.1516255007376; Wed, 17 Jan 2018 21:56:47 -0800 (PST) Received: from mordor.localdomain ([27.59.127.62]) by smtp.gmail.com with ESMTPSA id c140sm372696itc.1.2018.01.17.21.56.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 17 Jan 2018 21:56:46 -0800 (PST) Date: Thu, 18 Jan 2018 11:26:40 +0530 From: Aishwarya Pant To: Enric Balletbo i Serra Cc: Lee Jones , Sebastian Reichel , Gwendal Grignou , Benson Leung , Guenter Roeck , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Sameer Nanda Subject: Re: [PATCH 2/3] power: supply: add cros-ec USB PD charger driver. Message-ID: <20180118055640.GA10380@mordor.localdomain> References: <20180117175932.20636-1-enric.balletbo@collabora.com> <20180117175932.20636-3-enric.balletbo@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180117175932.20636-3-enric.balletbo@collabora.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 17, 2018 at 06:59:31PM +0100, Enric Balletbo i Serra wrote: > From: Sameer Nanda > > This driver gets various bits of information about what is connected to > USB PD ports from the EC and converts that into power_supply properties. > > Signed-off-by: Sameer Nanda > Signed-off-by: Enric Balletbo i Serra > --- > drivers/power/supply/Kconfig | 11 + > drivers/power/supply/Makefile | 1 + > drivers/power/supply/cros_usbpd-charger.c | 953 ++++++++++++++++++++++++++++++ > include/linux/mfd/cros_ec.h | 3 + > 4 files changed, 968 insertions(+) > create mode 100644 drivers/power/supply/cros_usbpd-charger.c > +static DEVICE_ATTR(ext_current_lim, 0664, get_ec_ext_current_lim, > + set_ec_ext_current_lim); > +static DEVICE_ATTR(ext_voltage_lim, 0664, get_ec_ext_voltage_lim, > + set_ec_ext_voltage_lim); > + Hi I see that you have added new files to the sysfs ABI. It would probably be a good idea to have these new interfaces documented in Documentation/ABI. Aishwarya > +static struct attribute *__ext_power_cmds_attrs[] = { > + &dev_attr_ext_current_lim.attr, > + &dev_attr_ext_voltage_lim.attr, > + NULL, > +};