Re: [PATCH] cxacru: ADSL state management

2007-04-15 Thread Simon Arlott
On 15/04/07 11:08, Duncan Sands wrote: Hi Simon, +static ssize_t cxacru_sysfs_show_adsl_state(struct device *dev, + struct device_attribute *attr, char *buf) +{ + struct usb_interface *intf = to_usb_interface(dev); + struct usbatm_data *usbatm_instance = usb_get_intfdata(intf)

Re: [PATCH] cxacru: ADSL state management

2007-04-15 Thread Duncan Sands
Hi Simon, > +static ssize_t cxacru_sysfs_show_adsl_state(struct device *dev, > + struct device_attribute *attr, char *buf) > +{ > + struct usb_interface *intf = to_usb_interface(dev); > + struct usbatm_data *usbatm_instance = usb_get_intfdata(intf); > + struct cxacru_data *instance

[PATCH] cxacru: ADSL state management

2007-04-14 Thread Simon Arlott
The device has commands to start/stop the ADSL function, so this adds a sysfs attribute to allow it to be started/stopped/restarted. It also stops polling the device for status when the ADSL function is disabled. There are no problems with sending multiple start or stop commands, even with a f