Re: Faking SD-Card insertion/removel

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



Update:

I have added a kset object 'slot' to platform device, with has all the platform device as kobjects with attribute power associated to each of them. So when that power attribute gets modified. I want to remove the device. Something similar to fakephp module. Currently I call

platform_device_unregister(device);

When from the callback when the power attribute is written as 0. That completely frees all the memory allocated for the the device. But what I want to achieve is something similar to.
 
pci_remove_bus_device((struct pci_dev *)data);

Thanks in advance for any help if possible.

Best regards,
     Sougata.

On Mon, May 28, 2012 at 5:27 PM, sougata santra <sougata.santra@xxxxxxxxx> wrote:
I am new to linux device-drivers. I am trying to fake add, remove sd cards while they are mounted. For systems where sd card controller is connected to PCI bus. I can use fakephp to remove the controller itself. Can similar thing be done with "mmc" bus_type. So that I can fake card addition and removal. The current version of fakephp does not use anything from pci-hotplug subsystem. Is something similar possible ?.

Thank you in advance.

Best regards,
     Sougata.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Networking]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]

Add to Google Powered by Linux