Skip to contentSkip to conversation

phy: rockchip: inno-usb2: Add missing clkout_ctl_phy kerneldoc

PATCH Applied Heiko Stuebner 3 participants 3 messages May 20 – Jun 11

Subsystems (2)
lore
Share & tools
lore

Heiko Stuebner

author maintainer
#0 lore raw

PATCH 1/1 phy: rockchip: inno-usb2: Add missing clkout_ctl_phy kerneldoc

Add the missing documentation for the newly added clkout_ctl_phy field.

Fixes 2775541de058 ("phy: rockchip: inno-usb2: Add clkout_ctl_phy support")
---
 drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/phy/rockchip/phy-rockchip-inno-usb2.c +2 -1
index 133cfd6624e8..7d8a533f24ae 100644
@@ -170,7 +170,8 @@ struct rockchip_usb2phy_port_cfg {
  * @reg: the address offset of grf for usb-phy config.
  * @num_ports: specify how many ports that the phy has.
  * @phy_tuning: phy default parameters tuning.
- * @clkout_ctl: keep on/turn off output clk of phy.
+ * @clkout_ctl: register to enable output clk of phy, when set in GRF
+ * @clkout_ctl_phy: register to enable output clk of phy, when set inside phy
  * @port_cfgs: usb-phy port configurations.
  * @chg_det: charger detection registers.
  */
Signature · 7 lines
2.47.3


-- 
linux-phy mailing list
[email protected]
https://lists.infradead.org/mailman/listinfo/linux-phy
#1 lore raw
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Low] The patch adds a kernel-doc description for a non-existent struct member `clkout_ctl_phy`, causing…

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] The patch adds a kernel-doc description for a non-existent struct member clkout_ctl_phy, causing a documentation build warning. --

commit f1dbf7fe726d10232258e61a8deb0085a6686e19
Author: Heiko Stuebner <[email protected]>

phy: rockchip: inno-usb2: Add missing clkout_ctl_phy kerneldoc

Add the missing documentation for the newly added clkout_ctl_phy field.

drivers/phy/rockchip/phy-rockchip-inno-usb2.c struct rockchip_usb2phy_port_cfg { · line 174

Quoted 11 lines
drivers/phy/rockchip/phy-rockchip-inno-usb2.c +2 -1
index 8f4c08e599aa2..2dd651624e6d4 100644
@@ -170,7 +170,8 @@ struct rockchip_usb2phy_port_cfg {
  * @reg: the address offset of grf for usb-phy config.
  * @num_ports: specify how many ports that the phy has.
  * @phy_tuning: phy default parameters tuning.
- * @clkout_ctl: keep on/turn off output clk of phy.
+ * @clkout_ctl: register to enable output clk of phy, when set in GRF
+ * @clkout_ctl_phy: register to enable output clk of phy, when set inside phy

[Severity: Low]
Will this cause an excess struct member warning during the documentation build?

Looking at struct rockchip_usb2phy_cfg in this file, it does not contain a clkout_ctl_phy field:

struct rockchip_usb2phy_cfg {
	unsigned int	reg;
	unsigned int	num_ports;
	int (*phy_tuning)(struct rockchip_usb2phy *rphy);
	struct usb2phy_reg	clkout_ctl;
	const struct rockchip_usb2phy_port_cfg	port_cfgs[USB2PHY_NUM_PORTS];
	const struct rockchip_chg_det_reg	chg_det;
};

Does this code document a member that does not exist in the structure definition on this branch?

Quoted 3 lines
drivers/phy/rockchip/phy-rockchip-inno-usb2.c +0 -0
  * @port_cfgs: usb-phy port configurations.
  * @chg_det: charger detection registers.
  */
Signature · 6 lines
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1

-- 
linux-phy mailing list
[email protected]
https://lists.infradead.org/mailman/listinfo/linux-phy
maintainer Applied
#2 lore raw
In reply to Heiko Stuebner
Quoted 3 lines · Heiko Stuebner

Add the missing documentation for the newly added clkout_ctl_phy field.

Applied, thanks!

[1/1] phy: rockchip: inno-usb2: Add missing clkout_ctl_phy kerneldoc

      commit: 2ace2e949979b82f82f12dd76d7c5a6145246ca3

Best regards,

Signature · 1 line
~Vinod