[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20090529.035224.124353374.davem@davemloft.net>
Date: Fri, 29 May 2009 03:52:24 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: vapier.adi@...il.com
Cc: netdev@...r.kernel.org, uclinux-dist-devel@...ckfin.uclinux.org,
sonic.zhang@...log.com, cooloney@...nel.org
Subject: Re: [PATCH 2/5] netdev: bfin_mac: fix malformed UDP packet
transmission when polling with KGDB
From: Mike Frysinger <vapier.adi@...il.com>
Date: Fri, 29 May 2009 06:46:46 -0400
> On Fri, May 29, 2009 at 05:04, David Miller wrote:
>> From: Mike Frysinger <vapier@...too.org>
>>> From: Sonic Zhang <sonic.zhang@...log.com>
>>>
>>> Make sure data is really written into the registers before enabling DMA.
>>> Otherwise, the EMAC DMA controller may transfer out a malformed packet.
>>> This patch may also fix netperf bugs or scp bugs.
>>>
>>> Signed-off-by: Sonic Zhang <sonic.zhang@...log.com>
>>> Signed-off-by: Mike Frysinger <vapier.adi@...il.com>
>>> Signed-off-by: Bryan Wu <cooloney@...nel.org>
>>
>> Instead of using this incredibly non-portable blackfin specific SSYNC
>> thing
>
> that doesnt make sense -- this is a completely non-portable Blackfin
> specific driver. everything in it uses Blackfin macros to access
> Blackfin MMRs because this is a device that only exists on Blackfin
> chips.
There is never an excuse to not write portable code when you can.
Some day we may have dummy do-nothing bus drivers for every platform
bus or subsystem, so that we can compile any driver on any platform.
Do you want to make that kind of build validation of you code harder?
>> why not read back a register from the device to ensure the
>> register writes hit the chip just like other drivers do?
>
> because that isnt how the Blackfin hardware works in general, and
> certainly not how the DMA hardware works.
Have you tried reading the register back? Does it work?
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists