Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp931833ybg; Wed, 29 Jul 2020 01:11:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWN5in2gWN5AHltmi0Tlo80j0GbQeg80xJQxrmNqeHEtic8tCSXRY070UAv09OGaECtZ3x X-Received: by 2002:a05:6402:1358:: with SMTP id y24mr19055457edw.318.1596010293283; Wed, 29 Jul 2020 01:11:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596010293; cv=none; d=google.com; s=arc-20160816; b=seHY5Ujz7DZAbg8iiuORXABi8wt003tOxSZLGZMu+DXGzDd3aG0zpvRZg8lebLBBfn wPKB2vssRkxeLc15eTKGo2R0uZZYQjkt2QiE3Qaq/wyyHmKSxZiwOGX0ectqtbZSxcjw kNCIn3YFXGzsT4DFoL7V8YUu/pDxkrUE0G39hmaJFJfAjQxWiARaX4tmrS6/bSbXxwHM easczHnxCvQfP4MLcKw/smpfw/krDYlqeFz+JXJzHpxoI9sXpT8EDEK2J/4r//n/Tivx otJCxkqvhW3+YVlgV39jrFtdEr65ClaW6rxwaMaA2lZRvwpJrG0u02Ss317jKXAoSpWq 0ucw== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=bX2NW+bQ7J25ucCAclCnjJzxJsNBxEwD3yGGaPM+RDc=; b=vVLYMIOkqJutnCqnbEiAVEEuMofT46CkhAPHyL4+FpNaPL1K+0dBqaaQe0yL/JhXig 9gIGl2cr1HK9Ntm0aC6S8UHDt0pBGpLaQnCbrP4z5zkcD21g2J3M3nmnXH/1Kl5bim22 r7i0V/i33bf7ExddRJKe8ZCz2ZoUloZzvN0yRNIkRCUCK6jAMkUqdoVohTlr7429iQ5q c4hhtWHnUdVsxMh/Bn8eSrON3QwXY5bnRHD1rVzyUEboA1+kss/pAHJKlRUcNv6v/XBp 5f9QI4zq/QPZkDgmIbDOVDI431mwatWryeJ4njJ0ki1UJegQiO5uEAQ3vW5HNsku5Ine Kc0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@codon.org.uk header.s=63138784 header.b=pO4fGZ+u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x2si739491ejy.245.2020.07.29.01.11.10; Wed, 29 Jul 2020 01:11:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@codon.org.uk header.s=63138784 header.b=pO4fGZ+u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727992AbgG2IH5 (ORCPT + 99 others); Wed, 29 Jul 2020 04:07:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727042AbgG2IH5 (ORCPT ); Wed, 29 Jul 2020 04:07:57 -0400 X-Greylist: delayed 2395 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 29 Jul 2020 01:07:57 PDT Received: from cavan.codon.org.uk (cavan.codon.org.uk [IPv6:2a00:1098:0:80:1000:c:0:1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D38FC061794; Wed, 29 Jul 2020 01:07:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=codon.org.uk; s=63138784; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=bX2NW+bQ7J25ucCAclCnjJzxJsNBxEwD3yGGaPM+RDc=; b=pO4fGZ+uOiD+9pv9wYjU6Nbun 1hDM8MeFTu5kZQECbz20LzYPdhJAx+MLqpvQFeFau7m8FPsz4qKII6STXRCelniQMuQwPkkk6ghh5 5cjIRWy7/hZT9xl+lnPfuZV3ryVXP6GLl4ODicC56Tsj3mNqsym1knDX6aQNSxR44cLJ0=; Received: from mjg59 by cavan.codon.org.uk with local (Exim 4.89) (envelope-from ) id 1k0gVI-0000dh-Tn; Wed, 29 Jul 2020 08:27:56 +0100 Date: Wed, 29 Jul 2020 08:27:56 +0100 From: Matthew Garrett To: Perry Yuan Cc: sre@kernel.org, pali@kernel.org, dvhart@infradead.org, andy@infradead.org, mario.limonciello@dell.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org Subject: Re: [PATCH] platform/x86:dell-laptop:Add battery charging thresholds and charging mode switch. Message-ID: <20200729072756.46skroedpbo3fjyn@srcf.ucam.org> References: <20200729065424.12851-1-Perry_Yuan@Dell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200729065424.12851-1-Perry_Yuan@Dell.com> User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: mjg59@cavan.codon.org.uk X-SA-Exim-Scanned: No (on cavan.codon.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 28, 2020 at 11:54:24PM -0700, Perry Yuan wrote: This seems extremely useful, but: > diff --git a/Documentation/ABI/testing/sysfs-class-power b/Documentation/ABI/testing/sysfs-class-power > index bf3b48f022dc..a8adc3b0ca4b 100644 > --- a/Documentation/ABI/testing/sysfs-class-power > +++ b/Documentation/ABI/testing/sysfs-class-power > @@ -334,6 +334,29 @@ Description: > Access: Read > Valid values: Represented in microvolts > > +What: /sys/class/power_supply//charge_control_charging_mode > +Date: March 2020 > +Contact: linux-pm@vger.kernel.org The values here seem very Dell specific, but this is going into a generic sysfs path. Really stuff here should be as vendor independent as possible. If these values don't correspond to a wider industry specification it probably makes sense to make this something Dell specific. -- Matthew Garrett | mjg59@srcf.ucam.org