* [openeuler:OLK-5.10 29859/30000] drivers/usb/dwc2/core_intr.c:404:22: error: 'struct dwc2_hsotg' has no member named 'bus_suspended'
@ 2024-08-29 8:00 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-08-29 8:00 UTC (permalink / raw)
To: kernel, sanglipeng1; +Cc: oe-kbuild-all
tree: https://gitee.com/openeuler/kernel.git OLK-5.10
head: 9c002e226526016292b0c1d3dbed7ebc4e3e71d6
commit: cae57e806b90cecf7f322a6a37de4fb422f1ea60 [29859/30000] usb: dwc2: gadget: LPM flow fix
config: x86_64-randconfig-101-20240829 (https://download.01.org/0day-ci/archive/20240829/202408291511.CoEgpYo7-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240829/202408291511.CoEgpYo7-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202408291511.CoEgpYo7-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/usb/dwc2/core_intr.c: In function 'dwc2_wakeup_from_lpm_l1':
>> drivers/usb/dwc2/core_intr.c:404:22: error: 'struct dwc2_hsotg' has no member named 'bus_suspended'
404 | hsotg->bus_suspended = false;
| ^~
vim +404 drivers/usb/dwc2/core_intr.c
340
341 /**
342 * dwc2_wakeup_from_lpm_l1 - Exit the device from LPM L1 state
343 *
344 * @hsotg: Programming view of DWC_otg controller
345 *
346 */
347 void dwc2_wakeup_from_lpm_l1(struct dwc2_hsotg *hsotg, bool remotewakeup)
348 {
349 u32 glpmcfg;
350 u32 pcgctl;
351 u32 dctl;
352
353 if (hsotg->lx_state != DWC2_L1) {
354 dev_err(hsotg->dev, "Core isn't in DWC2_L1 state\n");
355 return;
356 }
357
358 glpmcfg = dwc2_readl(hsotg, GLPMCFG);
359 if (dwc2_is_device_mode(hsotg)) {
360 dev_dbg(hsotg->dev, "Exit from L1 state, remotewakeup=%d\n", remotewakeup);
361 glpmcfg &= ~GLPMCFG_ENBLSLPM;
362 glpmcfg &= ~GLPMCFG_HIRD_THRES_MASK;
363 dwc2_writel(hsotg, glpmcfg, GLPMCFG);
364
365 pcgctl = dwc2_readl(hsotg, PCGCTL);
366 pcgctl &= ~PCGCTL_ENBL_SLEEP_GATING;
367 dwc2_writel(hsotg, pcgctl, PCGCTL);
368
369 glpmcfg = dwc2_readl(hsotg, GLPMCFG);
370 if (glpmcfg & GLPMCFG_ENBESL) {
371 glpmcfg |= GLPMCFG_RSTRSLPSTS;
372 dwc2_writel(hsotg, glpmcfg, GLPMCFG);
373 }
374
375 if (remotewakeup) {
376 if (dwc2_hsotg_wait_bit_set(hsotg, GLPMCFG, GLPMCFG_L1RESUMEOK, 1000)) {
377 dev_warn(hsotg->dev, "%s: timeout GLPMCFG_L1RESUMEOK\n", __func__);
378 goto fail;
379 return;
380 }
381
382 dctl = dwc2_readl(hsotg, DCTL);
383 dctl |= DCTL_RMTWKUPSIG;
384 dwc2_writel(hsotg, dctl, DCTL);
385
386 if (dwc2_hsotg_wait_bit_set(hsotg, GINTSTS, GINTSTS_WKUPINT, 1000)) {
387 dev_warn(hsotg->dev, "%s: timeout GINTSTS_WKUPINT\n", __func__);
388 goto fail;
389 return;
390 }
391 }
392
393 glpmcfg = dwc2_readl(hsotg, GLPMCFG);
394 if (glpmcfg & GLPMCFG_COREL1RES_MASK || glpmcfg & GLPMCFG_SLPSTS ||
395 glpmcfg & GLPMCFG_L1RESUMEOK) {
396 goto fail;
397 return;
398 }
399
400 /* Inform gadget to exit from L1 */
401 call_gadget(hsotg, resume);
402 /* Change to L0 state */
403 hsotg->lx_state = DWC2_L0;
> 404 hsotg->bus_suspended = false;
405 fail: dwc2_gadget_init_lpm(hsotg);
406 } else {
407 /* TODO */
408 dev_err(hsotg->dev, "Host side LPM is not supported.\n");
409 return;
410 }
411 }
412
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-08-29 8:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-29 8:00 [openeuler:OLK-5.10 29859/30000] drivers/usb/dwc2/core_intr.c:404:22: error: 'struct dwc2_hsotg' has no member named 'bus_suspended' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.