Source-Changes archive

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

CVS commit: [netbsd-9] src/sys/dev/i2c



Module Name:    src
Committed By:   martin
Date:           Fri Jul 10 10:33:38 UTC 2020

Modified Files:
        src/sys/dev/i2c [netbsd-9]: sdtemp.c

Log Message:
Pull up following revision(s) (requested by msaitoh in ticket #992):

        sys/dev/i2c/sdtemp.c: revision 1.37
        sys/dev/i2c/sdtemp.c: revision 1.38
        sys/dev/i2c/sdtemp.c: revision 1.39

KNF. No functional change.

  Check the return value of iic_acquire_bus(). This function may fail.

  One of the case is driver's detaching phase on shutdown. mutex_tryenter()
might fail and return with EBUSY. To avoid calling iic_release_bus() without
taking lock, check the return value of iic_acquire_bus().

  If an error occurred in sme_refresh function, pass ENVSYS_SINVALID.
OK'd by pgoyette.


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.35.4.1 src/sys/dev/i2c/sdtemp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index