Skip to contentSkip to conversation

correct sequencing between driver and hotplug event

DISCUSSION Jon Smirl 2 participants 2 messages Feb 9, 2004

lore
Share & tools
lore

Jon Smirl

author
#0 lore raw

1) my DRM driver loads
2) it generates a hotplug event
3) hotplug resets the hardware
4) driver registers I2C
5) EEPROM driver picks up EDID data on I2C bus.

Right now my steps 4&5 are happening before step 3; so they don't work since the hardware needs to be initialized.

What's the right way to get the correct sequencing? Is there a way for the driver to know when the hotplug event has finished? Or should I do an explicit IOCTL from the hotplug program back to the driver?

==Jon Smirl
[email protected]

__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#1 lore raw
Quoted 6 lines · Jon Smirl

1) my DRM driver loads
2) it generates a hotplug event
3) hotplug resets the hardware
4) driver registers I2C
5) EEPROM driver picks up EDID data on I2C bus.

Quoted 6 lines

Right now my steps 4&5 are happening before step 3; so they don't work since the hardware needs to be initialized.

What's the right way to get the correct sequencing? Is there a way for the driver to know when the hotplug event has finished? Or should I do an explicit IOCTL from the hotplug program back to the driver?

Maybe do it via a sysfs file like the firmware.agent uploads its stuff? lock, upload, unlock. register i2c.

Signature · 14 lines
USB is for mice, FireWire is for men!

sUse lINUX ag, nÜRNBERG


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel