Page MenuHomeFreeBSD

jz4780: add driver for SMB controller
ClosedPublic

Authored by jmcneill on Dec 14 2016, 11:18 AM.
Tags
Referenced Files
F148265207: D8793.id22909.diff
Mon, Mar 16, 9:24 PM
Unknown Object (File)
Mon, Mar 9, 10:32 AM
Unknown Object (File)
Wed, Mar 4, 2:32 AM
Unknown Object (File)
Tue, Mar 3, 1:57 PM
Unknown Object (File)
Mon, Mar 2, 7:32 AM
Unknown Object (File)
Sun, Mar 1, 4:22 AM
Unknown Object (File)
Fri, Feb 27, 4:07 AM
Unknown Object (File)
Sat, Feb 21, 11:36 PM
Subscribers

Details

Summary

This patch adds support for the JZ4780 SMB controller.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jmcneill retitled this revision from to jz4780: add driver for SMB controller.
jmcneill updated this object.
jmcneill edited the test plan for this revision. (Show Details)
jmcneill added reviewers: kan, MIPS.
jmcneill set the repository for this revision to rS FreeBSD src repository - subversion.
jmcneill added a project: MIPS.
sys/mips/ingenic/jz4780_smb.c
142 ↗(On Diff #22909)

oldaddr is unused?

248 ↗(On Diff #22909)

timevalsub ? Or use timespec/getnanouptime and use timespecsub macro instead of rolling own?

360 ↗(On Diff #22909)

Do thins only on error?

sys/mips/ingenic/jz4780_smb.c
142 ↗(On Diff #22909)

Mirrored signature from jzsmb_reset, I will remove it.

248 ↗(On Diff #22909)

Is there a tstohz somewhere? I couldn't find one.

360 ↗(On Diff #22909)

Clearing the stop-hold bit causes the controller to send an I2C STOP condition. We need this in the success path too. It's a (harmless) noop only when we are performing 0-byte transfers.

  • Remove unused parameters in jzsmb_reset_locked
  • Replace timeval usage with timespec
kan edited edge metadata.
This revision is now accepted and ready to land.Dec 15 2016, 4:37 PM
This revision was automatically updated to reflect the committed changes.