From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 742D5C433DF for ; Mon, 15 Jun 2020 17:50:46 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4822D20810 for ; Mon, 15 Jun 2020 17:50:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="GfQAaTyK" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4822D20810 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=6dcUMt7/swvaqPBa0Ya3uAF5LlCcuXhemiUZtEcKW+I=; b=GfQAaTyK9z4JS+ Qlti7/OAPLtGN93+z8sp61URvU9LEEHzHEdwvmqy7Z7Znw9Q4nvakQGJ3Rwi/30ASZJkktWvWbOF9 rybggLvCgL2v8O+GjqROFg6rC8Q8RzK48TKT6Xf5+QD1lzm4NsGGlfZjcEXs33U8E4Q2w9ZD1aWHG PsScADnKV0CntfuJ7tan/xE6uincTOSi4S6mflg2pw8xFjxACNFcILQMR8BPLuePgDxG4Lu1uHr5C DfUEAc8k1nQTTFZz1wQNwi2ktwOW1BNrnK8DlkulHaoDCMjPUWPKh+yN/eO2IYzbi7dtzVr5qiK4k odtd0EDdR7N1vlyOrYZw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jktFl-00056P-Ui; Mon, 15 Jun 2020 17:50:37 +0000 Received: from mail-il1-f195.google.com ([209.85.166.195]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jktFi-00055l-ON for linux-arm-kernel@lists.infradead.org; Mon, 15 Jun 2020 17:50:35 +0000 Received: by mail-il1-f195.google.com with SMTP id b5so16147638iln.5 for ; Mon, 15 Jun 2020 10:50:34 -0700 (PDT) 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; bh=QqFXAIP35kaKyGPJGm7boR5Cw7I5I86IlWfC5gy7jdY=; b=Dt6bfdC1aJpzyLKN4K1J7ex6ZW0rPuOD4d6F5GGJ9/gWeE/u4nAsEr/Ess+ruMb9Q2 Vmp5bxwjSabvUw0BM5CKpSJvV9ztFSgztZuwF2PdkdEVfSRXvh6flzcuH0Zg34u1CN2h MPXVjXEv0538eRUC6HfO/Ie4fLR1DdcvAInWwInt/AZ/uzdMo6vU/wjZrOpYbT+JpIJl Z3tKeF5yyH5Jr3bAmX1SrAN37gbFUIwW4ZWYWxNnqqw0DtV96ldOv1Y0ZWV5KaiyWBHY F8T8D4lgUbm+LPQzodmuM/Q8GrZ4Eno0YI7jD2o1c7vwndA2FUaPcwJLbWq76eOkWGhq qsWQ== X-Gm-Message-State: AOAM532PZ/dM28F/aJSON2B8yrVhkXum6AjT5dte0nbhQXhpXXTrTEfH ER0dduZ76g0fzuumswQOx5F+zjg= X-Google-Smtp-Source: ABdhPJxCEkYl2U35hyzTpC6rWtsSN7STUGL7WtCf6JOtFuiSQmZkx9jnmtarBm3jhTOq8YQocc2Szw== X-Received: by 2002:a92:aa13:: with SMTP id j19mr27556195ili.193.1592243434058; Mon, 15 Jun 2020 10:50:34 -0700 (PDT) Received: from xps15 ([64.188.179.251]) by smtp.gmail.com with ESMTPSA id b65sm8511986ilg.82.2020.06.15.10.50.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jun 2020 10:50:33 -0700 (PDT) Received: (nullmailer pid 2031787 invoked by uid 1000); Mon, 15 Jun 2020 17:50:32 -0000 Date: Mon, 15 Jun 2020 11:50:32 -0600 From: Rob Herring To: Sebastian Reichel Subject: Re: [PATCHv2 2/6] power: supply: gpio-charger: Make gpios optional Message-ID: <20200615175032.GA2031757@bogus> References: <20200605224403.181015-1-sebastian.reichel@collabora.com> <20200605224403.181015-3-sebastian.reichel@collabora.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200605224403.181015-3-sebastian.reichel@collabora.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200615_105034_790026_ACA5CEFD X-CRM114-Status: GOOD ( 13.55 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-pm@vger.kernel.org, Linus Walleij , linux-kernel@vger.kernel.org, Haojian Zhuang , Sebastian Reichel , Rob Herring , Daniel Mack , Russell King , kernel@collabora.com, Robert Jarzmik , linux-arm-kernel@lists.infradead.org, Emil Velikov Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sat, 06 Jun 2020 00:43:59 +0200, Sebastian Reichel wrote: > While strongly recommended, not all devices have a gpio to > detect if the charger is connected. This moves the 'gpios' > from required to optional section. > > This also modifies error handling for the GPIO a bit: We > no longer fallback to pdata, if a GPIO is specified using > GPIO descriptor tables. This is a bit cleaner and does > not have any real impact: There are only two mainline pdata > users (arm/mach-sa1100/collie.c, arm/mach-pxa/tosa.c) and > none of them specify the GPIO via gpiod descriptor tables. > Once both have been converted the driver's support for > specifying GPIOs numbers in pdata will be dropped. > > Signed-off-by: Sebastian Reichel > --- > .../bindings/power/supply/gpio-charger.yaml | 7 +++- > drivers/power/supply/gpio-charger.c | 38 ++++++++++++------- > 2 files changed, 31 insertions(+), 14 deletions(-) > Acked-by: Rob Herring _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel