mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Johan Hovold <johan@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: drivers/usb/phy/phy-fsl-usb.c:110:9: sparse: sparse: incorrect type in argument 2 (different address spaces)
Date: Mon, 28 Sep 2026 19:15:42 +0200	[thread overview]
Message-ID: <202609281938.kuwyhhWS-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   72d3fcf802c45d00b300f25b848a93c3a2bd7c7e
commit: a71f5aef1be98fb10f00e66a0ac4ef23ba9c877f USB: gadget: fsl-udc: enable compile testing
date:   3 months ago
config: mips-randconfig-r2301-20260928 (https://download.01.org/0day-ci/archive/20260928/202609281938.kuwyhhWS-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260928/202609281938.kuwyhhWS-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
| Fixes: a71f5aef1be9 ("USB: gadget: fsl-udc: enable compile testing")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202609281938.kuwyhhWS-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
   drivers/usb/phy/phy-fsl-usb.c:49:20: sparse: sparse: symbol 'otg_suspend_state' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:60:22: sparse: sparse: symbol 'a_wait_vrise_tmr' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:60:41: sparse: sparse: symbol 'a_wait_bcon_tmr' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:60:59: sparse: sparse: symbol 'a_aidl_bdis_tmr' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:61:9: sparse: sparse: symbol 'b_ase0_brst_tmr' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:61:27: sparse: sparse: symbol 'b_se0_srp_tmr' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:64:22: sparse: sparse: symbol 'b_data_pulse_tmr' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:64:41: sparse: sparse: symbol 'b_vbus_pulse_tmr' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:64:60: sparse: sparse: symbol 'b_srp_fail_tmr' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:65:9: sparse: sparse: symbol 'b_srp_wait_tmr' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:65:26: sparse: sparse: symbol 'a_wait_enum_tmr' was not declared. Should it be static?
>> drivers/usb/phy/phy-fsl-usb.c:110:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:110:9: sparse:     expected void volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:110:9: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:105:5: sparse: sparse: symbol 'write_ulpi' was not declared. Should it be static?
>> drivers/usb/phy/phy-fsl-usb.c:122:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:122:15: sparse:     expected void const volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:122:15: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:132:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:132:9: sparse:     expected void volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:132:9: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:118:6: sparse: sparse: symbol 'fsl_otg_chrg_vbus' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:140:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:140:15: sparse:     expected void const volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:140:15: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:150:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:150:9: sparse:     expected void volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:150:9: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:136:6: sparse: sparse: symbol 'fsl_otg_dischrg_vbus' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:159:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:159:23: sparse:     expected void const volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:159:23: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:160:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:160:17: sparse:     expected void volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:160:17: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:162:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:162:23: sparse:     expected void const volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:162:23: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:164:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:164:17: sparse:     expected void volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:164:17: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:154:6: sparse: sparse: symbol 'fsl_otg_drv_vbus' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:176:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:176:15: sparse:     expected void const volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:176:15: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:183:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:183:9: sparse:     expected void volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:183:9: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:172:6: sparse: sparse: symbol 'fsl_otg_loc_conn' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:195:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:195:15: sparse:     expected void const volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:195:15: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:201:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:201:9: sparse:     expected void volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:201:9: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:191:6: sparse: sparse: symbol 'fsl_otg_loc_sof' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:212:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:212:15: sparse:     expected void const volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:212:15: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:214:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:214:9: sparse:     expected void volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:214:9: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:206:6: sparse: sparse: symbol 'fsl_otg_start_pulse' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:222:6: sparse: sparse: symbol 'b_data_pulse_end' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:241:6: sparse: sparse: symbol 'b_vbus_pulse_end' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:254:6: sparse: sparse: symbol 'b_srp_end' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:269:6: sparse: sparse: symbol 'a_wait_enum' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:279:6: sparse: sparse: symbol 'set_tmout' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:285:5: sparse: sparse: symbol 'fsl_otg_init_timers' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:342:6: sparse: sparse: symbol 'fsl_otg_uninit_timers' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:450:19: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:450:19: sparse:     expected void const volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:450:19: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:452:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:452:9: sparse:     expected void volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:452:9: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:453:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:453:16: sparse:     expected void const volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:453:16: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:446:6: sparse: sparse: symbol 'otg_reset_controller' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:475:20: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:475:20: sparse:     expected void const volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:475:20: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:458:5: sparse: sparse: symbol 'fsl_otg_start_host' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:525:5: sparse: sparse: symbol 'fsl_otg_start_gadget' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:582:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:582:23: sparse:     expected void const volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:582:23: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:618:31: sparse: sparse: Using plain integer as NULL pointer
   drivers/usb/phy/phy-fsl-usb.c:713:18: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:713:18: sparse:     expected void const volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:713:18: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:717:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:717:9: sparse:     expected void volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:717:9: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:707:13: sparse: sparse: symbol 'fsl_otg_isr' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:858:21: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct usb_dr_mmap *static [toplevel] usb_dr_regs @@     got void [noderef] __iomem * @@
   drivers/usb/phy/phy-fsl-usb.c:858:21: sparse:     expected struct usb_dr_mmap *static [toplevel] usb_dr_regs
   drivers/usb/phy/phy-fsl-usb.c:858:21: sparse:     got void [noderef] __iomem *
   drivers/usb/phy/phy-fsl-usb.c:860:21: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void [noderef] __iomem *regs @@     got void * @@
   drivers/usb/phy/phy-fsl-usb.c:860:21: sparse:     expected void [noderef] __iomem *regs
   drivers/usb/phy/phy-fsl-usb.c:860:21: sparse:     got void *
>> drivers/usb/phy/phy-fsl-usb.c:884:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got struct usb_dr_mmap *dr_mem_map @@
   drivers/usb/phy/phy-fsl-usb.c:884:30: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/usb/phy/phy-fsl-usb.c:884:30: sparse:     got struct usb_dr_mmap *dr_mem_map
   drivers/usb/phy/phy-fsl-usb.c:891:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:891:16: sparse:     expected void const volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:891:16: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:893:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:893:9: sparse:     expected void volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:893:9: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:896:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:896:16: sparse:     expected void const volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:896:16: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:898:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:898:9: sparse:     expected void volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:898:9: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:901:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:901:16: sparse:     expected void const volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:901:16: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:906:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:906:9: sparse:     expected void volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:906:9: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:909:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:909:16: sparse:     expected void const volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:909:16: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:924:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:924:9: sparse:     expected void volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:924:9: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:928:42: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:928:42: sparse:     expected void const volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:928:42: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:930:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:930:42: sparse:     expected void volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:930:42: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:934:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:934:16: sparse:     expected void const volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:934:16: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:937:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:937:9: sparse:     expected void volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:937:9: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:944:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:944:13: sparse:     expected void const volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:944:13: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:955:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:955:16: sparse:     expected void const volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:955:16: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:958:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:958:9: sparse:     expected void volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:958:9: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:833:5: sparse: sparse: symbol 'usb_otg_start' was not declared. Should it be static?
>> drivers/usb/phy/phy-fsl-usb.c:995:18: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got void * @@
   drivers/usb/phy/phy-fsl-usb.c:995:18: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/usb/phy/phy-fsl-usb.c:995:18: sparse:     got void *
   drivers/usb/phy/phy-fsl-usb.c:1005:24: sparse: sparse: symbol 'fsl_otg_driver' was not declared. Should it be static?

vim +110 drivers/usb/phy/phy-fsl-usb.c

0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  104  
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  105  int write_ulpi(u8 addr, u8 data)
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  106  {
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  107  	u32 temp;
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  108  
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  109  	temp = 0x60000000 | (addr << 16) | data;
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18 @110  	fsl_writel(temp, &usb_dr_regs->ulpiview);
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  111  	return 0;
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  112  }
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  113  
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  114  /* -------------------------------------------------------------*/
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  115  /* Operations that will be called from OTG Finite State Machine */
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  116  
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  117  /* Charge vbus for vbus pulsing in SRP */
da8cc16724da29 drivers/usb/phy/phy-fsl-usb.c Anton Tikhomirov 2013-10-03  118  void fsl_otg_chrg_vbus(struct otg_fsm *fsm, int on)
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  119  {
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  120  	u32 tmp;
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  121  
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18 @122  	tmp = fsl_readl(&usb_dr_regs->otgsc) & ~OTGSC_INTSTS_MASK;
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  123  
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  124  	if (on)
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  125  		/* stop discharging, start charging */
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  126  		tmp = (tmp & ~OTGSC_CTRL_VBUS_DISCHARGE) |
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  127  			OTGSC_CTRL_VBUS_CHARGE;
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  128  	else
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  129  		/* stop charging */
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  130  		tmp &= ~OTGSC_CTRL_VBUS_CHARGE;
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  131  
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  132  	fsl_writel(tmp, &usb_dr_regs->otgsc);
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  133  }
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  134  

:::::: The code at line 110 was first introduced by commit
:::::: 0807c500a1a6d7fa20cbd7bbe7fea14a66112463 USB: add Freescale USB OTG Transceiver driver

:::::: TO: Li Yang <leoli@freescale.com>
:::::: CC: Greg Kroah-Hartman <gregkh@suse.de>

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

                 reply	other threads:[~2026-09-28 17:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202609281938.kuwyhhWS-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=johan@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®