Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1290185

Re: [PATCH linux-next (v3) 1/3] MIPS: bcm963xx: Add Broadcom BCM963xx board nvram data structure

From Simon Arlott <simon@fire.lp0.eu>
Newsgroups linux.kernel
Subject Re: [PATCH linux-next (v3) 1/3] MIPS: bcm963xx: Add Broadcom BCM963xx board nvram data structure
Date 2015-12-12 14:20 +0100
Message-ID <qESfD-2CA-1@gated-at.bofh.it> (permalink)
References <qEDTk-1BH-17@gated-at.bofh.it> <qEE30-1U8-5@gated-at.bofh.it> <qEEmn-21X-31@gated-at.bofh.it> <qEFs6-2HI-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 11/12/15 23:29, Jonas Gorski wrote:
> On Fri, Dec 11, 2015 at 11:24 PM, Simon Arlott <simon@fire.lp0.eu> wrote:
>> On 11/12/15 22:02, Jonas Gorski wrote:
>>> On Fri, Dec 11, 2015 at 10:54 PM, Simon Arlott <simon@fire.lp0.eu> wrote:
>>>> Broadcom BCM963xx boards have multiple nvram variants across different
>>>> SoCs with additional checksum fields added whenever the size of the
>>>> nvram was extended.
>>>>
>>>> Add this structure as a header file so that multiple drivers and userspace
>>>> can use it.
>>>>
>>>> Signed-off-by: Simon Arlott <simon@fire.lp0.eu>
>>>> ---
>>>> v3: Fix includes/type names, add comments explaining the nvram struct.
>>>>
>>>> v2: Use external struct bcm963xx_nvram definition for bcm963268part.
...
>>>> diff --git a/include/uapi/linux/bcm963xx_nvram.h b/include/uapi/linux/bcm963xx_nvram.h
>>>> new file mode 100644
>>>> index 0000000..2dcb307
>>>> --- /dev/null
>>>> +++ b/include/uapi/linux/bcm963xx_nvram.h
>>>
>>> Why uapi? The nvram layout isn't really enforced to be that way, and
>>> at least Huawei uses a modified one on some devices (in case you
>>> wondered why bcm63xx doesn't fail a crc32-"broken" one), so IMHO it
>>> should be kept for in-kernel use only.
>>
>> Because Florian suggested include/uapi/linux/bcm963xx_nvram.h; I could
>> move it to include/linux/ instead if this is preferred.
...
>>>> + * Do not use the __reserved fields, especially not as an offset for CRC
>>>> + * calculations (use BCM963XX_NVRAM_*_SIZE instead). These may be removed or
>>>> + * repositioned.
> 
> Because I just saw that: Nobody will read that. ;p

I'll move this to include/linux/bcm963xx_nvram.h and omit the linux-api
mailing list when I next send the patch series.

-- 
Simon Arlott
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH linux-next (v3) 1/3] MIPS: bcm963xx: Add Broadcom BCM963xx  board nvram data structure Simon Arlott <simon@fire.lp0.eu> - 2015-12-11 23:00 +0100
  [PATCH linux-next (v3) 2/3] MIPS: bcm63xx: nvram: Use nvram structure  definition from header file Simon Arlott <simon@fire.lp0.eu> - 2015-12-11 23:00 +0100
  [PATCH linux-next (v3) 3/3] mtd: part: Add BCM962368 CFE partitioning  support Simon Arlott <simon@fire.lp0.eu> - 2015-12-11 23:10 +0100
    Re: [PATCH linux-next (v3) 3/3] mtd: part: Add BCM962368 CFE  partitioning support Jonas Gorski <jogo@openwrt.org> - 2015-12-12 00:20 +0100
      Re: [PATCH linux-next (v3) 3/3] mtd: part: Add BCM962368 CFE  partitioning support Simon Arlott <simon@fire.lp0.eu> - 2015-12-13 21:30 +0100
  Re: [PATCH linux-next (v3) 1/3] MIPS: bcm963xx: Add Broadcom BCM963xx  board nvram data structure Jonas Gorski <jogo@openwrt.org> - 2015-12-11 23:10 +0100
    Re: [PATCH linux-next (v3) 1/3] MIPS: bcm963xx: Add Broadcom BCM963xx  board nvram data structure Simon Arlott <simon@fire.lp0.eu> - 2015-12-11 23:30 +0100
      Re: [PATCH linux-next (v3) 1/3] MIPS: bcm963xx: Add Broadcom BCM963xx  board nvram data structure Jonas Gorski <jogo@openwrt.org> - 2015-12-12 00:40 +0100
        Re: [PATCH linux-next (v3) 1/3] MIPS: bcm963xx: Add Broadcom BCM963xx  board nvram data structure Simon Arlott <simon@fire.lp0.eu> - 2015-12-12 14:20 +0100

csiph-web