[OpenWrt-Devel] Fwd: Re: [PATCH 10/10] brcmfmac: Add support for multiple PCIE devices in nvram.

Hante Meuleman meuleman at broadcom.com
Fri Apr 24 06:03:29 EDT 2015


Attached are the two patch files. They were generated from
include/linux/bcm47xx_nvram.h and from 
drivers/firmware/broadcom/bcm47xx_nvram.c.

Sorry about the confusion regarding the

target/linux/bcm53xx/patches-3.18/110-firmware-backport-NVRAM-driver.patch

I was looking at an older repo where this patch was different.

-----Original Message-----
> Do you want the patch on top of
>
> target/linux/bcm53xx/patches-3.18/110-firmware-backport-NVRAM-driver.patch
>
> Or on top of the unpatched
>
> drivers/firmware/broadcom/bcm47xx_nvram.c
>
> Or on top of the kernel driver file where 110-firmware....patch
> already has been applied?
>
> Or on top of the file
>
> target/linux/bcm53xx/files/drivers/firmware/Broadcom/bcm47xx_nvram.c
>
> The latter would be the easiest, but it probably breaks the 110 patch.
>
> In upstream kernels the bcm47xx_nvram is not part of the kernel,
> this made me believe that it was generated with a patch file.
> Didn’t realize that the OpenWRT also has a files directory from
> which the additional kernel drivers get "injected" in the kernel:
>
> target/linux/bcm53xx/files/drivers/firmware/broadcom
>
> Still this makes me believe they are openwrt specific kernel file,
> but I guess, that is just how one wants to read this sentence.

NVRAM driver is part of upstream kernel, it's just living in arch/mips/ for now:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/arch/mips/bcm47xx/nvram.c

bcm53xx's file is just a copy of above and that would be the best to
keep it this way.

I think you may prepare patch on top of
drivers/firmware/broadcom/bcm47xx_nvram.c for now, then we can work on
upstreaming it. Meanwhile I'll be happy to add your patch to
/home/zajec/openwrt/openwrt.git/target/linux/bcm53xx/patches-3.18/

It doesn't matter if you work on top of
110-firmware-backport-NVRAM-driver.patch, it doesn't even touch
(bcm47xx_)nvram.c.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bcm47xx_nvram.c.patch
Type: application/octet-stream
Size: 1852 bytes
Desc: bcm47xx_nvram.c.patch
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20150424/52704956/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bcm47xx_nvram.h.patch
Type: application/octet-stream
Size: 665 bytes
Desc: bcm47xx_nvram.h.patch
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20150424/52704956/attachment-0001.obj>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list