Messages in this thread | | | Date | Mon, 18 Jan 2010 22:24:00 +0000 | From | Alan Cox <> | Subject | Re: [PATCH] Add Linux Driver for Intel Langwell Watchdog |
| |
> + /* send the threshold and soft_threshold via IPC to the Lincroft */ > + reg_data.payload1 = watchdog_device.soft_threshold; > + reg_data.payload2 = watchdog_device.threshold; > + ipc_set_watchdog(®_data);
That still doesn't seem to be merged upstream - someone needs poking to at least get an IPC driver into staging.
> + * /dev/watchdog handling > + */ > +static int langwell_open(struct inode *inode, struct file *file) > +{ > + /* Miscdevice structure pointer already saved in private_data */ > + > + struct watchdog_reg_data reg_data; > + > + if (!capable(CAP_SYS_ADMIN)) > + return -EPERM;
File permissions will deal with that bit
> + > + if (test_and_set_bit(0, &watchdog_device.driver_open)) > + return -ENOTTY;
EBUSY
| |