[OpenWrt-Devel] [PATCH 4/5] target/generic: add ascii search option to mtd-mac-address helper
ynezz at true.cz
Mon Oct 21 10:06:50 EDT 2019
André Valentin <avalentin at marcant.net> [2019-10-21 15:13:55]:
> Am 21.10.19 um 15:02 schrieb Petr Štetiar:
> > André Valentin <avalentin at marcant.net> [2019-10-21 14:32:13]:
> >> This improves the function of_get_mac_address_mtd...
> > but on the other hand its also introducing something which would never be
> > accepted upstream, for details see my other comment.
> I also saw that. I could move it into a separate "driver"?
It won't help, we certainly don't want to read complete flash partition into
RAM just to search for some needle, your code is happy with first needle
occurence (smeling hard to reproduce issues) so you should aim for fixed
offset, so in the end it's Yousong's mtd-mac-address-ascii what you're
probably looking for.
> I also noticed the nvmem provider, but that is a bit to tricky for me.
Indeed, making something accepted upstream is tedious and time consuming
process, but its usually worth this effort in the longterm and should be
> >> Code has been taken from ar71xx.
> > It makes me wonder from where exactly as I can't seem to find it.
so where is it originating from? :-)
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
More information about the openwrt-devel