Permalink
Browse files

Add probing_finished as a module parameter

This can be used from userspace to avoid a startup race condition
when software is trying to detect installed solo devices.
  • Loading branch information...
1 parent b5af203 commit 8b5d0d7f72dcbec61b3a085ab7bf09c44acfc3d2 @special special committed Jan 17, 2012
Showing with 8 additions and 1 deletion.
  1. +8 −1 solo6010-core.c
View
@@ -44,6 +44,10 @@ static int full_eeprom;
module_param(full_eeprom, uint, 0644);
MODULE_PARM_DESC(full_eeprom, "Allow access to full 128B EEPROM (dangerous, default is only top 64B)");
+static int probing_finished;
+module_param(probing_finished, uint, 0444);
+MODULE_PARM_DESC(probing_finished, "Flag indicating if device probing has finished");
+
void solo6010_irq_on(struct solo6010_dev *solo_dev, u32 mask)
{
solo_dev->irq_mask |= mask;
@@ -717,9 +721,12 @@ static struct pci_driver solo6010_pci_driver = {
static int __init solo6010_module_init(void)
{
+ int ret;
printk(KERN_INFO "Enabling Softlogic 6x10 Driver v%s\n",
SOLO6010_VERSION);
- return pci_register_driver(&solo6010_pci_driver);
+ ret = pci_register_driver(&solo6010_pci_driver);
+ probing_finished = 1;
+ return ret;
}
static void __exit solo6010_module_exit(void)

0 comments on commit 8b5d0d7

Please sign in to comment.