RE: necessity of manual reset attribute in drivers?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jonathan Cameron wrote on 2012-04-22:
> Hi All,
>
> I vaguely recall asking this in response to certain drivers over the
> years, but what is the usecase for userspace 'resetting' a device via
> a reset attribute?  It's reasonably common in the drivers but not
> (as I've kept it out) in the abi docs.
>
> It is common in some of Analog's inertial sensor drivers but I think
> turns up in various other places.

Ideally we shouldn't have such an attribute.
Error checking and handling should be all done in the drivers, if possible.
I don't remember exactly why it went into one of the original inertial sensor drivers.
But I think it went there to provide error correction, in case plausibility/error checking
of the delivered data failed.
I also suspect it then got copied over and over again.

Greetings,
Michael

--
Analog Devices GmbH      Wilhelm-Wagenfeld-Str. 6      80807 Muenchen
Sitz der Gesellschaft: Muenchen; Registergericht: Muenchen HRB 40368;
Geschaeftsfuehrer:Dr.Carsten Suckrow, Thomas Wessel, William A. Martin, Margaret Seif


--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux