* [linux-stable-rc:linux-5.4.y 6424/6532] drivers/usb/dwc2/core_intr.c:715:9: error: no member named 'bus_suspended' in 'struct dwc2_hsotg'
@ 2021-05-15 0:54 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-05-15 0:54 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 4006 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.4.y
head: b82e5721a17325739adef83a029340a63b53d4ad
commit: ce7b62d857919e511c6d5171c578c4b7e1bf0e67 [6424/6532] usb: dwc2: Fix hibernation between host and device modes.
config: x86_64-randconfig-a016-20210514 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project e475d4d69f04597c3f6c34c8ff1899bf44502a94)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?id=ce7b62d857919e511c6d5171c578c4b7e1bf0e67
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-5.4.y
git checkout ce7b62d857919e511c6d5171c578c4b7e1bf0e67
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/usb/dwc2/core_intr.c:715:9: error: no member named 'bus_suspended' in 'struct dwc2_hsotg'
hsotg->bus_suspended = 0;
~~~~~ ^
1 error generated.
vim +715 drivers/usb/dwc2/core_intr.c
667
668 /**
669 * dwc_handle_gpwrdn_disc_det() - Handles the gpwrdn disconnect detect.
670 * Exits hibernation without restoring registers.
671 *
672 * @hsotg: Programming view of DWC_otg controller
673 * @gpwrdn: GPWRDN register
674 */
675 static inline void dwc_handle_gpwrdn_disc_det(struct dwc2_hsotg *hsotg,
676 u32 gpwrdn)
677 {
678 u32 gpwrdn_tmp;
679
680 /* Switch-on voltage to the core */
681 gpwrdn_tmp = dwc2_readl(hsotg, GPWRDN);
682 gpwrdn_tmp &= ~GPWRDN_PWRDNSWTCH;
683 dwc2_writel(hsotg, gpwrdn_tmp, GPWRDN);
684 udelay(5);
685
686 /* Reset core */
687 gpwrdn_tmp = dwc2_readl(hsotg, GPWRDN);
688 gpwrdn_tmp &= ~GPWRDN_PWRDNRSTN;
689 dwc2_writel(hsotg, gpwrdn_tmp, GPWRDN);
690 udelay(5);
691
692 /* Disable Power Down Clamp */
693 gpwrdn_tmp = dwc2_readl(hsotg, GPWRDN);
694 gpwrdn_tmp &= ~GPWRDN_PWRDNCLMP;
695 dwc2_writel(hsotg, gpwrdn_tmp, GPWRDN);
696 udelay(5);
697
698 /* Deassert reset core */
699 gpwrdn_tmp = dwc2_readl(hsotg, GPWRDN);
700 gpwrdn_tmp |= GPWRDN_PWRDNRSTN;
701 dwc2_writel(hsotg, gpwrdn_tmp, GPWRDN);
702 udelay(5);
703
704 /* Disable PMU interrupt */
705 gpwrdn_tmp = dwc2_readl(hsotg, GPWRDN);
706 gpwrdn_tmp &= ~GPWRDN_PMUINTSEL;
707 dwc2_writel(hsotg, gpwrdn_tmp, GPWRDN);
708
709 /* De-assert Wakeup Logic */
710 gpwrdn_tmp = dwc2_readl(hsotg, GPWRDN);
711 gpwrdn_tmp &= ~GPWRDN_PMUACTV;
712 dwc2_writel(hsotg, gpwrdn_tmp, GPWRDN);
713
714 hsotg->hibernated = 0;
> 715 hsotg->bus_suspended = 0;
716
717 if (gpwrdn & GPWRDN_IDSTS) {
718 hsotg->op_state = OTG_STATE_B_PERIPHERAL;
719 dwc2_core_init(hsotg, false);
720 dwc2_enable_global_interrupts(hsotg);
721 dwc2_hsotg_core_init_disconnected(hsotg, false);
722 dwc2_hsotg_core_connect(hsotg);
723 } else {
724 hsotg->op_state = OTG_STATE_A_HOST;
725
726 /* Initialize the Core for Host mode */
727 dwc2_core_init(hsotg, false);
728 dwc2_enable_global_interrupts(hsotg);
729 dwc2_hcd_start(hsotg);
730 }
731 }
732
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 32729 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-05-15 0:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-15 0:54 [linux-stable-rc:linux-5.4.y 6424/6532] drivers/usb/dwc2/core_intr.c:715:9: error: no member named 'bus_suspended' in 'struct dwc2_hsotg' 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.