Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp20418260ybl; Sun, 5 Jan 2020 02:12:17 -0800 (PST) X-Google-Smtp-Source: APXvYqwfIZHiq8/nZGqNRDHFG9UWBrAjj2zDIaSLtpHOq7XPKe6wY6I3YDBcwO0gzBqAPH1Fa2mL X-Received: by 2002:a9d:22:: with SMTP id 31mr103149919ota.173.1578219137602; Sun, 05 Jan 2020 02:12:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578219137; cv=none; d=google.com; s=arc-20160816; b=U9P3jP+zqyLTi/EQkw0vO1nUC2JHLgA8pZRVFzROmvrxeb3S80KuG/3gHrKFOiHZCz LTpU49GfREgKqQGB55RCf5DoGUdY21zP7zz30RQzoTrUjLji7fcC7gr2IlMS6oNKLdkD Q2Xk40HKQGvpDvK9Q1WHUxvAygiya2fy2sJ4Q8w5TPP1AV4BS76KV45ZFDJK7NzZogAe ULsriSznWRU1svsVnwnqXXbkr28/C9X4mipuppsqFtdRdKVpTA8wDc8aatHLlBNYVxy3 /poO+wqk9Dz2yro1y91puqbJIkISVnUrmII+heiP7hwtYTXXIOLoMDJM8wevskCQQGVZ pvBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=DeNSIszea/zGeHHq8aQmeJJay/5gyv6kH5Cpx+kjq5I=; b=Ng75a3aUBmhpkippajTuUlS1PuM3AIMwZvdVhmFW4Um965GNPjMgHE5AWq6Lw1onjh gJNQZLlkGtPi6zxxtR4p5AeNM9FznLq+gSTiY74uW7/qIPjDstcUjXVfxMshAGCs4BZr 2tiNDF4t3qJAy5keoy0DpZa/qu3PQbRfvq2Y81ihsL1WulpaZJn+B30Fi4GvYxFWBwlR ejcfxcKhbhqIs+7yfxnHMznXEiZ1Phd8E0gAUSzh65JdyyvBvWvSkdUVPde3TT2/xtyS d5ssk6On7ba59MDeaZm753qp5Ealjt4Sn4TI1gxan+yWGRG91qSeYZPed/4YyQZqdTnO 0B2A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n9si32942046ota.103.2020.01.05.02.12.05; Sun, 05 Jan 2020 02:12:17 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726307AbgAEKKP (ORCPT + 99 others); Sun, 5 Jan 2020 05:10:15 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:40889 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725535AbgAEKKO (ORCPT ); Sun, 5 Jan 2020 05:10:14 -0500 Received: by mail-ed1-f67.google.com with SMTP id b8so45121549edx.7; Sun, 05 Jan 2020 02:10:13 -0800 (PST) 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; bh=DeNSIszea/zGeHHq8aQmeJJay/5gyv6kH5Cpx+kjq5I=; b=bP2BgDfsMuTpssKn4OCtQd3SINfX33IfokrImL1f+o9XTyECkDvUIu21BeaKeaci3s b2Obv1kVC/oKPaYCYXMKYY2vMT/DTHPq4/ARnxb8Ua/AxiZMlgJvpGxRzH/jaf9KeqmB cxr0+UqYQ5XCMtklAzripF5f7hL0ollO5yODblNv5gKFPJP33cEPk6vkoNIoBS3Gm+19 L9swEnaCtd9/S2FafzsMwlafeb1dufQCcqXHJTM38w87vnKkxYKEs9hefbK+/5b3iRFb fvQEdq/QrmE+gQ2RWjQSEMwXnmLfbXeszygLAuGBmEypTjFF0bvqFjFYrMx7aHl4uEWw n8lw== X-Gm-Message-State: APjAAAU7FheQS9bqtK5MgI21OMGTooog2sJ2VwKXc8ueepoAfCEoLLo5 mGZBcamo/rYbvdQkzHxXqcvyD7Sid3A= X-Received: by 2002:a17:906:4556:: with SMTP id s22mr100442545ejq.165.1578219011938; Sun, 05 Jan 2020 02:10:11 -0800 (PST) Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com. [209.85.128.43]) by smtp.gmail.com with ESMTPSA id t19sm7904472eju.10.2020.01.05.02.10.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 05 Jan 2020 02:10:11 -0800 (PST) Received: by mail-wm1-f43.google.com with SMTP id p17so12376476wmb.0; Sun, 05 Jan 2020 02:10:11 -0800 (PST) X-Received: by 2002:a05:600c:2409:: with SMTP id 9mr27042337wmp.109.1578219011126; Sun, 05 Jan 2020 02:10:11 -0800 (PST) MIME-Version: 1.0 References: <20200105012416.23296-1-samuel@sholland.org> <20200105012416.23296-3-samuel@sholland.org> In-Reply-To: <20200105012416.23296-3-samuel@sholland.org> From: Chen-Yu Tsai Date: Sun, 5 Jan 2020 18:09:58 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [linux-sunxi] [PATCH v2 2/9] power: supply: axp20x_ac_power: Fix reporting online status To: Samuel Holland Cc: Sebastian Reichel , Lee Jones , Hans de Goede , Oskari Lemmela , Quentin Schulz , "open list:THERMAL" , linux-kernel , linux-sunxi , stable Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jan 5, 2020 at 9:24 AM Samuel Holland wrote: > > AXP803/AXP813 have a flag that enables/disables the AC power supply > input. This flag does not affect the status bits in PWR_INPUT_STATUS. > Its effect can be verified by checking the battery charge/discharge > state (bit 2 of PWR_INPUT_STATUS), or by examining the current draw on > the AC input. > > Take this flag into account when getting the ONLINE property of the AC > input, on PMICs where this flag is present. > > Fixes: 7693b5643fd2 ("power: supply: add AC power supply driver for AXP813") > Cc: stable@vger.kernel.org > Signed-off-by: Samuel Holland Reviewed-by: Chen-Yu Tsai