- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Advanced Search
Aug 7 2015
Aug 6 2015
Fix problems noted by wblock
Move each sentence to its own line
Fixing the bugs kib pointed out
Aug 5 2015
Aug 4 2015
Jul 7 2015
Jun 13 2015
I think it is possible for calls into the smbus interface to get interleaved right now. If they come from smb(4) ioctls, they could get interleaved because that driver does not hold its own sx like iic(4) does (and did even before r281828). But those calls could also be made by another driver directly calling something like smbus_bwrite(), without going through smb(4).
May 15 2015
May 6 2015
Addressing wblock's feedback
Apr 21 2015
Apr 15 2015
Apr 6 2015
addressing jhb's feedback:
- looping on short writes
- always using M_WAITOK
- style(9) fixes
Apr 3 2015
imp, loos: can you guys look over this again when you have time?
I also need some clarification on Warner's comment about the lock.
Change chunk size back to 128 bytes. That should still be OK to keep on the kernel stack. 32 might be too stingy for faster iic controllers.
Mar 27 2015
--Shrink chunk size to 32 bytes (same as smbus blocksize), move buffer to stack
--Respect O_NONBLOCK for mallocs
--Document IICBUS_CALLBACK locking assumptions in iiconf.c and iicbus interface
Mar 26 2015
Remove stale comment
Don't loop on EWOULDBLOCK.
I think we can deal with any fallout. There might be none.
I agree with most of your changes (and thank you for tackling this), but maybe it is time to get rid of the busy loop on EWOULDBLOCK case.
EWOULDBLOCK could only happen when the caller request the iicbus with IIC_DONTWAIT, wouldn't be better to just return EWOULDBLOCK in this case ?
Then the caller could deal with retrying if necessary.
I think this would also make the lock dropping on iicbus_poll() unnecessary.
What do you think ?