[PATCH v1 1/4] phy: rockchip: inno-usb2: Add usb2 phy support for RK3368

kernel test robot lkp at intel.com
Sun Sep 7 09:09:25 PDT 2025


Hi WeiHao,

kernel test robot noticed the following build warnings:

[auto build test WARNING on rockchip/for-next]
[also build test WARNING on robh/for-next arm/for-next arm/fixes arm64/for-next/core clk/clk-next kvmarm/next shawnguo/for-next soc/for-next linus/master v6.17-rc4 next-20250905]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/WeiHao-Li/phy-rockchip-inno-usb2-Add-usb2-phy-support-for-RK3368/20250905-205804
base:   https://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.git for-next
patch link:    https://lore.kernel.org/r/20250905125318.7956-2-cn.liweihao%40gmail.com
patch subject: [PATCH v1 1/4] phy: rockchip: inno-usb2: Add usb2 phy support for RK3368
config: arc-randconfig-r132-20250907 (https://download.01.org/0day-ci/archive/20250907/202509072227.wBI6dBl4-lkp@intel.com/config)
compiler: arc-linux-gcc (GCC) 15.1.0
reproduce: (https://download.01.org/0day-ci/archive/20250907/202509072227.wBI6dBl4-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202509072227.wBI6dBl4-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/phy/rockchip/phy-rockchip-inno-usb2.c:1867:34: sparse: sparse: Initializer entry defined twice
   drivers/phy/rockchip/phy-rockchip-inno-usb2.c:1873:34: sparse:   also defined here

vim +1867 drivers/phy/rockchip/phy-rockchip-inno-usb2.c

  1849	
  1850	static const struct rockchip_usb2phy_cfg rk3368_phy_cfgs[] = {
  1851		{
  1852			.reg = 0x700,
  1853			.num_ports	= 2,
  1854			.clkout_ctl	= { 0x0724, 15, 15, 1, 0 },
  1855			.port_cfgs	= {
  1856				[USB2PHY_PORT_OTG] = {
  1857					.phy_sus	= { 0x0700, 8, 0, 0, 0x1d1 },
  1858					.bvalid_det_en	= { 0x0680, 3, 3, 0, 1 },
  1859					.bvalid_det_st	= { 0x0690, 3, 3, 0, 1 },
  1860					.bvalid_det_clr = { 0x06a0, 3, 3, 0, 1 },
  1861					.idfall_det_en	= { 0x0680, 6, 6, 0, 1 },
  1862					.idfall_det_st	= { 0x0690, 6, 6, 0, 1 },
  1863					.idfall_det_clr	= { 0x06a0, 6, 6, 0, 1 },
  1864					.idrise_det_en	= { 0x0680, 5, 5, 0, 1 },
  1865					.idrise_det_st	= { 0x0690, 5, 5, 0, 1 },
  1866					.idrise_det_clr	= { 0x06a0, 5, 5, 0, 1 },
> 1867					.ls_det_en	= { 0x0680, 2, 2, 0, 1 },
  1868					.ls_det_st	= { 0x0690, 2, 2, 0, 1 },
  1869					.ls_det_clr	= { 0x06a0, 2, 2, 0, 1 },
  1870					.utmi_bvalid	= { 0x04bc, 23, 23, 0, 1 },
  1871					.utmi_id	= { 0x04bc, 26, 26, 0, 1 },
  1872					.utmi_ls	= { 0x04bc, 25, 24, 0, 1 },
  1873					.ls_det_en	= { 0x079c, 15, 15, 1, 0 },
  1874				},
  1875				[USB2PHY_PORT_HOST] = {
  1876					.phy_sus	= { 0x0728, 8, 0, 0, 0x1d1 },
  1877					.ls_det_en	= { 0x0680, 4, 4, 0, 1 },
  1878					.ls_det_st	= { 0x0690, 4, 4, 0, 1 },
  1879					.ls_det_clr	= { 0x06a0, 4, 4, 0, 1 }
  1880				}
  1881			},
  1882			.chg_det = {
  1883				.opmode		= { 0x0700, 8, 0, 0, 0x1d7 },
  1884				.cp_det		= { 0x04b8, 30, 30, 0, 1 },
  1885				.dcp_det	= { 0x04b8, 29, 29, 0, 1 },
  1886				.dp_det		= { 0x04b8, 31, 31, 0, 1 },
  1887				.idm_sink_en	= { 0x0718, 8, 8, 0, 1 },
  1888				.idp_sink_en	= { 0x0718, 7, 7, 0, 1 },
  1889				.idp_src_en	= { 0x0718, 9, 9, 0, 1 },
  1890				.rdm_pdwn_en	= { 0x0718, 10, 10, 0, 1 },
  1891				.vdm_src_en	= { 0x0718, 12, 12, 0, 1 },
  1892				.vdp_src_en	= { 0x0718, 11, 11, 0, 1 },
  1893			},
  1894		},
  1895		{ /* sentinel */ }
  1896	};
  1897	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki



More information about the linux-phy mailing list