Re: [PATCH net-next-2.6 v2] can: Topcliff: PCH_CAN driver: Add Flow control,

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Marc Kleine-Budde
Date: Monday, November 15, 2010 - 2:37 am

On 11/15/2010 09:30 AM, Tomoya MORINAGA wrote:

I would keep these two and use them to define the PCH_xx_OBJ_END...

                                ^^

Which is (PCH_RX_OBJ_END + 1)

        ^^^^^^^^^^^^^^^^^^^^^^^^^^

is it still used?


I do like the KBUILD_MODNAME more than the string.

        ^^^

It's a normal variable, just make it an "int".


Try to minimize the ioread to "id2". I suggest to read id2 only _once_
and use it multiple times.

                                         ^^^

codingstyle: "i + 1", please use checkpatch.pl.


Either use ioread8 or ioread16 in both the rx and tx path.


No need for the netif_stop variable. netif_wake_queue does the check anyway.


what does this if check?


Please don't read-modify-write the id2 register. Prepare the value for
id2, then write it to hardware!


dito


dito

                                                  ^^^
                                                      ^^^
codingstyle
                                                         ^^^^^^^^^^^^^^

I like that define....


more readable than this     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


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, (Mon Nov 15, 2:11 am)
Re: [PATCH net-next-2.6 v2] can: Topcliff: PCH_CAN driver: ..., Marc Kleine-Budde, (Mon Nov 15, 2:37 am)
Re: [PATCH net-next-2.6 v2] can: Topcliff: PCH_CAN driver: ..., Wolfgang Grandegger, (Mon Nov 15, 7:21 am)
Re: [PATCH net-next-2.6 v2] can: Topcliff: PCH_CAN driver: ..., Marc Kleine-Budde, (Tue Nov 16, 1:14 am)
Re: [PATCH net-next-2.6 v2] can: Topcliff: PCH_CAN driver: ..., Wolfgang Grandegger, (Tue Nov 16, 3:16 am)
Re: [PATCH net-next-2.6 v2] can: Topcliff: PCH_CAN driver: ..., Wolfgang Grandegger, (Fri Nov 19, 1:57 am)