All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kernel@openeuler.org, sanglipeng1 <sanglipeng1@jd.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [openeuler:OLK-5.10 29859/30000] drivers/usb/dwc2/core_intr.c:404:22: error: 'struct dwc2_hsotg' has no member named 'bus_suspended'
Date: Thu, 29 Aug 2024 16:00:38 +0800	[thread overview]
Message-ID: <202408291511.CoEgpYo7-lkp@intel.com> (raw)

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

                 reply	other threads:[~2024-08-29  8:00 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=202408291511.CoEgpYo7-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kernel@openeuler.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=sanglipeng1@jd.com \
    /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 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.