Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4295469pxf; Tue, 23 Mar 2021 07:30:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTQkYUW7RQlDIvTNAPb9pU+mFLebA+5AuISWPDmJ+KnCkkL2+ukzQDQWVV5/bVS3VAztZJ X-Received: by 2002:a17:906:af91:: with SMTP id mj17mr5085543ejb.230.1616509833805; Tue, 23 Mar 2021 07:30:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616509833; cv=none; d=google.com; s=arc-20160816; b=T5okvvkXJgBMjJaCPhUe9FlbeG7Vy2/krilqCrv5h6Mo8UmBJDp07yLvxZbA47m1uw VSJGokqRQvMKIkOlVZY5xlqv5/h2zoHnjPxn2duYLBzJToONsjW9tQVXSAlzeCtptGdP 2f8fMCGWQXcyLEE+FzKAwyczC92g+l9jZ4lblUj6eqKcaKU3s56GKN3tjUzagW3rZ3VF IH9CqpwHunpjhN5nzOodPdV5Kr6lvIxRxkDSPkk47ZW8HtvtKaRB/4ewwy1FNSxc9h6d H2VL06jfGvuVfIy6LF9jqJlVv1y40o2NzvaBKOy5wkDhmYgTWOxDzsERb5ZjVJDDzOtv tmGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=f3ffjUDEfdpupg8pOxs1DbNdOM7s/25GYVkBS3ZIJKU=; b=V1RfH72A7tbyq9CHl1fx3R6iy6FfTCUWlVjEhMKrWDIPw4uk3txFguXZPm8eCXzIfY 7yhHEcbb9mk96SxSh+8DI8CzLPdRbnCqqDecoPXAfFmtpfVt8lPvYaufpdV6uaaxgiHK 67gp8BEZd7G4S+G/VsSqm7CJMwteD6A4X9v8RVlcNFIsNQCrf22fzy9sdgV2/BoQC8BG RA3ati1VCaYmhFqDfubF+rjefqG5y0SqvZiPWBtFHlC9ctctDMDSww264xSFgKPodxbg tSNhWQBM3FLmEZCRM9o0rulMPjVbSsiYYUjDLKDneBfzYxdIpZK4OjZ23lmI1ANE7o3D a0cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=QQLotKf2; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kd10si13457536ejc.41.2021.03.23.07.30.07; Tue, 23 Mar 2021 07:30: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=pass header.i=@google.com header.s=20161025 header.b=QQLotKf2; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231718AbhCWOYv (ORCPT + 99 others); Tue, 23 Mar 2021 10:24:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231815AbhCWOYh (ORCPT ); Tue, 23 Mar 2021 10:24:37 -0400 Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 240ADC061574 for ; Tue, 23 Mar 2021 07:24:37 -0700 (PDT) Received: by mail-io1-xd2f.google.com with SMTP id z136so17856032iof.10 for ; Tue, 23 Mar 2021 07:24:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=f3ffjUDEfdpupg8pOxs1DbNdOM7s/25GYVkBS3ZIJKU=; b=QQLotKf2dEUsBufVdFz/Gwl322r+MKxtGAJ4yMe4ovpBB+GAEUYmXcMk1rcijaSgCA ZufTsf7XG9FlO57lBCmtHvPhREGIEYl6VhEC6TUEMwLX8/v6oJkS50uuUKlR+sxNJvFj RSnu71Cuo8NtjPEKaBP2yY/qiSjGA5uqSSCqmmDSSBkmwV4MQi2q56PZttTu2GwTsEpU lFEpDWQqBfYDYyMA7PF4eMiMYU5LXGXeDugJOht6oPhb36sBVXVsWBgoU9Ru4z5i+OiP FO+HF0XKyMa7R6kY8q/5fNspiQXGW2Zkl6ICBTfBkQxuj94a8dAJxtYiFG8Kuz2Gs7LK vuJg== 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=f3ffjUDEfdpupg8pOxs1DbNdOM7s/25GYVkBS3ZIJKU=; b=QyWhCFFSNlKIjDaKeexK96e6Om+TaE6ElVaYfYUynTuXih70/QVG10byxhfNdkpABo PotB1M86JSEYicWH1YHIyzPN5iWApv2x/CXm8BgZwlYxfnl4xZ8L/OyydLWaWOcZH4vE ao0w6xfeNV6zWi5b+JsayXZUxb1P3gm4tTZHqcDbQ593EjPMLuFsuCdq/Dt/YvPwA1LX FtZSYjZvjTd0TEPvJTD6EVTWS/MV9UdD9jNEbZcFkdqj96wml0wCqgH7LmI+6zGWuiwz o/tg98ewn0spjMrZ7PtsoYWHjp38vOVhJS0epyYQXuwdkZtrc6Jz+rAOl5j+Bk//iZut n9VQ== X-Gm-Message-State: AOAM530w/a8LoCjGnH5JRpc+6eFLgLeSteTO8tju10zmomfQtrcl3w6x WQUfow0sy5wx5CRGXpuKVumcS8kukS8sxxBJHIMhnQ== X-Received: by 2002:a6b:ea04:: with SMTP id m4mr4499897ioc.160.1616509476421; Tue, 23 Mar 2021 07:24:36 -0700 (PDT) MIME-Version: 1.0 References: <20210308133146.3168995-1-raychi@google.com> <20210309185807.ka4iljasq5cmpmil@earth.universe> In-Reply-To: From: Ray Chi Date: Tue, 23 Mar 2021 22:24:25 +0800 Message-ID: Subject: Re: [PATCH] usb: dwc3: fix build error when POWER_SUPPLY is not enabled To: Greg KH Cc: Sebastian Reichel , Naresh Kamboju , Kyle Tso , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Badhri Jagan Sridharan Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg, I will upload fixes for power supply usage in dwc3 and dt-binding documentation for the new device tree this week. Thanks, Ray On Tue, Mar 23, 2021 at 9:47 PM Greg KH wrote: > > 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