Re: [RFC] [PATCH -mm] ASIC3 driver

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Samuel Ortiz <sameo@...>
Cc: <linux-kernel@...>, Paul Sokolovsky <pmiscml@...>, Ben Dooks <ben@...>, Thomas Gleixner <tglx@...>
Date: Thursday, October 18, 2007 - 6:05 pm

On Thu, 18 Oct 2007 11:12:41 +0200
Samuel Ortiz <sameo@openedhand.com> wrote:


You're not a big fan of checkpatch, I see.

total: 76 errors, 69 warnings, 1054 lines checked
Your patch has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.


Please see the large comment at the top of linux/irq.h.  I believe this
driver will fial to compile on at least arm.

We really should fix this.


You'd get faster code if that "2 - asic->bus_shift" was cached in struct
asic3 rather than recalculated each time.


Too large to be inlined.  If it has only one callsite (it does) then the
compiler will inline it.  If it has more than one callsite then we didn't
want it inlined anyway.


hm, so this delves into the innards of the IRQ management.  Does it work OK
with and without CONFIG_GENERIC_HARDIRQS?  If not, some Kconfig work will
be needed.


Most people prefer a blank line between end-of-definitions and start-of-code.


Am wondering about the handling of asic->lock.  As it is taken from hard
interrupts, it is a bug to take it with local interrupts enabled.  afacit
that is what this code is doing and is hence deadlockable.  But I didn't
look very hard.

Has this code been exercised with lockdep enabled?


OK, there you go.  Maybe I was wrong about that lock.

This looks rather large for inlining too, btw.


whee.


To what are these exported?

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] [PATCH -mm] ASIC3 driver, Samuel Ortiz, (Thu Oct 18, 5:12 am)
Re: [RFC] [PATCH -mm] ASIC3 driver, Andrew Morton, (Thu Oct 18, 6:05 pm)
Re: [RFC] [PATCH -mm] ASIC3 driver, Samuel Ortiz, (Fri Oct 19, 6:53 am)
Re: [RFC] [PATCH -mm] ASIC3 driver, Andrew Morton, (Fri Oct 19, 2:00 pm)
Re: [RFC] [PATCH -mm] ASIC3 driver, Samuel Ortiz, (Sat Oct 20, 7:31 am)
Re: [RFC] [PATCH -mm] ASIC3 driver, Thomas Gleixner, (Fri Oct 19, 2:17 pm)
Re: [RFC] [PATCH -mm] ASIC3 driver, pHilipp Zabel, (Fri Oct 19, 8:02 am)
Re: [RFC] [PATCH -mm] ASIC3 driver, Thomas Gleixner, (Thu Oct 18, 6:15 pm)
Re: [RFC] [PATCH -mm] ASIC3 driver, Samuel Ortiz, (Thu Oct 18, 7:42 pm)