Re: platform_device.dev.release not getting called under X Windows

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

 



On Fri, Jun 09, 2006 at 10:32:18AM +0530, kaustav.majumdar@xxxxxxxxx wrote:
> 
> Hi all,
> 
> We are developing a device driver for a PCMCIA based USB Host
> Controller.
> We are facing an issue in the operation of the driver under X Windows.
> 
> In the PCMCIA client driver, we register a platform device.
> Through this platform device, we are passing the resources to the Host
> Controller Driver.
> The HCD is using these resources for driving the Host Controller.
> 
> The issue arises for the following situation under X Windows.
> 1. Insert a USB mass storage device
> 2. Mount the device.
> 3. While transfer is in progress, remove the PC card.
> 
> In this situation, we have noted that the platform_device.dev.release
> function is not getting called.
> If we do not mount the device, then the release function is getting
> called.
> Can anyone please tell why this may be happening?
> 
> When we operate from console, we are not facing the issue. 
> In that case the release function is getting called properly.	
> Then does the issue have anything to do with X Windows?

Perhaps HAL has a sysfs file for the device held open?
Is this really a problem?

And why not just use the existing USB host controller drivers?

Also, what kernel version are you using, and do you have a pointer to
your code so that we see if you are doing something wrong?

thanks,

greg k-h

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux