public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Cc: linux-kernel@vger.kernel.org, Michael Walle <michael@walle.cc>
Subject: Re: [RESEND PATCH 23/37] nvmem: layouts: add sl28vpd layout
Date: Mon, 6 Feb 2023 13:02:31 +0100	[thread overview]
Message-ID: <Y+DsV3C1M0c/IZta@kroah.com> (raw)
In-Reply-To: <20230206102759.669838-24-srinivas.kandagatla@linaro.org>

On Mon, Feb 06, 2023 at 10:27:45AM +0000, Srinivas Kandagatla wrote:
> From: Michael Walle <michael@walle.cc>
> 
> This layout applies to the VPD of the Kontron sl28 boards. The VPD only
> contains a base MAC address. Therefore, we have to add an individual
> offset to it. This is done by taking the second argument of the nvmem
> phandle into account. Also this let us checking the VPD version and the
> checksum.
> 
> Signed-off-by: Michael Walle <michael@walle.cc>
> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
> ---
>  drivers/nvmem/layouts/Kconfig   |   9 ++
>  drivers/nvmem/layouts/Makefile  |   2 +
>  drivers/nvmem/layouts/sl28vpd.c | 153 ++++++++++++++++++++++++++++++++
>  3 files changed, 164 insertions(+)
>  create mode 100644 drivers/nvmem/layouts/sl28vpd.c
> 
> diff --git a/drivers/nvmem/layouts/Kconfig b/drivers/nvmem/layouts/Kconfig
> index 9ad3911d1605..75082f6b471d 100644
> --- a/drivers/nvmem/layouts/Kconfig
> +++ b/drivers/nvmem/layouts/Kconfig
> @@ -2,4 +2,13 @@
>  
>  menu "Layout Types"
>  
> +config NVMEM_LAYOUT_SL28_VPD
> +	bool "Kontron sl28 VPD layout support"
> +	select CRC8
> +	help
> +	  Say Y here if you want to support the VPD layout of the Kontron
> +	  SMARC-sAL28 boards.
> +
> +	  If unsure, say N.

Why are we going back to "custom-built" kernel configurations?  Why can
this not be a loadable module?  Distros are now forced to enable these
layout and all kernels will have this dead code in the tree without any
choice in the matter?

That's not ok, these need to be auto-loaded based on the hardware
representation like any other kernel module.  You can't force them to be
always present, sorry.

So I'm not going to take this series, sorry.  Srinivas, can you
regenerate it without the layout code and resend?

thanks,

greg k-h

  reply	other threads:[~2023-02-06 12:02 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-06 10:27 [RESEND PATCH 00/37] nvmem: patches for 6.3 Srinivas Kandagatla
2023-02-06 10:27 ` [RESEND PATCH 01/37] nvmem: sunxi_sid: Drop the workaround on A64 Srinivas Kandagatla
2023-02-06 10:27 ` [RESEND PATCH 02/37] dt-bindings: nvmem: Fix qcom,qfprom compatibles enum ordering Srinivas Kandagatla
2023-02-06 10:27 ` [RESEND PATCH 03/37] dt-bindings: nvmem: Add compatible for MSM8976 Srinivas Kandagatla
2023-02-06 10:27 ` [RESEND PATCH 04/37] dt-bindings: nvmem: qfprom: add sdm670 compatible Srinivas Kandagatla
2023-02-06 10:27 ` [RESEND PATCH 05/37] dt-bindings: nvmem: Add compatible for SM8150 Srinivas Kandagatla
2023-02-06 10:27 ` [RESEND PATCH 06/37] dt-bindings: nvmem: Add compatible for SM8250 Srinivas Kandagatla
2023-02-06 10:27 ` [RESEND PATCH 07/37] nvmem: core: remove spurious white space Srinivas Kandagatla
2023-02-06 10:27 ` [RESEND PATCH 08/37] net: add helper eth_addr_add() Srinivas Kandagatla
2023-02-06 10:27 ` [RESEND PATCH 09/37] of: base: add of_parse_phandle_with_optional_args() Srinivas Kandagatla
2023-02-06 10:27 ` [RESEND PATCH 10/37] of: property: make #.*-cells optional for simple props Srinivas Kandagatla
2023-02-06 10:27 ` [RESEND PATCH 11/37] of: property: add #nvmem-cell-cells property Srinivas Kandagatla
2023-02-06 10:27 ` [RESEND PATCH 12/37] nvmem: core: add an index parameter to the cell Srinivas Kandagatla
2023-02-06 10:27 ` [RESEND PATCH 13/37] nvmem: core: move struct nvmem_cell_info to nvmem-provider.h Srinivas Kandagatla
2023-02-06 10:27 ` [RESEND PATCH 14/37] nvmem: core: drop the removal of the cells in nvmem_add_cells() Srinivas Kandagatla
2023-02-06 10:27 ` [RESEND PATCH 15/37] nvmem: core: add nvmem_add_one_cell() Srinivas Kandagatla
2023-02-06 10:27 ` [RESEND PATCH 16/37] nvmem: core: use nvmem_add_one_cell() in nvmem_add_cells_from_of() Srinivas Kandagatla
2023-02-06 10:27 ` [RESEND PATCH 17/37] nvmem: core: introduce NVMEM layouts Srinivas Kandagatla
2023-02-06 10:27 ` [RESEND PATCH 18/37] nvmem: core: add per-cell post processing Srinivas Kandagatla
2023-02-06 10:27 ` [RESEND PATCH 19/37] nvmem: core: allow to modify a cell before adding it Srinivas Kandagatla
2023-02-06 10:27 ` [RESEND PATCH 20/37] nvmem: imx-ocotp: replace global post processing with layouts Srinivas Kandagatla
2023-02-06 10:27 ` [RESEND PATCH 21/37] nvmem: cell: drop global cell_post_process Srinivas Kandagatla
2023-02-06 10:27 ` [RESEND PATCH 22/37] nvmem: core: provide own priv pointer in post process callback Srinivas Kandagatla
2023-02-06 10:27 ` [RESEND PATCH 23/37] nvmem: layouts: add sl28vpd layout Srinivas Kandagatla
2023-02-06 12:02   ` Greg KH [this message]
2023-02-06 10:27 ` [RESEND PATCH 24/37] MAINTAINERS: add myself as sl28vpd nvmem layout driver Srinivas Kandagatla
2023-02-06 10:27 ` [RESEND PATCH 25/37] nvmem: layouts: Add ONIE tlv " Srinivas Kandagatla
2023-02-06 10:27 ` [RESEND PATCH 26/37] MAINTAINERS: Add myself as ONIE tlv NVMEM layout maintainer Srinivas Kandagatla
2023-02-06 10:27 ` [RESEND PATCH 27/37] nvmem: core: return -ENOENT if nvmem cell is not found Srinivas Kandagatla
2023-02-06 10:27 ` [RESEND PATCH 28/37] nvmem: layouts: Fix spelling mistake "platforn" -> "platform" Srinivas Kandagatla
2023-02-06 10:27 ` [RESEND PATCH 29/37] dt-bindings: nvmem: " Srinivas Kandagatla
2023-02-06 10:27 ` [RESEND PATCH 30/37] nvmem: core: fix nvmem_layout_get_match_data() Srinivas Kandagatla
2023-02-06 12:04   ` Greg KH
2023-02-06 12:08     ` Srinivas Kandagatla
2023-02-06 12:39       ` Greg KH
2023-02-06 12:09     ` Rafał Miłecki
2023-02-06 10:27 ` [RESEND PATCH 31/37] nvmem: stm32: add OP-TEE support for STM32MP13x Srinivas Kandagatla
2023-02-06 10:27 ` [RESEND PATCH 32/37] nvmem: stm32: detect bsec pta presence for STM32MP15x Srinivas Kandagatla
2023-02-06 10:27 ` [RESEND PATCH 33/37] nvmem: rave-sp-eeprm: fix kernel-doc bad line warning Srinivas Kandagatla
2023-02-06 10:27 ` [RESEND PATCH 34/37] of: property: fix #nvmem-cell-cells parsing Srinivas Kandagatla
2023-02-06 10:27 ` [RESEND PATCH 35/37] nvmem: qcom-spmi-sdam: register at device init time Srinivas Kandagatla
2023-02-06 10:27 ` [RESEND PATCH 36/37] dt-bindings: nvmem: qfprom: add IPQ8074 compatible Srinivas Kandagatla
2023-02-06 10:27 ` [RESEND PATCH 37/37] nvmem: stm32: fix OPTEE dependency Srinivas Kandagatla

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Y+DsV3C1M0c/IZta@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=michael@walle.cc \
    --cc=srinivas.kandagatla@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox