On Fri, Sep 17, 2010 at 05:20:14PM +0800, Jason Wang wrote: > Dmitry Torokhov wrote: > >Hi Jason, > > > >On Thursday, September 16, 2010 03:51:26 am Jason Wang wrote: > >>The design like that, we can stop or disable ADC, one difference is > >>the disable not only stop the ADC but also close the power regulator. > >>So we change the condition flag to stopped in the _stop() function. > >> > >>Because we call __ads7846_disable() in the suspend/resume process, so > >>move disabled flag modification from ads7846_disable() to the > >>__ads7846_disable(), otherwise when we call _disable() in the suspend, > >>and the ADC is really suspended but the flag shows that it isn't. > > > >I disagree with the patch. "Disable" knob is separate from PM > >knobs (suspend/resume); and thus that attribute should only read > >"1" when > >user forcibly disabled the device via sysfs. Same goes for open/close. > > > >Thanks. > > > OK, i will fix this patch. > Hmm, I am not sure what there is to fix... Maybe I misunderstood your description. Could you please try again to explain what you are trying to achieve? Thanks! -- Dmitry -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html