public inbox for linux-next@vger.kernel.org
 help / color / mirror / Atom feed
* Build errors in -next due to 'drivers:usb:fsl:Make fsl ehci drv an independent driver module'
@ 2015-05-27 19:59 Guenter Roeck
  2015-05-28  3:55 ` Ramneek Mehresh
  2015-05-28  4:02 ` Ramneek Mehresh
  0 siblings, 2 replies; 3+ messages in thread
From: Guenter Roeck @ 2015-05-27 19:59 UTC (permalink / raw)
  To: Ramneek Mehresh; +Cc: Alan Stern, Greg Kroah-Hartman, linux-kernel, linux-next

Hi,

your patch 'drivers:usb:fsl:Make fsl ehci drv an independent driver module'
converts the driver into a separate module. Unfortunately, it uses
non-exported functions from the ehci core code. This results in compile
errors for several powerpc configurations.

drivers/usb/host/ehci-fsl.c: In function 'ehci_fsl_drv_suspend':
drivers/usb/host/ehci-fsl.c:531:2: error: implicit declaration of function 'ehci_adjust_port_wakeup_flags'
drivers/usb/host/ehci-fsl.c: In function 'ehci_fsl_drv_resume':
drivers/usb/host/ehci-fsl.c:561:2: error: implicit declaration of function 'ehci_reset'

Guenter

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Build errors in -next due to 'drivers:usb:fsl:Make fsl ehci drv an independent driver module'
  2015-05-27 19:59 Build errors in -next due to 'drivers:usb:fsl:Make fsl ehci drv an independent driver module' Guenter Roeck
@ 2015-05-28  3:55 ` Ramneek Mehresh
  2015-05-28  4:02 ` Ramneek Mehresh
  1 sibling, 0 replies; 3+ messages in thread
From: Ramneek Mehresh @ 2015-05-28  3:55 UTC (permalink / raw)
  To: Guenter Roeck
  Cc: Alan Stern, Greg Kroah-Hartman, linux-kernel@vger.kernel.org,
	linux-next@vger.kernel.org



> -----Original Message-----
> From: Guenter Roeck [mailto:linux@roeck-us.net]
> Sent: Thursday, May 28, 2015 1:29 AM
> To: Mehresh Ramneek-B31383
> Cc: Alan Stern; Greg Kroah-Hartman; linux-kernel@vger.kernel.org; linux-
> next@vger.kernel.org
> Subject: Build errors in -next due to 'drivers:usb:fsl:Make fsl ehci drv an
> independent driver module'
> 
> Hi,
> 
> your patch 'drivers:usb:fsl:Make fsl ehci drv an independent driver module'
> converts the driver into a separate module. Unfortunately, it uses non-
> exported functions from the ehci core code. This results in compile errors for
> several powerpc configurations.
> 
> drivers/usb/host/ehci-fsl.c: In function 'ehci_fsl_drv_suspend':
> drivers/usb/host/ehci-fsl.c:531:2: error: implicit declaration of function
> 'ehci_adjust_port_wakeup_flags'
> drivers/usb/host/ehci-fsl.c: In function 'ehci_fsl_drv_resume':
> drivers/usb/host/ehci-fsl.c:561:2: error: implicit declaration of function
> 'ehci_reset'
>
Understood...apologies for the inconvenience caused. This problem comes when both 
ehci_hcd and ehci_fsl are built as modules. Till now, only ehci-hcd was build as 
module, and other drivers were built into it. I tested ehci_fsl as a module with ehci_hcd as build-in.

Now, there are two solutions for this.
1. export each function in ehci_hcd.c
2. I make ehci-fsl.c as built-in

Please suggest.
 
> Guenter

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Build errors in -next due to 'drivers:usb:fsl:Make fsl ehci drv an independent driver module'
  2015-05-27 19:59 Build errors in -next due to 'drivers:usb:fsl:Make fsl ehci drv an independent driver module' Guenter Roeck
  2015-05-28  3:55 ` Ramneek Mehresh
@ 2015-05-28  4:02 ` Ramneek Mehresh
  1 sibling, 0 replies; 3+ messages in thread
From: Ramneek Mehresh @ 2015-05-28  4:02 UTC (permalink / raw)
  To: Guenter Roeck
  Cc: Alan Stern, Greg Kroah-Hartman, linux-kernel@vger.kernel.org,
	linux-next@vger.kernel.org



> -----Original Message-----
> From: Mehresh Ramneek-B31383
> Sent: Thursday, May 28, 2015 9:25 AM
> To: 'Guenter Roeck'
> Cc: Alan Stern; Greg Kroah-Hartman; linux-kernel@vger.kernel.org; linux-
> next@vger.kernel.org
> Subject: RE: Build errors in -next due to 'drivers:usb:fsl:Make fsl ehci drv an
> independent driver module'
> 
> 
> 
> > -----Original Message-----
> > From: Guenter Roeck [mailto:linux@roeck-us.net]
> > Sent: Thursday, May 28, 2015 1:29 AM
> > To: Mehresh Ramneek-B31383
> > Cc: Alan Stern; Greg Kroah-Hartman; linux-kernel@vger.kernel.org;
> > linux- next@vger.kernel.org
> > Subject: Build errors in -next due to 'drivers:usb:fsl:Make fsl ehci
> > drv an independent driver module'
> >
> > Hi,
> >
> > your patch 'drivers:usb:fsl:Make fsl ehci drv an independent driver module'
> > converts the driver into a separate module. Unfortunately, it uses
> > non- exported functions from the ehci core code. This results in
> > compile errors for several powerpc configurations.
> >
> > drivers/usb/host/ehci-fsl.c: In function 'ehci_fsl_drv_suspend':
> > drivers/usb/host/ehci-fsl.c:531:2: error: implicit declaration of
> > function 'ehci_adjust_port_wakeup_flags'
> > drivers/usb/host/ehci-fsl.c: In function 'ehci_fsl_drv_resume':
> > drivers/usb/host/ehci-fsl.c:561:2: error: implicit declaration of
> > function 'ehci_reset'
> >
> Understood...apologies for the inconvenience caused. This problem comes
> when both ehci_hcd and ehci_fsl are built as modules. Till now, only ehci-hcd
> was build as module, and other drivers were built into it. I tested ehci_fsl as a
> module with ehci_hcd as build-in.
> 
> Now, there are two solutions for this.
> 1. export each function in ehci_hcd.c
> 2. I make ehci-fsl.c as built-in
> 
> Please suggest.
> 
I just reproduced the issue...it comes when USB driver is compiled with PM enabled !!
That's why we missed this this. I'll send the fix immediately.
> > Guenter

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-05-28  4:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-27 19:59 Build errors in -next due to 'drivers:usb:fsl:Make fsl ehci drv an independent driver module' Guenter Roeck
2015-05-28  3:55 ` Ramneek Mehresh
2015-05-28  4:02 ` Ramneek Mehresh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox