Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4262229pxf; Tue, 23 Mar 2021 06:49:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkHBcZzPFmtaNzH5mt8hfRkxyokvfARbMb+6td5jTEYp2jcAePiPkz0XfM6U5skOiug1Eg X-Received: by 2002:a17:906:da0e:: with SMTP id fi14mr5212650ejb.188.1616507399307; Tue, 23 Mar 2021 06:49:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616507399; cv=none; d=google.com; s=arc-20160816; b=x/VgQZlM203u61Wk5liAZ0Brav2U1gst2GGzG89sdX184OCupa1GB1fG5P5v9loFwO /U8Q8RcDZj0V/4x+j7FB4OF8cCt3qI3S+DAtQtmYizmZ3CK0orWm7Wz4odyzrU4V/oA9 jALZKqYUU+Qsl2L1HP67hLdKuMnARLhC7hghytVHgHgqSIRTqffXQGnvLLWQZhtF4Gel E4D7TXv3CiQVptvxh/rssenzaNS+K679t3d3GAfhH/I9nr4KvToR4ol7UlvVb6mOGBtF Vv2P/SDK7buR3pGw1yRgZsF4ETAoXNFKaelBpDQae0wf8B5Sxy4AGPdIUBPHwWkubJMt lPuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=LyzvYr9bgFA50OAv3iV3tfOVpBI8dLXBKJFBgzcQ75c=; b=U2L2rIutZ6/tH8NwLnNq7l/Oc5tqNYpSpaYkgpymHwFP5UVv0CWuvPyXwTC4z56Tiv phHww6nvF/4gzueizUjlh0Gc+uGqoGVRZFUZSLJ7s/bd0ZkoBwLo/vn8ngy1XD9WENDA XxMJ2Yaz480wMs0NSSa+H1erzVkWKb69Zhb+Qk9IPtk5Ctx4QOzFh3/s2kZQ2wNQ3I0Y 6qFdUR0X+ihD7II1BRvTE3Yh0fi+cBjoxw1L3rIA9DaQdeSzmnj9pDIvjGgf/+XzkKeJ E2plFr1/XORm9w2L5s16qpig5l7bQmcRAZyWWY6BQontoqaCCqNsDNR4MRWYTF0mZgxV CuVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Nq9tvCpD; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a15si13611859edr.346.2021.03.23.06.49.34; Tue, 23 Mar 2021 06:49:59 -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=@linuxfoundation.org header.s=korg header.b=Nq9tvCpD; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230064AbhCWNre (ORCPT + 99 others); Tue, 23 Mar 2021 09:47:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:52318 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229929AbhCWNrS (ORCPT ); Tue, 23 Mar 2021 09:47:18 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AD45F6198C; Tue, 23 Mar 2021 13:47:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1616507238; bh=wD/B/xKbW2tuyo74fJsKiZyXFeGvnaD7QOI+wgfl9pk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Nq9tvCpDgQ1sai5Z6lh8JLchXCQR5/7LdyGK+Z0NlN+t7lyzXiti6RLKxUpNBGev4 1Sj6D82hf6TZLBWvEI/l2rsGOF+IyOGZy2+G8wr0n8NI+KHuOrKmLZIOh5CEsg3Azz u6m9dl56vFSMK/tAMkZS+4cc4Ep8gMCZpRBXrRps= Date: Tue, 23 Mar 2021 14:47:15 +0100 From: Greg KH To: Ray Chi Cc: Sebastian Reichel , naresh.kamboju@linaro.org, Kyle Tso , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Badhri Jagan Sridharan Subject: Re: [PATCH] usb: dwc3: fix build error when POWER_SUPPLY is not enabled Message-ID: References: <20210308133146.3168995-1-raychi@google.com> <20210309185807.ka4iljasq5cmpmil@earth.universe> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 12, 2021 at 09:57:56PM +0800, Ray Chi wrote: > Hi Sebastian, > > Sorry for the late reply. > > On Wed, Mar 10, 2021 at 2:58 AM Sebastian Reichel wrote: > > > > Hi, > > > > On Mon, Mar 08, 2021 at 09:31:46PM +0800, Ray Chi wrote: > > > Fix build error when CONFIG_POWER_SUPPLY is not enabled. > > > > > > The build error occurs in mips (cavium_octeon_defconfig). > > > > > > mips-linux-gnu-ld: drivers/usb/dwc3/core.o: in function `dwc3_remove': > > > drivers/usb/dwc3/core.c:1657: undefined reference to `power_supply_put' > > > mips-linux-gnu-ld: drivers/usb/dwc3/core.o: in function `dwc3_get_properties': > > > drivers/usb/dwc3/core.c:1270: undefined reference to `power_supply_get_by_name' > > > mips-linux-gnu-ld: drivers/usb/dwc3/core.o: in function `dwc3_probe': > > > drivers/usb/dwc3/core.c:1632: undefined reference to `power_supply_put' > > > > > > Fixes: 59fa3def35de ("usb: dwc3: add a power supply for current control") > > > Reported-by: Naresh Kamboju > > > Signed-off-by: Ray Chi > > > --- > > > > While I'm fine with merging this after fixing up the subject, the > > original patch for dwc3 [0] looks completly incorrect to me. > > > > First of all it uses wrong scale (power-supply uses uA, not mA), > > so you are charging 1000x slower than expected. Then the patchset > > introduces a new DT property to get the power-supply device, but > > does not update the DT binding documentation and does not Cc the > > DT binding maintainer. > > Yes, it should use uA and send this information, and I will update a > patch to fix it and add the DT binding documentation. So should I revert what we currently have in my usb-next tree, or do you have a fix for this? thanks, greg k-h