CC: [email protected] CC: [email protected] TO: Lubomir Rintel <[email protected]>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 729e3d091984487f7aa1ebfabfe594e5b317ed0f commit: 08f13e7c3430889621dcefd1b1e52490f654a285 phy: Add USB2 PHY driver for Marvell MMP3 SoC date: 11 months ago :::::: branch date: 23 hours ago :::::: commit date: 11 months ago config: i386-randconfig-m021-20200913 (attached as .config) compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> smatch warnings: drivers/phy/marvell/phy-mmp3-usb.c:162 mmp3_usb_phy_init() warn: ignoring unreachable code. # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=08f13e7c3430889621dcefd1b1e52490f654a285 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 08f13e7c3430889621dcefd1b1e52490f654a285 vim +162 drivers/phy/marvell/phy-mmp3-usb.c 08f13e7c343088 Lubomir Rintel 2019-06-18 139 08f13e7c343088 Lubomir Rintel 2019-06-18 140 static int mmp3_usb_phy_init(struct phy *phy) 08f13e7c343088 Lubomir Rintel 2019-06-18 141 { 08f13e7c343088 Lubomir Rintel 2019-06-18 142 struct mmp3_usb_phy *mmp3_usb_phy = phy_get_drvdata(phy); 08f13e7c343088 Lubomir Rintel 2019-06-18 143 void __iomem *base = mmp3_usb_phy->base; 08f13e7c343088 Lubomir Rintel 2019-06-18 144 08f13e7c343088 Lubomir Rintel 2019-06-18 145 if (cpu_is_mmp3_a0()) { 08f13e7c343088 Lubomir Rintel 2019-06-18 146 u2o_clear(base, USB2_PLL_REG0, (USB2_PLL_FBDIV_MASK_MMP3 08f13e7c343088 Lubomir Rintel 2019-06-18 147 | USB2_PLL_REFDIV_MASK_MMP3)); 08f13e7c343088 Lubomir Rintel 2019-06-18 148 u2o_set(base, USB2_PLL_REG0, 08f13e7c343088 Lubomir Rintel 2019-06-18 149 0xd << USB2_PLL_REFDIV_SHIFT_MMP3 08f13e7c343088 Lubomir Rintel 2019-06-18 150 | 0xf0 << USB2_PLL_FBDIV_SHIFT_MMP3); 08f13e7c343088 Lubomir Rintel 2019-06-18 151 } else if (cpu_is_mmp3_b0()) { 08f13e7c343088 Lubomir Rintel 2019-06-18 152 u2o_clear(base, USB2_PLL_REG0, USB2_PLL_REFDIV_MASK_MMP3_B0 08f13e7c343088 Lubomir Rintel 2019-06-18 153 | USB2_PLL_FBDIV_MASK_MMP3_B0); 08f13e7c343088 Lubomir Rintel 2019-06-18 154 u2o_set(base, USB2_PLL_REG0, 08f13e7c343088 Lubomir Rintel 2019-06-18 155 0xd << USB2_PLL_REFDIV_SHIFT_MMP3_B0 08f13e7c343088 Lubomir Rintel 2019-06-18 156 | 0xf0 << USB2_PLL_FBDIV_SHIFT_MMP3_B0); 08f13e7c343088 Lubomir Rintel 2019-06-18 157 } else { 08f13e7c343088 Lubomir Rintel 2019-06-18 158 dev_err(&phy->dev, "unsupported silicon revision\n"); 08f13e7c343088 Lubomir Rintel 2019-06-18 159 return -ENODEV; 08f13e7c343088 Lubomir Rintel 2019-06-18 160 } 08f13e7c343088 Lubomir Rintel 2019-06-18 161 08f13e7c343088 Lubomir Rintel 2019-06-18 @162 u2o_clear(base, USB2_PLL_REG1, USB2_PLL_PU_PLL_MASK 08f13e7c343088 Lubomir Rintel 2019-06-18 163 | USB2_PLL_ICP_MASK_MMP3 08f13e7c343088 Lubomir Rintel 2019-06-18 164 | USB2_PLL_KVCO_MASK_MMP3 08f13e7c343088 Lubomir Rintel 2019-06-18 165 | USB2_PLL_CALI12_MASK_MMP3); 08f13e7c343088 Lubomir Rintel 2019-06-18 166 u2o_set(base, USB2_PLL_REG1, 1 << USB2_PLL_PU_PLL_SHIFT_MMP3 08f13e7c343088 Lubomir Rintel 2019-06-18 167 | 1 << USB2_PLL_LOCK_BYPASS_SHIFT_MMP3 08f13e7c343088 Lubomir Rintel 2019-06-18 168 | 3 << USB2_PLL_ICP_SHIFT_MMP3 08f13e7c343088 Lubomir Rintel 2019-06-18 169 | 3 << USB2_PLL_KVCO_SHIFT_MMP3 08f13e7c343088 Lubomir Rintel 2019-06-18 170 | 3 << USB2_PLL_CAL12_SHIFT_MMP3); 08f13e7c343088 Lubomir Rintel 2019-06-18 171 08f13e7c343088 Lubomir Rintel 2019-06-18 172 u2o_clear(base, USB2_TX_REG0, USB2_TX_IMPCAL_VTH_MASK_MMP3); 08f13e7c343088 Lubomir Rintel 2019-06-18 173 u2o_set(base, USB2_TX_REG0, 2 << USB2_TX_IMPCAL_VTH_SHIFT_MMP3); 08f13e7c343088 Lubomir Rintel 2019-06-18 174 08f13e7c343088 Lubomir Rintel 2019-06-18 175 u2o_clear(base, USB2_TX_REG1, USB2_TX_VDD12_MASK_MMP3 08f13e7c343088 Lubomir Rintel 2019-06-18 176 | USB2_TX_AMP_MASK_MMP3 08f13e7c343088 Lubomir Rintel 2019-06-18 177 | USB2_TX_CK60_PHSEL_MASK_MMP3); 08f13e7c343088 Lubomir Rintel 2019-06-18 178 u2o_set(base, USB2_TX_REG1, 3 << USB2_TX_VDD12_SHIFT_MMP3 08f13e7c343088 Lubomir Rintel 2019-06-18 179 | 4 << USB2_TX_AMP_SHIFT_MMP3 08f13e7c343088 Lubomir Rintel 2019-06-18 180 | 4 << USB2_TX_CK60_PHSEL_SHIFT_MMP3); 08f13e7c343088 Lubomir Rintel 2019-06-18 181 08f13e7c343088 Lubomir Rintel 2019-06-18 182 u2o_clear(base, USB2_TX_REG2, 3 << USB2_TX_DRV_SLEWRATE_SHIFT); 08f13e7c343088 Lubomir Rintel 2019-06-18 183 u2o_set(base, USB2_TX_REG2, 2 << USB2_TX_DRV_SLEWRATE_SHIFT); 08f13e7c343088 Lubomir Rintel 2019-06-18 184 08f13e7c343088 Lubomir Rintel 2019-06-18 185 u2o_clear(base, USB2_RX_REG0, USB2_RX_SQ_THRESH_MASK_MMP3); 08f13e7c343088 Lubomir Rintel 2019-06-18 186 u2o_set(base, USB2_RX_REG0, 0xa << USB2_RX_SQ_THRESH_SHIFT_MMP3); 08f13e7c343088 Lubomir Rintel 2019-06-18 187 08f13e7c343088 Lubomir Rintel 2019-06-18 188 u2o_set(base, USB2_ANA_REG1, 0x1 << USB2_ANA_PU_ANA_SHIFT_MMP3); 08f13e7c343088 Lubomir Rintel 2019-06-18 189 08f13e7c343088 Lubomir Rintel 2019-06-18 190 u2o_set(base, USB2_OTG_REG0, 0x1 << USB2_OTG_PU_OTG_SHIFT_MMP3); 08f13e7c343088 Lubomir Rintel 2019-06-18 191 08f13e7c343088 Lubomir Rintel 2019-06-18 192 return 0; 08f13e7c343088 Lubomir Rintel 2019-06-18 193 } 08f13e7c343088 Lubomir Rintel 2019-06-18 194 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/[email protected]
.config.gz
Description: application/gzip
_______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
