All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Qianhui Xu" <xiaqinghuan@mail.ustc.edu.cn>
Cc: linux-usb@vger.kernel.org
Subject: Re: [PATCH] dt-bindings: usb: snps,dwc3: document usb-psy-name
Date: Tue, 01 Dec 2026 12:38:04 +0000	[thread overview]
Message-ID: <sashiko-outbox-243279@kernel.org> (raw)
In-Reply-To: <20261201123018.2965784-1-xiaqinghuan@mail.ustc.edu.cn>

> The DWC3 core driver reads the "usb-psy-name" string property
> (drivers/usb/dwc3/core.c, dwc3_get_usb_power_supply():
> device_property_read_string("usb-psy-name")) to find the power supply
> whose current-limit notifier drives the gadget-side VBUS draw budget
> (dwc3_psy_notifier / dwc3_vbus_draw_work).  The binding never declared
> it, so a board that names its USB power supply (e.g. "qcom-battmgr-usb"
> on Qualcomm pmic-glink platforms) fails dtbs_check with
> "'usb-psy-name' ... is not of type 'object', 'integer', 'array', ..."
> once the vendor binding's unevaluatedProperties: false applies.
> 
> Declare it as a string in snps,dwc3-common.yaml, next to the other
> core-consumed properties.  No DT or driver change; purely a
> binding-completeness fix.
> 
> Found while auditing a board that enables qcom,sm8750-dwc3
> (usb@a600000: usb-psy-name = "qcom-battmgr-usb").
> 
> Signed-off-by: Qianhui Xu <xiaqinghuan@mail.ustc.edu.cn>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261201123018.2965784-1-xiaqinghuan@mail.ustc.edu.cn?part=1

      reply	other threads:[~2026-12-01 12:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01 12:30 [PATCH] dt-bindings: usb: snps,dwc3: document usb-psy-name Qianhui Xu
2026-12-01 12:38 ` sashiko-bot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sashiko-outbox-243279@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=xiaqinghuan@mail.ustc.edu.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.