Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp12900ybh; Wed, 11 Mar 2020 19:37:21 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuC2LdkgeJSDZgVH+jQTdmj/3wOZZmU5hLDgfGzcH1uR1sgE/msdPCxRAyvzO+jCIMGFitY X-Received: by 2002:a9d:23e4:: with SMTP id t91mr4512753otb.125.1583980641542; Wed, 11 Mar 2020 19:37:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583980641; cv=none; d=google.com; s=arc-20160816; b=kMFY5uc0Bf3X8+bMNHP3wp7xzKUCOqNQ7HOqYHQKZGmpQkaj7mbvYGwKMfufiHgMm2 kFmjaAjX2eZtV56P4LasmZaMoszBtup2AQrE3Cabv4bxAxmpKlYzcuXZTMSs2bLNZU78 cQSaa+2/3XSzLCXhscHwfcSbZcKUOI327RB9yOmibpTkWOXrN59pTKnicpthu90wWYy7 A3m9fvq9ZCJW9ybl7TgHpYpq+lDUJQSRfE//gi9fOzlGK4pjs5/S5th9SFHC94QBBtxT USLAvk24bqoa50aB/94qBzyvP3o+ZaPFoz1YTHkfmBO+gHfygCXbZ+sa2BJvOql++aWr 6u0A== 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:dkim-signature; bh=8OJZ8s4LAFvvLbr1LYlDu6AvwjLr2eKD3RcnrO+l9+M=; b=hHVa6KEv+E3kEn+1xblIHzg7D3qGBfsmUNf8EYMZrjzKEYh4tz1eLmxEw7BStT9scZ cKioJJP9EDc+LtAy8GflTbjyZvVadsULYx2e+/At39S7EurWXVgfIpL4kpJdf+4mqkBV 2CudS2y/eeBq+2/g6yj5ZkR5NXo4cmiiNn9lTt8lo2NQV4p8m5sx7RqVk5cTNR4iQzkI cziyfDzaaUgfAFnsp7yOejGwjyQgrpQNNcqAaL7piG956DHZWlNwDcubSpmLjtZAgbF8 ywVfxV+ewOLjF+AYF2coNLiaKFnir+1Wvsbcqg20s8Tqu0Ip3E/czqszlZ+GMq7IA6lz XArw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=phTASrbq; 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=QUARANTINE 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 l11si1071501oom.36.2020.03.11.19.37.07; Wed, 11 Mar 2020 19:37:21 -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=@gmail.com header.s=20161025 header.b=phTASrbq; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387655AbgCLCfz (ORCPT + 99 others); Wed, 11 Mar 2020 22:35:55 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:43821 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387501AbgCLCfz (ORCPT ); Wed, 11 Mar 2020 22:35:55 -0400 Received: by mail-oi1-f196.google.com with SMTP id p125so4001767oif.10; Wed, 11 Mar 2020 19:35:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8OJZ8s4LAFvvLbr1LYlDu6AvwjLr2eKD3RcnrO+l9+M=; b=phTASrbqGplbQZ0J9qq81BbAQWHnb5mliO8intSCodcYFQzfgu384fG0rprHEqkjrg P9CvEQK20yLFBtazpyuwL6H2VP1MMluyxgLPAQxGsxq7YXhD85W546FMlNQgInvkJb86 N3vHrKk2yRhRnMdGgGfqAPsr3bpV3c0Qcw+eCUq/yfGn+XqPY0ekDeeVClETG4tpU5Qj m0xsQffi7gybur9azt8O/hd18pqtzkEI4EPkXkJQ6vfn+A2HXu/cqp7AR8Nk2CjD4tlF gjJsqTfmjxWBqGIj1bZpnDPZ7Fb1paa880Roh9MEtYBSbqwhQvWgvZqvhhYRyLEz5Kic eFQw== 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=8OJZ8s4LAFvvLbr1LYlDu6AvwjLr2eKD3RcnrO+l9+M=; b=lD/22FZ769vuP3oEmaw+YSW+AAW6vTo1dlLvYD4emxT6aGYOuqJIzKInvN0YxNljFl /7blmbgSeMaM/OtpYdV9l97UiMX5VySfOnQUAYPuijq0711J1BrTERAwnAiCw5TPQFX6 CUvxlgwqw3zwcEQ6EqOl8DvLZKtDorkzj96YC4/g7U50UE7Onbmp/K9R4AeIk8xh8hlv Rj7yKfEtDSNtO1cyjNje8xAafaj48I1LdD5MQ9PKfFBUNq8UV6yvYLTUdhc8Ge5fmgjg O/n69bAffGDqotJAn9hcbpwVX02ji2TWx/mOfGI3vobEx7x6tQFDLQYYwBxMGTWTOqyq 7rzw== X-Gm-Message-State: ANhLgQ3AmskSfc+1FSgn6xkb34ibpGwkERlzMjqTPT6ZSNxALAjoZtNi 1kuWUMJ/pCTrgzyKn7/RUyqsxSx6ZLhOXI65L+c= X-Received: by 2002:aca:cc81:: with SMTP id c123mr1089651oig.74.1583980554871; Wed, 11 Mar 2020 19:35:54 -0700 (PDT) MIME-Version: 1.0 References: <5e098be25c70e07c37e743f84a901f6f756090e0.1583461755.git.baolin.wang7@gmail.com> <20200306204712.dgomi52jzyakylky@earth.universe> <20200311221856.yh2vr3fybwm3krfc@jupiter.universe> In-Reply-To: <20200311221856.yh2vr3fybwm3krfc@jupiter.universe> From: Baolin Wang Date: Thu, 12 Mar 2020 10:35:38 +0800 Message-ID: Subject: Re: [PATCH v2] power: supply: Allow charger manager can be built as a module To: Sebastian Reichel Cc: Orson Zhai , Chunyan Zhang , Saravana Kannan , Android Kernel Team , Linux PM , LKML 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 Thu, Mar 12, 2020 at 6:18 AM Sebastian Reichel wrote: > > Hi, > > On Mon, Mar 09, 2020 at 11:20:41AM +0800, Baolin Wang wrote: > > On Sat, Mar 7, 2020 at 4:47 AM Sebastian Reichel wrote: > > > On Fri, Mar 06, 2020 at 10:34:10AM +0800, Baolin Wang wrote: > > > > Allow charger manager can be built as a module like other charger > > > > drivers. > > > > > > > > Signed-off-by: Baolin Wang > > > > --- > > > > > > Thanks, queued. I do not like this driver, but its the best we have > > > at the moment. > > > > Thanks. I understood your concern, do you have any plan to re-design > > the charger manager driver in kernel? Or do you have some thoughts > > about re-designing it? Now we have some out of tree code to use the > > old charger manger, and we'd like to change to the new charger manger > > driver and upstream them. > > I don't have anything ready yet and not enough time unfortunately. > The proper way would be to have something equivialent to charger-manager > in the power-supply core. The core should be able to monitor batteries > and handle connected chargers automatically. Also there shouldn't be > any DT entry for the software managing the charger, since DT is about > hardware. OK. We'll think about it according to your suggestion. Thanks. -- Baolin Wang