Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1387143
| From | Jan Glauber <jan.glauber@caviumnetworks.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v7 05/15] i2c: octeon: Enable High-Level Controller |
| Date | 2016-04-26 08:00 +0200 |
| Message-ID | <rs4cq-2eM-1@gated-at.bofh.it> (permalink) |
| References | <rrPQ6-7se-7@gated-at.bofh.it> <rrPQ6-7se-25@gated-at.bofh.it> <rrWye-4kQ-19@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, Apr 25, 2016 at 11:44:29PM +0200, Wolfram Sang wrote:
> On Mon, Apr 25, 2016 at 04:33:34PM +0200, Jan Glauber wrote:
> > From: David Daney <ddaney@caviumnetworks.com>
> >
> > Use High-Level Controller (HLC) when possible. The HLC can read/write
> > up to 8 bytes and is completely optional. The most important difference
> > of the HLC is that it only requires one interrupt for a transfer
> > (up to 8 bytes) where the low-level read/write requires 2 interrupts
> > plus one interrupt per transferred byte. Since the interrupts are costly
> > using the HLC improves the performance. Also, the HLC provides improved
> > error handling.
> >
> > Signed-off-by: David Daney <ddaney@caviumnetworks.com>
> > Signed-off-by: Jan Glauber <jglauber@cavium.com>
>
> Applied to for-next, thanks!
>
> I can recommend using --strict with checkpatch. It found some issues:
I thought checkpatch is always strict, but seriously, I didn't know that
option. Thanks for fixing that!
Jan
> total: 0 errors, 0 warnings, 18 checks, 427 lines checked
>
> CHECK: No space is necessary after a cast
> #327: FILE: drivers/i2c/busses/i2c-octeon.c:563:
> + ext |= (u64) msgs[0].buf[0] << SW_TWSI_IA_SHIFT;
>
> I fixed all 14 of those.
>
> CHECK: braces {} should be used on all arms of this statement
> #325: FILE: drivers/i2c/busses/i2c-octeon.c:561:
> + if (msgs[0].len == 2) {
> [...]
> + } else
> [...]
>
> and 2 of those.
>
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v7 05/15] i2c: octeon: Enable High-Level Controller Jan Glauber <jglauber@cavium.com> - 2016-04-25 16:40 +0200
Re: [PATCH v7 05/15] i2c: octeon: Enable High-Level Controller Wolfram Sang <wsa@the-dreams.de> - 2016-04-25 23:50 +0200
Re: [PATCH v7 05/15] i2c: octeon: Enable High-Level Controller Jan Glauber <jan.glauber@caviumnetworks.com> - 2016-04-26 08:00 +0200
csiph-web