Skip to contentSkip to conversation

phy: rockchip: inno-usb2: fix missing kernel-doc

PATCH In review Vinod Koul 2 participants 3 messages May 19 – May 20

Subsystems (2)
lore
Share & tools
lore

Vinod Koul

author maintainer
#0 lore raw

PATCH 1/1 phy: rockchip: inno-usb2: fix missing kernel-doc

Commit 2775541de058 ("phy: rockchip: inno-usb2: Add clkout_ctl_phy support") added clkout_ctl_phy variable but missed to describe it, leading to warning

Warning: drivers/phy/rockchip/phy-rockchip-inno-usb2.c:184
struct member 'clkout_ctl_phy' not described in 'rockchip_usb2phy_cfg'

Document this variable

Fixes 2775541de058 ("phy: rockchip: inno-usb2: Add clkout_ctl_phy support")"
---
 drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 1 +
 1 file changed, 1 insertion(+)
drivers/phy/rockchip/phy-rockchip-inno-usb2.c +1 -0
index 133cfd6624e8..120b4a7433c3 100644
@@ -171,6 +171,7 @@ struct rockchip_usb2phy_port_cfg {
  * @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_phy: output clk phy registers
  * @port_cfgs: usb-phy port configurations.
  * @chg_det: charger detection registers.
  */
Signature · 7 lines
2.43.0


-- 
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 2 potential issue(s) to consider: - [Low] The commit adds a kernel-doc description for a struct member `clkout_ctl_phy` that does not exist…

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Low] The commit adds a kernel-doc description for a struct member clkout_ctl_phy that does not exist in struct rockchip_usb2phy_cfg.
- [Low] The Fixes: tag in the commit message is malformed due to an extraneous trailing double quote.
--

commit 532f790b604de504c1843006c2bda7a4bcb6937e
Author: Vinod Koul <[email protected]>

phy: rockchip: inno-usb2: fix missing kernel-doc

This commit documents the clkout_ctl_phy variable in the kernel-doc block to resolve a missing description warning.

Quoted 1 line
Fixes 2775541de058 ("phy: rockchip: inno-usb2: Add clkout_ctl_phy support")"

This isn't a bug, but there is an extraneous trailing double quote at the end of the Fixes tag.

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

Quoted 9 lines
drivers/phy/rockchip/phy-rockchip-inno-usb2.c +1 -0
index 8f4c08e599aa2..a69e7dbe18195 100644
@@ -171,6 +171,7 @@ struct rockchip_usb2phy_port_cfg {
  * @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_phy: output clk phy registers

Is the clkout_ctl_phy field present in the structure definition here?

If the structure is missing this member, adding the description will trigger an excess struct member warning instead.

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
author maintainer
#2 lore raw
Quoted 3 lines · On 19-05-26, 11:19, [email protected] wrote:

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Low] The commit adds a kernel-doc description for a struct member clkout_ctl_phy that does not exist in struct rockchip_usb2phy_cfg.
- [Low] The Fixes: tag in the commit message is malformed due to an extraneous trailing double quote.

Thanks for reporting this. fixed.

Quoted 27 lines

--

commit 532f790b604de504c1843006c2bda7a4bcb6937e
Author: Vinod Koul <[email protected]>

phy: rockchip: inno-usb2: fix missing kernel-doc

This commit documents the clkout_ctl_phy variable in the kernel-doc block to resolve a missing description warning.

Quoted 1 line
Fixes 2775541de058 ("phy: rockchip: inno-usb2: Add clkout_ctl_phy support")"

This isn't a bug, but there is an extraneous trailing double quote at the end of the Fixes tag.

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

Quoted 9 lines
drivers/phy/rockchip/phy-rockchip-inno-usb2.c +1 -0
index 8f4c08e599aa2..a69e7dbe18195 100644
@@ -171,6 +171,7 @@ struct rockchip_usb2phy_port_cfg {
  * @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_phy: output clk phy registers

Is the clkout_ctl_phy field present in the structure definition here?

Quoted 2 lines

If the structure is missing this member, adding the description will trigger an excess struct member warning instead.

Ideally right but in this case it add the missing one which should have been clear from the change log

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