Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp897575yba; Mon, 1 Apr 2019 20:31:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqzOVAiOvLwCxctGy1CyO1gM1dnILjKBs3CQny6rMYCN1Gs6xreiPj34iTsJ3gnQAEhAU4VX X-Received: by 2002:a17:902:469:: with SMTP id 96mr66159325ple.46.1554175867121; Mon, 01 Apr 2019 20:31:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554175867; cv=none; d=google.com; s=arc-20160816; b=pLxJTO68nS/ZtRu6DNADcLzzp62byILcCBx1BfnNJ9S/ldbRD3f40Mosp/Q6hy/hWu HS5ROlvZCfnJ6bPDBgCZdfbMYmSnEB4kN9ylMfQhoyVd0S3ru0K9Grsf76GgKbQf0DLk ADgqhaYaajiVB7DzB19T8c7hHr/Bv0d1tJYLKK2UAaugwP9Akswd9Sj/lJYg/oAxLOIc EYjJU6f5eKUlYmUiD2QvJw+j8sxu+BOWUqYm0iN1fv/j9kZVij3lPwuWiiM4Twt0Vgli KOxek0cbtPztDtRoqlRk/xHQIcAVGyWjTBAtUXT7R2DVJV3DIDijsaWgVMFcMvUgxM5I JAsQ== 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=UfqouMuuuw5kB5uax34hd187WToaCCDig9yHbtHk8h8=; b=POtfYF2eYQazMIZNNHqn27uszeCyKycP4txE+C4mLyIgFqtiq8N2c8y26TvEEHlSz8 9wksyHzOmcCFk3iZ/Ueooua2y9XzmgT8DbhjFwh/V7VgIA8j6P54TgkRAVtqHU+EizwS 1+iwy+1egIdvY2Bji4uXE6xnMxF7lmaw4EiuIf0zW/rCWxs+Jo/SYElmrDHJd6i1tZ/0 kPefD6UBnVi0NsiAKytcuX+uuwCLrKyI/ld59rp9NZ5W9FLYYEmZKg9dTCdpygUlMgJh GeJLIww/ECAFF3oDJSIxCuffnYWHSvxervFsFqFga1Wt2AxsiorkScIcs4F/j9wRaY9U 087A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SvMeaJm+; 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 f185si10341397pgc.182.2019.04.01.20.30.50; Mon, 01 Apr 2019 20:31:07 -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=@linaro.org header.s=google header.b=SvMeaJm+; 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 S1728998AbfDBDP5 (ORCPT + 99 others); Mon, 1 Apr 2019 23:15:57 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:43572 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726168AbfDBDP4 (ORCPT ); Mon, 1 Apr 2019 23:15:56 -0400 Received: by mail-pf1-f196.google.com with SMTP id c8so5583641pfd.10 for ; Mon, 01 Apr 2019 20:15:56 -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 :user-agent; bh=UfqouMuuuw5kB5uax34hd187WToaCCDig9yHbtHk8h8=; b=SvMeaJm+HYw2SIOAyPrLNXS/+twXqfvbVnHmqwr+QlZbwPg9yVwUVBMySsKXuISufW sAhlLx3TDbjcAF/GrsoK11AeZc/vVFcUGdqnFUyHiwLLMWEnDWv8Mdvg5kGETBcVYslD XL8aPJ4HnjcRsiCQmNjmhR2rV+ZdPLEwnN/ivpzI4MBLhNfHh/ENtFK8G4LVwySoYT+O xDY0BJpQNqpGHqHnKKgiT/Z+flmXW4sm5ihSeNd/95KmmFimqyUcHkeYP/i3AznpCwGL XYmfEyGT+v+m0c4iMnIaVqPLm4CdJvrvyODCasez/GzxGHyRpJI9ajw8HEDGzYroMi8S +FDg== 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=UfqouMuuuw5kB5uax34hd187WToaCCDig9yHbtHk8h8=; b=KQT712yL92Tx2+S8ofWPYyREtAMrBBQWuvfqc9Ih/CbEj4DOvl9WdagGJf6Hv5xTmR k4xoS2HAHQjzTWBkARjG30drXnw9YbbMGK7pUhSt6IXZmJwINQoOJadPopf9d4eXTQI2 i36hgSRrWTpKdBcLlFRVXF5WgPC63J3K0y/8hJoFiMioKfGYjxB86zzBievQSDh4MuiK qiwAR70XNzZ5FC1JBLhJ0reRITVhw3Ij4acz8+JrpGNLju0nNHWCdGU10sQqh3unUQrJ lUFp4Lif77cSKU+OZXMvGV3HJSuP3IYpqgWGz1yiJuv1WMrql39aE+Kauw6EcY6wDEKh Tofw== X-Gm-Message-State: APjAAAVnmV9l/Y2XBqmGbrbTavot2IbXt4ZQxMI6L3SPuQmpYiSHLIIu N07VzAum/oil1tAh+0p3LWj/Kg== X-Received: by 2002:a62:1b03:: with SMTP id b3mr62214651pfb.150.1554174955943; Mon, 01 Apr 2019 20:15:55 -0700 (PDT) Received: from dell ([147.50.13.10]) by smtp.gmail.com with ESMTPSA id d69sm26081915pfg.26.2019.04.01.20.15.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 01 Apr 2019 20:15:54 -0700 (PDT) Date: Tue, 2 Apr 2019 04:15:48 +0100 From: Lee Jones To: Chen-Yu Tsai Cc: Maxime Ripard , Sebastian Reichel , Quentin Schulz , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Hans de Goede , Chen-Yu Tsai Subject: Re: [PATCH v3 7/9] mfd: axp20x: add USB power supply mfd cell to AXP813 Message-ID: <20190402031548.GF4187@dell> References: <20190321084850.20769-1-wens@kernel.org> <20190321084850.20769-8-wens@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190321084850.20769-8-wens@kernel.org> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 21 Mar 2019, Chen-Yu Tsai wrote: > From: Quentin Schulz > > The AXP813 has a VBUS power input. Now that the axp20x_usb_power driver > supports this variant, we can add an mfd cell for it to use it. > > Signed-off-by: Quentin Schulz > [wens@csie.org: add commit message] > Acked-for-MFD-by: Lee Jones > Signed-off-by: Chen-Yu Tsai This patch looks orthogonal. Unless anyone screams, I'm going to apply it. > --- > > Changes since v1: > - Made axp803_usb_power_supply_resources[] constant > - Added Lee's acked-by > --- > drivers/mfd/axp20x.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c > index 3c97f2c0fdfe..902f9f27e748 100644 > --- a/drivers/mfd/axp20x.c > +++ b/drivers/mfd/axp20x.c > @@ -198,6 +198,12 @@ static const struct resource axp22x_usb_power_supply_resources[] = { > DEFINE_RES_IRQ_NAMED(AXP22X_IRQ_VBUS_REMOVAL, "VBUS_REMOVAL"), > }; > > +/* AXP803 and AXP813/AXP818 share the same interrupts */ > +static const struct resource axp803_usb_power_supply_resources[] = { > + DEFINE_RES_IRQ_NAMED(AXP803_IRQ_VBUS_PLUGIN, "VBUS_PLUGIN"), > + DEFINE_RES_IRQ_NAMED(AXP803_IRQ_VBUS_REMOVAL, "VBUS_REMOVAL"), > +}; > + > static const struct resource axp22x_pek_resources[] = { > DEFINE_RES_IRQ_NAMED(AXP22X_IRQ_PEK_RIS_EDGE, "PEK_DBR"), > DEFINE_RES_IRQ_NAMED(AXP22X_IRQ_PEK_FAL_EDGE, "PEK_DBF"), > @@ -793,6 +799,11 @@ static const struct mfd_cell axp813_cells[] = { > .of_compatible = "x-powers,axp813-ac-power-supply", > .num_resources = ARRAY_SIZE(axp20x_ac_power_supply_resources), > .resources = axp20x_ac_power_supply_resources, > + }, { > + .name = "axp20x-usb-power-supply", > + .num_resources = ARRAY_SIZE(axp803_usb_power_supply_resources), > + .resources = axp803_usb_power_supply_resources, > + .of_compatible = "x-powers,axp813-usb-power-supply", > }, > }; > -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog