Re: [GIT PULL] USB patches for v3.11 merge window

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Fri, Jun 14, 2013 at 11:28:51AM +0300, Roger Quadros wrote:
> On 06/13/2013 05:55 PM, Felipe Balbi wrote:
> > HI,
> > 
> > On Thu, Jun 13, 2013 at 05:53:50PM +0300, Roger Quadros wrote:
> >> On 06/13/2013 05:17 PM, Felipe Balbi wrote:
> >>> Hi,
> >>>
> >>> On Thu, Jun 13, 2013 at 12:05:36PM +0300, Roger Quadros wrote:
> >>>> On 06/13/2013 01:37 AM, Greg KH wrote:
> >>>>> On Wed, Jun 12, 2013 at 02:31:17PM -0700, Greg KH wrote:
> >>>>>> On Thu, Jun 13, 2013 at 12:19:02AM +0300, Felipe Balbi wrote:
> >>>>>>> Hi,
> >>>>>>>
> >>>>>>> On Wed, Jun 12, 2013 at 11:56:19PM +0300, Felipe Balbi wrote:
> >>>>>>>>> But, I get a build error with your tree pulled in, at the link point in
> >>>>>>>>> time:
> >>>>>>>>>
> >>>>>>>>> ERROR: "usb_add_phy" [drivers/usb/phy/phy-samsung-usb3.ko] undefined!
> >>>>>>>>> ERROR: "usb_remove_phy" [drivers/usb/phy/phy-samsung-usb3.ko] undefined!
> >>>>>>>>> ERROR: "usb_add_phy" [drivers/usb/phy/phy-samsung-usb2.ko] undefined!
> >>>>>>>>> ERROR: "usb_remove_phy" [drivers/usb/phy/phy-samsung-usb2.ko] undefined!
> >>>>>>>>> ERROR: "usb_add_phy" [drivers/usb/phy/phy-rcar-usb.ko] undefined!
> >>>>>>>>> ERROR: "usb_remove_phy" [drivers/usb/phy/phy-rcar-usb.ko] undefined!
> >>>>>>>>> ERROR: "usb_remove_phy" [drivers/usb/phy/phy-omap-usb3.ko] undefined!
> >>>>>>>>> ERROR: "usb_add_phy_dev" [drivers/usb/phy/phy-omap-usb3.ko] undefined!
> >>>>>>>>> ERROR: "usb_add_phy_dev" [drivers/usb/phy/phy-nop.ko] undefined!
> >>>>>>>>> ERROR: "usb_remove_phy" [drivers/usb/phy/phy-nop.ko] undefined!
> >>>>>>>>> ERROR: "usb_add_phy_dev" [drivers/usb/phy/phy-isp1301.ko] undefined!
> >>>>>>>>> ERROR: "usb_remove_phy" [drivers/usb/phy/phy-isp1301.ko] undefined!
> >>>>>>>>> ERROR: "usb_add_phy" [drivers/usb/phy/phy-gpio-vbus-usb.ko] undefined!
> >>>>>>>>> ERROR: "usb_remove_phy" [drivers/usb/phy/phy-gpio-vbus-usb.ko] undefined!
> >>>>>>>>> ERROR: "usb_get_phy" [drivers/usb/musb/ux500.ko] undefined!
> >>>>>>>>> ERROR: "usb_put_phy" [drivers/usb/musb/ux500.ko] undefined!
> >>>>>>>>> ERROR: "usb_put_phy" [drivers/usb/gadget/pxa27x_udc.ko] undefined!
> >>>>>>>>> ERROR: "usb_get_phy" [drivers/usb/gadget/pxa27x_udc.ko] undefined!
> >>>>>>>>> ERROR: "devm_usb_get_phy" [drivers/usb/gadget/mv_udc.ko] undefined!
> >>>>>>>>> ERROR: "devm_usb_get_phy" [drivers/usb/dwc3/dwc3.ko] undefined!
> >>>>>>>>> ERROR: "devm_usb_get_phy_by_phandle" [drivers/usb/dwc3/dwc3.ko] undefined!
> >>>>>>>>> ERROR: "usb_get_phy" [drivers/usb/chipidea/ci_hdrc.ko] undefined!
> >>>>>>>>> ERROR: "usb_put_phy" [drivers/usb/chipidea/ci_hdrc.ko] undefined!
> >>>>>>>>> ERROR: "usb_get_phy" [drivers/power/isp1704_charger.ko] undefined!
> >>>>>>>>> ERROR: "usb_put_phy" [drivers/power/isp1704_charger.ko] undefined!
> >>>>>>>>>
> >>>>>>>>> Any ideas?
> >>>>>>>>
> >>>>>>>> hmm... I think it was Roger's patches changing the way PHY layer is
> >>>>>>>> enabled, do you mind if I drop that for now ? I would have to rebase,
> >>>>>>>> but I guess it's a necessary evil at this point.
> >>>>>>>
> >>>>>>> I took the silence as a yes and pushed a new tag with Roger's patches
> >>>>>>> removed. I have also removed one musb patch which wasn't necessary after
> >>>>>>> all.
> >>>>>>
> >>>>>> Sorry for the silence, I went to lunch :)
> >>>>>>
> >>>>>>> Here's an updated pull request, which I have compiled on ARM and x86
> >>>>>>> and didn't see the linking problem mentioned above:
> >>>>>>
> >>>>>> Ok, thanks, I'll try it out now...
> >>>>>
> >>>>> That worked, now pulled and pushed out, thanks.
> >>>>
> >>>> Hi Greg,
> >>>>
> >>>> I tried to reproduce the above problem but couldn't. Could you please
> >>>> share your .config that caused the issue and the command sequence you used to arrive
> >>>> at the problem? Thanks.
> >>>>
> >>>> By any chance is it possible that there were some stale modules lying around
> >>>> in your tree?
> >>>>
> >>>> The problem shouldn't happen because the symbols are defined in phy.c (USB_PHY) which
> >>>> is selected by the PHY drivers. Even if USB_PHY is not selected, the functions (except
> >>>> usb_add/remove_phy() are defined as inlines in /include/linux/usb/phy.h
> >>>
> >>> If CONFIG_USB is set to M you should see the problem since EHCI-OMAP
> >>> would 'select' (meaning set Y) to the PHY driver. Kbuild won't
> >>> statically link anything from a directory which was entered due to M.
> >>>
> >>> Not sure if that sounds as clear as I expected :-p
> >>>
> >>
> >> OK thanks. Maybe setting USB_PHY as tristate should fix it. I'll try
> >> it out tomorrow.
> > 
> > in your patchset you removed USB_PHY right ? That's what caused the
> > issue.
> > 
> No I didn't remove USB_PHY. Just that it is not user selectable in menuconfig.
> 
> The following patch fixed it for me. I'll repost the patchset.
> 
> cheers,
> -roger
> ---
> 
> diff --git a/drivers/usb/Makefile b/drivers/usb/Makefile
> index 411c34c..b9bb845 100644
> --- a/drivers/usb/Makefile
> +++ b/drivers/usb/Makefile
> @@ -43,7 +43,8 @@ obj-$(CONFIG_USB_MICROTEK)	+= image/
>  
>  obj-$(CONFIG_USB_SERIAL)	+= serial/
>  
> -obj-$(CONFIG_USB)		+= misc/ phy/
> +obj-$(CONFIG_USB)		+= misc/
> +obj-$(CONFIG_USB_SUPPORT)	+= phy/

makes sense, but don't send it now. I can't get this in v3.11 anymore.

This is a minor patch which can wait until v3.12 merge window and I'll
make sure to queue it by then, no issues at all.

-- 
balbi

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux