]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
NFC: trf7970a: Ignore antenna noise when checking for RF field
authorPaul Geurts <paul.geurts@prodrive-technologies.com>
Wed, 22 Apr 2026 10:09:30 +0000 (12:09 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 28 Apr 2026 01:00:43 +0000 (18:00 -0700)
commita9bc28aa4e64320668131349436a650bf42591a5
treee772e2269d75b412e8a39af89e85afd8d571c82a
parentadbe2cdf75461891e50dbe11896ac78e9af1f874
NFC: trf7970a: Ignore antenna noise when checking for RF field

The main channel Received Signal Strength Indicator (RSSI) measurement
is used to determine whether an RF field is present or not. RSSI != 0
is interpreted as an RF Field is present. This does not take RF noise
and measurement inaccuracy into account, and results in false positives
in the field.

Define a noise level and make sure the RF field is only interpreted as
present when the RSSI is above the noise level.

Fixes: 851ee3cbf850 ("NFC: trf7970a: Don't turn on RF if there is already an RF field")
Signed-off-by: Paul Geurts <paul.geurts@prodrive-technologies.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Reviewed-by: Mark Greer <mgreer@animalcreek.com>
Link: https://patch.msgid.link/20260422100930.581237-1-paul.geurts@prodrive-technologies.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/nfc/trf7970a.c