Re: [PATCH net-next-2.6 v2] can: Topcliff: PCH_CAN driver: Fix build warnings

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Marc Kleine-Budde
Date: Friday, October 29, 2010 - 5:57 am

Hello,

On 10/29/2010 12:37 PM, Tomoya wrote:

Sorry I don't understand what you mean.


You probably know the datasheet, but I don't, although I've printed
chapter 13 from the Intel Controller Hub EG20T datasheet, but it's 50+
pages. If the hardware needs the busy waiting in the hot tx path a
pointer to the respective section in the manual is a good idea. Just
something like:

    According to the Datasheet $REFERENCE section $SECTION_NUMBER we
    need to wait until the $FOO operation finished.




Here's a patch to illustrate what I meant:

diff --git a/drivers/net/can/pch_can.c b/drivers/net/can/pch_can.c
index 55ec324..5ee7589 100644
--- a/drivers/net/can/pch_can.c
+++ b/drivers/net/can/pch_can.c
@@ -150,10 +150,7 @@ struct pch_can_regs {
        u32 if1_id1;
        u32 if1_id2;
        u32 if1_mcont;
-       u32 if1_dataa1;
-       u32 if1_dataa2;
-       u32 if1_datab1;
-       u32 if1_datab2;
+       u32 if1_data[4];
        u32 reserve2;
        u32 reserve3[12];
        u32 if2_creq;



The driver has already been merged. Please send incremental patches
against david's net-2.6 branch.

Cheers, Marc

-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH net-next-2.6 v2] can: Topcliff: PCH_CAN driver: ..., Marc Kleine-Budde, (Fri Oct 29, 5:57 am)
Re: [PATCH net-next-2.6 v2] can: Topcliff: PCH_CAN driver: ..., Marc Kleine-Budde, (Fri Oct 29, 9:23 am)
Re: [PATCH net-next-2.6 v2] can: Topcliff: PCH_CAN driver: ..., Marc Kleine-Budde, (Fri Oct 29, 10:58 am)
Re: [PATCH net-next-2.6 v2] can: Topcliff: PCH_CAN driver: ..., Wolfgang Grandegger, (Wed Nov 3, 9:15 am)
Re: [PATCH net-next-2.6 v2] can: Topcliff: PCH_CAN driver: ..., Wolfgang Grandegger, (Fri Nov 12, 4:45 am)