linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Amelie DELAUNAY <amelie.delaunay@st.com>
To: Felipe Balbi <balbi@kernel.org>, kernel test robot <lkp@intel.com>
Cc: "kbuild-all@lists.01.org" <kbuild-all@lists.01.org>,
	"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
	"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: [balbi-usb:testing/next 32/38] drd.c:undefined reference to `usb_role_switch_get_drvdata'
Date: Wed, 9 Sep 2020 10:58:39 +0200	[thread overview]
Message-ID: <55abf0b6-2b21-faf2-7581-9be7da4475f2@st.com> (raw)
In-Reply-To: <91a69ea7-71b8-be3c-19ad-980306681b2c@st.com>



On 9/9/20 9:33 AM, Amelie DELAUNAY wrote:
> Hi,
> 
> On 9/9/20 7:42 AM, Felipe Balbi wrote:
>>
>> Hi,
>>
>> kernel test robot <lkp@intel.com> writes:
>>> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git 
>>> testing/next
>>> head:   3c9722514c3fb74bbe0af87c20bc6b4c47121287
>>> commit: a0f0bc95705446b8b1476338056bf869271ba36a [32/38] usb: dwc2: 
>>> override PHY input signals with usb role switch support
>>> config: arc-randconfig-r016-20200908 (attached as .config)
>>> compiler: arceb-elf-gcc (GCC) 9.3.0
>>> 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
>>>          git checkout a0f0bc95705446b8b1476338056bf869271ba36a
>>>          # save the attached .config to linux build tree
>>>          COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 
>>> make.cross ARCH=arc
>>>
>>> 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 >>):
>>>
>>>     arceb-elf-ld: lib/stackdepot.o: in function `filter_irq_stacks':
>>>     stackdepot.c:(.text+0x5a): undefined reference to 
>>> `__irqentry_text_start'
>>>     arceb-elf-ld: stackdepot.c:(.text+0x5a): undefined reference to 
>>> `__irqentry_text_start'
>>>     arceb-elf-ld: stackdepot.c:(.text+0x62): undefined reference to 
>>> `__irqentry_text_end'
>>>     arceb-elf-ld: stackdepot.c:(.text+0x62): undefined reference to 
>>> `__irqentry_text_end'
>>>     arceb-elf-ld: stackdepot.c:(.text+0x6a): undefined reference to 
>>> `__softirqentry_text_start'
>>>     arceb-elf-ld: stackdepot.c:(.text+0x6a): undefined reference to 
>>> `__softirqentry_text_start'
>>>     arceb-elf-ld: stackdepot.c:(.text+0x72): undefined reference to 
>>> `__softirqentry_text_end'
>>>     arceb-elf-ld: stackdepot.c:(.text+0x72): undefined reference to 
>>> `__softirqentry_text_end'
>>>     arceb-elf-ld: drivers/usb/dwc2/drd.o: in function 
>>> `dwc2_drd_role_sw_set':
>>>>> drd.c:(.text+0x82): undefined reference to 
>>>>> `usb_role_switch_get_drvdata'
>>>>> arceb-elf-ld: drd.c:(.text+0x82): undefined reference to 
>>>>> `usb_role_switch_get_drvdata'
>>>     arceb-elf-ld: drivers/usb/dwc2/drd.o: in function `dwc2_drd_init':
>>>>> drd.c:(.text+0x1c0): undefined reference to `usb_role_switch_register'
>>>>> arceb-elf-ld: drd.c:(.text+0x1c0): undefined reference to 
>>>>> `usb_role_switch_register'
>>>     arceb-elf-ld: drivers/usb/dwc2/drd.o: in function `dwc2_drd_exit':
>>>>> drd.c:(.text+0x2c4): undefined reference to 
>>>>> `usb_role_switch_unregister'
>>>>> arceb-elf-ld: drd.c:(.text+0x2c4): undefined reference to 
>>>>> `usb_role_switch_unregister'
>>
>> Amelie? Have you seen this? Is it ARC-specific?
>>
> Never seen this before. But looking at DWC2 Kconfig and Makefile, I 
> should have add the 'select USB_ROLE_SWITCH' as it is in DWC3 Kconfig. 
> Because in my patch, USB_ROLE_SWITCH is selected if USB_DWC2_DUAL_ROLE, 
> but drd.c (using USB role switch API) is compiled if CONFIG_USB_DWC2 is 
> enabled, whatever DWC2 mode.
> 
> So, an update of DWC2 Kconfig/Makefile as DWC3 seems required.
> I send a v6 or a fixup of "usb: dwc2: override PHY input signals with 
> usb role switch support" can be done ?

ARC DWC2/USB_ROLE_SWITCH config is:
CONFIG_USB_DWC2=y
CONFIG_USB_DWC2_DUAL_ROLE=n
CONFIG_USB_DWC2_HOST=y
CONFIG_USB_DWC2_PERIPHERAL=n
CONFIG_USB_ROLE_SWITCH=m

I succeed to reproduce the issue with this configuration. I'm preparing 
a fix.

  reply	other threads:[~2020-09-09  8:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <202009090044.0oZdDUmk%lkp@intel.com>
2020-09-09  5:42 ` [balbi-usb:testing/next 32/38] drd.c:undefined reference to `usb_role_switch_get_drvdata' Felipe Balbi
2020-09-09  7:33   ` Amelie DELAUNAY
2020-09-09  8:58     ` Amelie DELAUNAY [this message]
2020-09-09  9:39       ` Amelie DELAUNAY

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=55abf0b6-2b21-faf2-7581-9be7da4475f2@st.com \
    --to=amelie.delaunay@st.com \
    --cc=balbi@kernel.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=lkp@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).