Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3508358ybl; Sun, 12 Jan 2020 20:05:51 -0800 (PST) X-Google-Smtp-Source: APXvYqyYVhWknEJnZ39uGVrYdBUY3yYfAqZ0K/XR7/lTVe3s+41731DUMvCsGG6uxHahxXO4YNe/ X-Received: by 2002:a9d:4c82:: with SMTP id m2mr11692451otf.199.1578888351659; Sun, 12 Jan 2020 20:05:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578888351; cv=none; d=google.com; s=arc-20160816; b=dRUXWsw7LKSrhTq6xUjansO1yQhWhZ3nRRtn6FW1epfbMoJu6MPMsKkfEedSLvs+SG 4K/eZwygvWdUBeRK4WBBJa3MYDOG5c/I6qFmcwHQrzLaAItS/03ieOX5ELdaQlTEAYPU fLPO+hI1cG4XvVf105hLrsVpXS+mimYTTMKgCPhBEyJl0z/bGaX4XjAiuf8v0Ms9niRX dKEEkvR8gMppaRtkAxc4VrTtGgMbUIAAmBmftCLGYbBVEAGVkfb0LZFQ9pfg6D/q6eHX RAJ+ElDHwme3DL3ZBxZNSQqOcDBF8Dx2JyShcUBc4hpBqxgj8Ach6PImfCWX7wWCLCx+ SKwg== 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=YnyjyeBwwZr9qnp1y/94ZH/bjZ4Zleb23W13zJRNH0w=; b=Lqcpt3/YV9glEhLxAzvsJ90nn2vYW4P4wvoLa3lb1wpeg/iKDzNFQAMDNtCSCaNhEy xmsqUtqvYeEeKNmza4qkg0WYq/0baVuQA8FHzzvQvHw7Zh3AeW2E5IOCWqLEQp55onk2 QVMpv6jjo5Rr49lPNaWrEOmUnvADhkebCAmYHKBWY5y6vsThBmuvwinS+zob93TABvM4 d0ixf7nl+EnH/CHxneLCCRUB3T0pB1oCBv1/Y+uS3XAqX9y+3R9XdOz22vYCZ7bnNAGn Ns0Pp+DeiwcODYLpioZJ6GXJVWZ9I1EjlHJtZCFOeP4MbtR/WESxqSAwiJsxFxHmi/6g TdBg== 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 r6si5936323otq.95.2020.01.12.20.05.39; Sun, 12 Jan 2020 20:05:51 -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 S2387519AbgAMEEs (ORCPT + 99 others); Sun, 12 Jan 2020 23:04:48 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:35845 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387415AbgAMEEr (ORCPT ); Sun, 12 Jan 2020 23:04:47 -0500 Received: by mail-ed1-f67.google.com with SMTP id j17so7254675edp.3; Sun, 12 Jan 2020 20:04:46 -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=YnyjyeBwwZr9qnp1y/94ZH/bjZ4Zleb23W13zJRNH0w=; b=cJYOu5uurFKRO2SGrHsFjHIYKq5KdS4yXez4riFZ8I/8c5IOBse1eVwxDQdLDlwzN+ ArC0ZR+jJn5H81WpOYAHHbnpI8bagGBezCK6088Y0NRua9PMh4H7eAtDuYDNPzEL/jJZ tzOWQe5URR7E67mqf3tzEIlDgB98eghseSlHDiqEPTrmowBtSiVX2LIX8ga2kZ3g5CRQ phvh5gfNQ3TV+BrAwGirYaiDLK249hOfaG4k704WjFoTRso0+5B0lH0wTLHr1o2sUyIV Fp6CP+7hGHWtzEY221kb4cfLikNx24Np1xsi9JpcOjTJKkNy0LTAGFpb9KzujStBZumg MeeQ== X-Gm-Message-State: APjAAAXD3Jeobz5t1GXcloneMoy3XEEjtBg4RNsNdTrx6aFBWfT4Likp N0Z2AQ8QVFtIsuBw2el/HQeSG4JwBYM= X-Received: by 2002:a50:dacd:: with SMTP id s13mr15165113edj.194.1578888285416; Sun, 12 Jan 2020 20:04:45 -0800 (PST) Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com. [209.85.128.49]) by smtp.gmail.com with ESMTPSA id o19sm414495ejx.36.2020.01.12.20.04.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Jan 2020 20:04:45 -0800 (PST) Received: by mail-wm1-f49.google.com with SMTP id d73so8089485wmd.1; Sun, 12 Jan 2020 20:04:44 -0800 (PST) X-Received: by 2002:a1c:a50e:: with SMTP id o14mr16972151wme.2.1578888284770; Sun, 12 Jan 2020 20:04:44 -0800 (PST) MIME-Version: 1.0 References: <20200113035310.18950-1-samuel@sholland.org> <20200113035310.18950-2-samuel@sholland.org> In-Reply-To: <20200113035310.18950-2-samuel@sholland.org> From: Chen-Yu Tsai Date: Mon, 13 Jan 2020 12:04:36 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 1/8] power: supply: axp20x_ac_power: Fix reporting online status To: Samuel Holland Cc: Sebastian Reichel , Oskari Lemmela , "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 Mon, Jan 13, 2020 at 11:53 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