Re: [PATCH net-next 0/4] r8152: firmware support

From: David Miller
Date: Mon Aug 25 2014 - 00:26:37 EST


From: Hayes Wang <hayeswang@xxxxxxxxxxx>
Date: Mon, 25 Aug 2014 03:43:04 +0000

> From: David Miller [mailto:davem@xxxxxxxxxxxxx]
> [...]
>> 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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/