From: David Heidelberg <david@ixit.cz>
To: Jorijn van der Graaf <jorijnvdgraaf@catcrafts.net>,
Krzysztof Kozlowski <krzk@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>,
Andrew Lunn <andrew+netdev@lunn.ch>,
Bjorn Andersson <andersson@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Conor Dooley <conor.dooley@microchip.com>,
"David S . Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>,
Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>,
Paolo Abeni <pabeni@redhat.com>, Rob Herring <robh@kernel.org>,
Luca Weiss <luca.weiss@fairphone.com>,
devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org,
linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
oe-linux-nfc@lists.linux.dev
Subject: Re: [PATCH v5 5/6] nfc: s3fwrn5: support the S3NRN4V variant
Date: Wed, 12 Aug 2026 13:18:33 +0200 [thread overview]
Message-ID: <e9b0c679-6a50-48ba-8ce8-684bd4b5606b@ixit.cz> (raw)
In-Reply-To: <20260811220135.472380-6-jorijnvdgraaf@catcrafts.net>
On 12/08/2026 00:01, Jorijn van der Graaf wrote:
> The S3NRN4V (e.g. on the Fairphone 6, SM7635) is a later part in the
> Samsung NFC controller line this driver covers. It needs different
> bring-up, selected with a new samsung,s3nrn4v compatible:
>
> - It ships with working firmware, and its bootloader reports a
> hardware version this driver has no flash base address for, so the
> firmware download step is skipped. Its RF calibration data is
> loaded with the proprietary DUAL_OPTION command (the HW and SW
> blobs merged into a single stream) instead of the
> START/SET/STOP_RFREG sequence. The upload is version-gated on
> DUAL_OPTION GET_VER, matching the vendor stack: GET_VER reports
> the chip's current calibration versions, and the push is skipped
> when both match the blobs (each blob carries its version in its
> last 16 bytes). post_setup runs on every device-up, so the
> gate is what keeps the chip's calibration store from being rewritten
> each time NFC is enabled.
>
> - Its reference clock speed is configured with the single-byte FW_CFG
> form, sent from the ->init hook, before CORE_RESET, in the same
> order the vendor stack sends it. The vendor HAL uses the
> single-byte form for this generation, and its vendor configuration
> sets the selector to 0x11, which selects the 19.2 MHz reference.
> Without this command the chip completes NCI initialization but
> goes silent on RF_DISCOVER -- the command times out unanswered and
> polling never starts (verified on hardware).
>
> The calibration data is requested from a chip-scoped directory,
> samsung/s3nrn4v/hwreg.bin and samsung/s3nrn4v/swreg.bin, rather than
> the flat sec_s3fwrn5_rfreg.bin name the older parts use.
>
> The variant is carried as match data by both the OF and the I2C device
> id tables so the two match paths agree.
>
> Existing S3FWRN5 / S3FWRN82 setups keep the firmware-download path and
> the legacy rfreg sequence, unchanged.
>
> Assisted-by: Claude:claude-opus-4-8
> Assisted-by: Claude:claude-fable-5
> Assisted-by: Claude:claude-opus-5
I was going to make a joke about over-assisted stuff with two-lines of
Assisted-by before, but... :)
Here's my mental model:
- It's good to know that you used an LLM (hence Assisted-by).
- Someone may want to reproduce some generated code, so knowing which model was
used is useful.
- When you put THREE ;-) models there, I think it's getting a bit useless, as
we don't know which part was generated or adjusted by which model. At this
point, it feels somewhat pointless.
My recommendation would be to keep just one line for the model used for:
a) the majority of the changes
b) the last model used (at least for notable changes)
c) the most powerful model doing the generation and/or review
I personally don't mind either approach. There have been discussions about
dropping Assisted-by completely, but so far it makes sense to me to keep it,
just in moderation.
Also, the patchset is shaping up nicely! :)
Thank you for your work,
David
[...]
next prev parent reply other threads:[~2026-08-12 11:18 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-11 22:01 [PATCH v5 0/6] nfc: s3fwrn5: support the S3NRN4V variant Jorijn van der Graaf
2026-08-11 22:01 ` [PATCH v5 1/6] nfc: s3fwrn5: drop of_match_ptr() from the I2C driver Jorijn van der Graaf
2026-08-12 22:15 ` sashiko-bot
2026-08-11 22:01 ` [PATCH v5 2/6] nfc: s3fwrn5: use the "s3fwrn5_i2c" string literal directly Jorijn van der Graaf
2026-08-11 22:01 ` [PATCH v5 3/6] dt-bindings: net: nfc: samsung,s3fwrn5: add the S3NRN4V Jorijn van der Graaf
2026-08-11 22:01 ` [PATCH v5 4/6] nfc: s3fwrn5: enable the PVDD supply Jorijn van der Graaf
2026-08-11 22:01 ` [PATCH v5 5/6] nfc: s3fwrn5: support the S3NRN4V variant Jorijn van der Graaf
2026-08-12 11:18 ` David Heidelberg [this message]
2026-08-12 15:28 ` Jorijn van der Graaf
2026-08-12 22:15 ` sashiko-bot
2026-08-11 22:01 ` [PATCH v5 6/6] arm64: dts: qcom: milos-fairphone-fp6: Add NFC Jorijn van der Graaf
2026-08-12 22:15 ` sashiko-bot
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=e9b0c679-6a50-48ba-8ce8-684bd4b5606b@ixit.cz \
--to=david@ixit.cz \
--cc=andersson@kernel.org \
--cc=andrew+netdev@lunn.ch \
--cc=conor+dt@kernel.org \
--cc=conor.dooley@microchip.com \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=jorijnvdgraaf@catcrafts.net \
--cc=konrad.dybcio@oss.qualcomm.com \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=krzysztof.kozlowski@oss.qualcomm.com \
--cc=kuba@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luca.weiss@fairphone.com \
--cc=netdev@vger.kernel.org \
--cc=oe-linux-nfc@lists.linux.dev \
--cc=pabeni@redhat.com \
--cc=robh@kernel.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