From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E36AFC433DF for ; Mon, 29 Jun 2020 15:56:54 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B3C6C25581 for ; Mon, 29 Jun 2020 15:56:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="KDnXyEck" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B3C6C25581 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=atomide.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=3fpnNPClGCIOnp2PyBF3FoL9+TjxWqOZBQp5q0tYhQU=; b=KDnXyEckPZl9OtEWPCPhJduNR wt9KGwHEpin8FEHQD5cKQ3kTJwWp0HW8F7Vn29YKeP6tckhFGkldJ+k3w46W2Y5O3MLbM0O0AN9jS fOKxgqTbfI+kXdPBdWlJ0LaxO1Us9FgGwGK3X/siSVOc9oDp6HoKZVppXarcrUX+H+r6raMdfhGy3 Nd7Z9BvGPGuLyVkEzmQClw5wUI43abiXNkv7GdusA/EYaFD0qvXULxY0Lohwo8ccLySCE6fiVET75 wSqM8FLbkQcEcmPZCzmRN9iGdWPzH2JIPfvLwZAf7ylhCOeoDSSbS3lOW2ekbcHm4S95guGGa9eIz szOvLj6ww==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jpw7x-0003Gh-VX; Mon, 29 Jun 2020 15:55:26 +0000 Received: from muru.com ([72.249.23.125]) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jpw7q-0003EI-1e for linux-arm-kernel@lists.infradead.org; Mon, 29 Jun 2020 15:55:18 +0000 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 599F08196; Mon, 29 Jun 2020 15:56:10 +0000 (UTC) Date: Mon, 29 Jun 2020 08:55:15 -0700 From: Tony Lindgren To: Pavel Machek Subject: Re: [RFC] Limiting charge current on Droid 4 (and N900) Message-ID: <20200629155515.GR37466@atomide.com> References: <20200615140557.GA22781@duo.ucw.cz> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200615140557.GA22781@duo.ucw.cz> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mpartap@gmx.net, linux-pm@vger.kernel.org, merlijn@wizzup.org, martin_rysavy@centrum.cz, kernel list , sre@kernel.org, nekit1000@gmail.com, linux-omap@vger.kernel.org, linux-arm-kernel Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org * Pavel Machek [200615 07:06]: > Hi! > > Droid 4 has same problem as N900: it is often neccessary to manually > tweak current draw from USB, for example when using thin charging cable. > > N900 creates unique attribute by hand, but I believe > POWER_SUPPLY_PROP_INPUT_CURRENT_LIMIT looks suitable. (Should N900 be > converted?) > > Comments? Would the patch be acceptable after fixing whitespace? Looks OK to me. Until we have better charger vs host vs usb3 charging hub detection in place this seems like a good thing to do. Regards, Tony _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel