Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp116919pxa; Tue, 4 Aug 2020 00:50:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSkSUQ78QzvnP0l4Mz4EzdeKjVjArRtDvJ0YRBFlU2iZzYTow3l3ymCQDZFOgXBfFo4pxG X-Received: by 2002:a17:906:d050:: with SMTP id bo16mr21654252ejb.367.1596527424359; Tue, 04 Aug 2020 00:50:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596527424; cv=none; d=google.com; s=arc-20160816; b=SuHwTa5LRloEDxuwX/dp1oakbUH7QtvrZBdQ7iIVC3zzwRFR3bn4mF/3hckiTvQqCv 5+kj7KP5ZA0obTRjE14uLS4jEUGW7Mt3IqYHkxzOvMi/9Xq4t+YX/F7X6wXYGdHZ+KjZ LgzTB7vJyxV/uKe+HY1eZurigWqBcq+/6n7xaXRyeu7tDkxvozCp6craIpQKwPukSyJr 2ACC84akaouAYwRs9JsxXowJ31sIEI17lZpt9AMBFm0JV/SVGW9PJEhX3FPMeaNm+2aJ 4usmA8Je9tKmAK9YdCZnRHT/mHC0XGJzHdLjKWpIbx5/Vx8BXwrsjBrgeE+WkwSB2pA3 UqZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=qSWH2sSyxMNX/CDRjcB3101UZpZbf1v15tfrfTeJbRE=; b=a4/UBPEkRlIkuAOpveQTSvq+5i4hxzih7V8o8J1Z4bWoS6mPGQl8ZZs6EtoDUuKNtI iC0nOLm6RSC++1oav43TvWkABVkHvf3TRTTKB7lTDicVveD+/HlMJY0FYTyykp6nmJFH cAB3yI9CwW/L15Z/UFkCBosdadqHUO6BtN9uFSUfTlf1Ol0Y1Irr1SHjRRx2r6uNVj+C GmdE23FbESed/hwkG8YrnrM57Vb+IkM/cSDIE8Z+Sixyfcx3e/vatJsIGvmjssrF/tRo czcis71hiyNBVvqACflwn9yECLlJUufHCR2KplYm8WvY6wGVIvbWQnNLqMRrp2+12USI zCgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QEL7Ges9; 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 x9si11958745edj.121.2020.08.04.00.50.02; Tue, 04 Aug 2020 00:50:24 -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=pass header.i=@kernel.org header.s=default header.b=QEL7Ges9; 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 S1729028AbgHDHtd (ORCPT + 99 others); Tue, 4 Aug 2020 03:49:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:54540 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725932AbgHDHtd (ORCPT ); Tue, 4 Aug 2020 03:49:33 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3C37722B40; Tue, 4 Aug 2020 07:49:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596527372; bh=8p+XCJZnz+9HnH0A9r61I2MYnTcinVNhhgF+AKtpNpg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QEL7Ges95rD4FR5z0wQEU5DzHET9Wk0ntPfdgYF1QGb6pg+pTc/cxEXsOesX9z9b0 Kvl1wyaVyXgowih1ziv7uWRTg7o7qYi3oDRRYwhWiR52hhIchpByEHyMFIRYlrgbte 0PmNiV4WD6VTWfLuKlTns/SzYSokjI1e9OeNMeMw= Date: Tue, 4 Aug 2020 09:49:13 +0200 From: Greg KH To: ivan Cc: Sebastian Reichel , Pavel Machek , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, jiangfei1@xiaomi.com, Qiwu Huang Subject: Re: [PATCH v4 1/4] power: supply: core: add quick charge type property Message-ID: <20200804074913.GC1761483@kroah.com> References: <20200802120015.GA1289@bug> <20200802123742.GA257810@kroah.com> <20200802142825.GA20261@amd> <20200802165738.GA293244@kroah.com> <20200803114950.oyb3gzyiccybah3u@earth.universe> <20200803115644.GC955269@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 04, 2020 at 10:11:19AM +0800, ivan wrote: > On Mon, Aug 3, 2020 at 7:57 PM Greg KH wrote: > > > > On Mon, Aug 03, 2020 at 01:49:50PM +0200, Sebastian Reichel wrote: > > > More importantely I prefer not to merge new APIs without any users > > > (i.e. a driver making use of those values). Having a reference > > > driver means, that there is an example how to use the values > > > correctly and proves it is actually needed upstream. Right now > > > this looks like "let's modify the upstream kernel, so that we can > > > easily maintain our out of tree driver". > > > > Agreed. Qiwu, can you also submit your driver so we can see these > > values be used? > > Our driver is based on qualcomm's driver secondary development. > > The driver code is for mi 10. > > https://github.com/MiCode/Xiaomi_Kernel_OpenSource/blob/umi-q-oss/drivers/power/supply/qcom/qpnp-smb5.c#L1434 > > + case POWER_SUPPLY_PROP_QUICK_CHARGE_TYPE: > + val->intval = smblib_get_quick_charge_type(chg); > + break; > > https://github.com/MiCode/Xiaomi_Kernel_OpenSource/blob/umi-q-oss/drivers/power/supply/qcom/smb5-lib.c#L7713 Great, can you submit these drivers as patches as part of this series? That's the best way for all of this to be integrated. thanks, greg k-h