lkml.org 
[lkml]   [2014]   [Aug]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH net-next 0/4] r8152: firmware support
From
From: Hayes Wang <hayeswang@realtek.com>
Date: Mon, 25 Aug 2014 03:43:04 +0000

> From: David Miller [mailto:davem@davemloft.net]
> [...]
>> You haven't told us why you need to do this.
>>
>> These are just programming registers in the chip, and I see no reason
>> to not keep these in the driver with real code.
>>
>> I'm not applying this series, you haven't explained what is happening
>> here and the reason for doing so. Ironically, that's exactly what you
>> are supposed to provide in this 0/4 header email.
>
> The nic has the MCU inside which is used to fix the PHY,
> MAC, and some behavior of the USB device. Each parts have
> different methods of updating the firmware by accessing the
> registers. The firmware files are used to deal with the
> processes, so I need some functions to parse the firmware
> files to update the fimrware code.

That still doesn't convince me.

The functions I see you removing are just programming a set of
registers in some way.

And the firmware that is replacing those functions is just going to be
causing the same register writes, just even more obfuscated than it is
now.

You should keep the C functions which document and show clearly what
is being programmed in each chip.

Don't hide register programming behind firmware files, please.


\
 
 \ /
  Last update: 2014-08-25 07:01    [W:0.064 / U:0.156 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site