| Seq | Timestamp | Type | Name | Duration |
|---|---|---|---|---|
| 0/0 | 2026/11/15 08:17 | flow | patch-triage |
1mArgs:null Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"KMSANReasoning": "",
"NeedsKMSAN": false,
"Reasoning": "The patch series introduces device tree support for the Samsung Galaxy M52 5G (SM7325, ARM64) and adds optional regulator ('pvdd') support to the Samsung S3FWRN5 I2C NFC driver. The DTS files are exclusive to ARM64 and cannot execute on the target architecture (amd64). The documentation files are non-executable. The driver changes in drivers/nfc/s3fwrn5/i2c.c target a vendor-specific I2C NFC chip on physical mobile hardware requiring platform GPIOs/regulators, which is not emulated in standard QEMU/GCE virtual environments and cannot be accessed via virtual buses. Therefore, the modified code is structurally unreachable for fuzzing on amd64.",
"WorthFuzzing": false
} |
| 1/1 | 2026/11/15 08:17 | action | read-patch-diff |
0mArgs:null Results: {
"PatchDiff": "commit 4468039b986c2428a8917423435b0d421ba13c0f\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate: Sun Nov 15 08:17:40 2026 +0000\n\n syz-cluster: applied patch under review\n\ndiff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentation/devicetree/bindings/arm/qcom.yaml\nindex 121ca557ce1eff..fff2be0ecb478b 100644\n--- a/Documentation/devicetree/bindings/arm/qcom.yaml\n+++ b/Documentation/devicetree/bindings/arm/qcom.yaml\n@@ -1124,6 +1124,7 @@ properties:\n - enum:\n - motorola,dubai\n - nothing,spacewar\n+ - samsung,m52xq\n - xiaomi,lisa\n - xiaomi,taoyao\n - const: qcom,sm7325\ndiff --git a/Documentation/devicetree/bindings/net/nfc/samsung,s3fwrn5.yaml b/Documentation/devicetree/bindings/net/nfc/samsung,s3fwrn5.yaml\nindex 12baee45752c7b..3c5a579a710805 100644\n--- a/Documentation/devicetree/bindings/net/nfc/samsung,s3fwrn5.yaml\n+++ b/Documentation/devicetree/bindings/net/nfc/samsung,s3fwrn5.yaml\n@@ -34,6 +34,10 @@ properties:\n description:\n Output GPIO pin used to enter firmware mode and sleep/wakeup control\n \n+ pvdd-supply:\n+ description:\n+ Power supply of the PVDD pin\n+\n s3fwrn5,en-gpios:\n maxItems: 1\n deprecated: true\n@@ -84,6 +88,7 @@ examples:\n wake-gpios = \u003c\u0026gpj0 2 GPIO_ACTIVE_HIGH\u003e;\n \n clocks = \u003c\u0026rpmcc 20\u003e;\n+ pvdd-supply = \u003c\u0026nfc_pvdd\u003e;\n };\n };\n # UART example on Raspberry Pi\ndiff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile\nindex 88230c4e00ea91..a1c1a736888798 100644\n--- a/arch/arm64/boot/dts/qcom/Makefile\n+++ b/arch/arm64/boot/dts/qcom/Makefile\n@@ -401,6 +401,7 @@ dtb-$(CONFIG_ARCH_QCOM)\t+= sm7325-motorola-dubai.dtb\n dtb-$(CONFIG_ARCH_QCOM)\t+= sm7325-motorola-dubai-csot.dtb\n dtb-$(CONFIG_ARCH_QCOM)\t+= sm7325-motorola-dubai-tianma.dtb\n dtb-$(CONFIG_ARCH_QCOM)\t+= sm7325-nothing-spacewar.dtb\n+dtb-$(CONFIG_ARCH_QCOM)\t+= sm7325-samsung-m52xq.dtb\n dtb-$(CONFIG_ARCH_QCOM)\t+= sm7325-xiaomi-lisa.dtb\n dtb-$(CONFIG_ARCH_QCOM)\t+= sm7325-xiaomi-taoyao.dtb\n dtb-$(CONFIG_ARCH_QCOM)\t+= sm8150-hdk.dtb\ndiff --git a/arch/arm64/boot/dts/qcom/sm7325-samsung-m52xq.dts b/arch/arm64/boot/dts/qcom/sm7325-samsung-m52xq.dts\nnew file mode 100644\nindex 00000000000000..495ae7573778cf\n--- /dev/null\n+++ b/arch/arm64/boot/dts/qcom/sm7325-samsung-m52xq.dts\n@@ -0,0 +1,839 @@\n+// SPDX-License-Identifier: BSD-3-Clause\n+/*\n+ * Copyright (c) 2026, Asdlerto Korry \u003ckorryasdlerto@gmail.com\u003e\n+ */\n+\n+/dts-v1/;\n+\n+#include \u003cdt-bindings/gpio/gpio.h\u003e\n+#include \u003cdt-bindings/iio/qcom,spmi-adc7-pm7325.h\u003e\n+#include \u003cdt-bindings/input/linux-event-codes.h\u003e\n+#include \u003cdt-bindings/pinctrl/qcom,pmic-gpio.h\u003e\n+#include \u003cdt-bindings/regulator/qcom,rpmh-regulator.h\u003e\n+\n+#include \"sm7325.dtsi\"\n+#include \"pm7325.dtsi\"\n+#include \"pm8350c.dtsi\" /* PM7350C */\n+#include \"pmk8350.dtsi\" /* PMK7325 */\n+\n+/* The following reserved memory regions have different addresses or sizes */\n+/delete-node/ \u0026adsp_mem;\n+/delete-node/ \u0026rmtfs_mem;\n+\n+/* The ADSP firmware region covers the CDSP one, the CDSP is not used */\n+/delete-node/ \u0026cdsp_mem;\n+/delete-node/ \u0026remoteproc_cdsp;\n+\n+/ {\n+\tmodel = \"Samsung Galaxy M52 5G\";\n+\tcompatible = \"samsung,m52xq\", \"qcom,sm7325\";\n+\tchassis-type = \"handset\";\n+\n+\taliases {\n+\t\tserial1 = \u0026uart7;\n+\t};\n+\n+\tchosen {\n+\t\t#address-cells = \u003c2\u003e;\n+\t\t#size-cells = \u003c2\u003e;\n+\t\tranges;\n+\n+\t\tframebuffer0: framebuffer {\n+\t\t\tcompatible = \"simple-framebuffer\";\n+\t\t\twidth = \u003c1080\u003e;\n+\t\t\theight = \u003c2400\u003e;\n+\t\t\tstride = \u003c(1080 * 4)\u003e;\n+\t\t\tformat = \"a8r8g8b8\";\n+\t\t\tmemory-region = \u003c\u0026splash_mem\u003e;\n+\n+\t\t\tclocks = \u003c\u0026gcc GCC_DISP_HF_AXI_CLK\u003e,\n+\t\t\t\t \u003c\u0026dispcc DISP_CC_MDSS_MDP_CLK\u003e,\n+\t\t\t\t \u003c\u0026dispcc DISP_CC_MDSS_BYTE0_CLK\u003e,\n+\t\t\t\t \u003c\u0026dispcc DISP_CC_MDSS_BYTE0_INTF_CLK\u003e,\n+\t\t\t\t \u003c\u0026dispcc DISP_CC_MDSS_PCLK0_CLK\u003e,\n+\t\t\t\t \u003c\u0026dispcc DISP_CC_MDSS_VSYNC_CLK\u003e;\n+\t\t\tpower-domains = \u003c\u0026dispcc DISP_CC_MDSS_CORE_GDSC\u003e;\n+\t\t};\n+\t};\n+\n+\tgpio-keys {\n+\t\tcompatible = \"gpio-keys\";\n+\n+\t\tpinctrl-0 = \u003c\u0026volume_up_default\u003e;\n+\t\tpinctrl-names = \"default\";\n+\n+\t\tkey-volume-up {\n+\t\t\tlabel = \"Volume Up\";\n+\t\t\tgpios = \u003c\u0026pm7325_gpios 6 GPIO_ACTIVE_LOW\u003e;\n+\t\t\tlinux,code = \u003cKEY_VOLUMEUP\u003e;\n+\t\t\tdebounce-interval = \u003c15\u003e;\n+\t\t};\n+\t};\n+\n+\treserved-memory {\n+\t\tcdsp_secure_heap_mem: cdsp-secure-heap@81800000 {\n+\t\t\treg = \u003c0x0 0x81800000 0x0 0x1e00000\u003e;\n+\t\t\tno-map;\n+\t\t};\n+\n+\t\tadsp_mem: adsp@86700000 {\n+\t\t\treg = \u003c0x0 0x86700000 0x0 0x4800000\u003e;\n+\t\t\tno-map;\n+\t\t};\n+\n+\t\t/* Stock camera firmware region, its first 2 MiB are used by the ADSP */\n+\t\tcamera_mem: camera@8af00000 {\n+\t\t\treg = \u003c0x0 0x8af00000 0x0 0x300000\u003e;\n+\t\t\tno-map;\n+\t\t};\n+\n+\t\tipa_gsi_mem: ipa-gsi@8b710000 {\n+\t\t\treg = \u003c0x0 0x8b710000 0x0 0xa000\u003e;\n+\t\t\tno-map;\n+\t\t};\n+\n+\t\trmtfs_mem: rmtfs@9c900000 {\n+\t\t\tcompatible = \"qcom,rmtfs-mem\";\n+\t\t\treg = \u003c0x0 0x9c900000 0x0 0x280000\u003e;\n+\t\t\tno-map;\n+\n+\t\t\tqcom,client-id = \u003c1\u003e;\n+\t\t\tqcom,vmid = \u003cQCOM_SCM_VMID_MSS_MSA\u003e,\n+\t\t\t\t \u003cQCOM_SCM_VMID_NAV\u003e;\n+\t\t};\n+\n+\t\t/* Larger than on other SM7325 devices, the stock DT carves out 0x5f00000 */\n+\t\tremoved_mem: removed@c0000000 {\n+\t\t\treg = \u003c0x0 0xc0000000 0x0 0x5f00000\u003e;\n+\t\t\tno-map;\n+\t\t};\n+\n+\t\tpil_trustedvm_mem: pil-trustedvm-region@d0800000 {\n+\t\t\treg = \u003c0x0 0xd0800000 0x0 0x76f7000\u003e;\n+\t\t\tno-map;\n+\t\t};\n+\n+\t\tqrtr_shmem: qrtr-shmem@d7ef7000 {\n+\t\t\treg = \u003c0x0 0xd7ef7000 0x0 0x9000\u003e;\n+\t\t\tno-map;\n+\t\t};\n+\n+\t\tneuron_block_0_mem: neuron-block@d7f00000 {\n+\t\t\treg = \u003c0x0 0xd7f00000 0x0 0x80000\u003e;\n+\t\t\tno-map;\n+\t\t};\n+\n+\t\tneuron_block_1_mem: neuron-block@d7f80000 {\n+\t\t\treg = \u003c0x0 0xd7f80000 0x0 0x80000\u003e;\n+\t\t\tno-map;\n+\t\t};\n+\n+\t\tramoops@f0b00000 {\n+\t\t\tcompatible = \"ramoops\";\n+\t\t\treg = \u003c0x0 0xf0b00000 0x0 0x100000\u003e;\n+\t\t\trecord-size = \u003c0x40000\u003e;\n+\t\t\tconsole-size = \u003c0x40000\u003e;\n+\t\t\tftrace-size = \u003c0x40000\u003e;\n+\t\t\tpmsg-size = \u003c0x40000\u003e;\n+\t\t};\n+\n+\t\t/* ABL looks this node up by name to update the splash region */\n+\t\tsplash_mem: splash_region@e1000000 {\n+\t\t\treg = \u003c0x0 0xe1000000 0x0 0x2300000\u003e;\n+\t\t\tno-map;\n+\t\t};\n+\n+\t\tdfps_data_mem: dfps-data@e3300000 {\n+\t\t\treg = \u003c0x0 0xe3300000 0x0 0x100000\u003e;\n+\t\t\tno-map;\n+\t\t};\n+\t};\n+\n+\t/* NFC chip power, switched by TLMM 42 */\n+\tvreg_nfc_pvdd: regulator-nfc-pvdd {\n+\t\tcompatible = \"regulator-fixed\";\n+\t\tregulator-name = \"nfc_pvdd\";\n+\t\tgpio = \u003c\u0026tlmm 42 GPIO_ACTIVE_HIGH\u003e;\n+\t\tenable-active-high;\n+\t};\n+\n+\t/* Coin DC motor, TLMM 62 switches its external LDO */\n+\tvibrator {\n+\t\tcompatible = \"gpio-vibrator\";\n+\t\tenable-gpios = \u003c\u0026tlmm 62 GPIO_ACTIVE_HIGH\u003e;\n+\n+\t\tpinctrl-0 = \u003c\u0026motor_en_default\u003e;\n+\t\tpinctrl-names = \"default\";\n+\t};\n+\n+\tvph_pwr: vph-pwr-regulator {\n+\t\tcompatible = \"regulator-fixed\";\n+\t\tregulator-name = \"vph_pwr\";\n+\t\tregulator-min-microvolt = \u003c3700000\u003e;\n+\t\tregulator-max-microvolt = \u003c3700000\u003e;\n+\t};\n+\n+\t/*\n+\t * The arch_timer label is unused here, but is required by ABL: the\n+\t * Gunyah overlay it applies references it, the boot fails without it.\n+\t */\n+\tarch_timer: timer { };\n+};\n+\n+\u0026apps_rsc {\n+\tregulators-0 {\n+\t\tcompatible = \"qcom,pm7325-rpmh-regulators\";\n+\t\tqcom,pmic-id = \"b\";\n+\n+\t\tvdd-s1-supply = \u003c\u0026vph_pwr\u003e;\n+\t\tvdd-s2-supply = \u003c\u0026vph_pwr\u003e;\n+\t\tvdd-s7-supply = \u003c\u0026vph_pwr\u003e;\n+\t\tvdd-s8-supply = \u003c\u0026vph_pwr\u003e;\n+\n+\t\tvdd-l1-l4-l12-l15-supply = \u003c\u0026vreg_s7b_0p972\u003e;\n+\t\tvdd-l2-l7-supply = \u003c\u0026vreg_bob\u003e;\n+\t\tvdd-l6-l9-l10-supply = \u003c\u0026vreg_s8b_1p272\u003e;\n+\t\tvdd-l8-supply = \u003c\u0026vreg_s7b_0p972\u003e;\n+\t\tvdd-l11-l17-l18-l19-supply = \u003c\u0026vreg_s1b_1p872\u003e;\n+\t\tvdd-l13-supply = \u003c\u0026vreg_s7b_0p972\u003e;\n+\t\tvdd-l14-l16-supply = \u003c\u0026vreg_s8b_1p272\u003e;\n+\n+\t\t/*\n+\t\t * S1b, S7b and S8b feed LDOs: below the stock levels the LDOs\n+\t\t * have no headroom left and the touchscreen loses touches.\n+\t\t */\n+\t\tvreg_s1b_1p872: smps1 {\n+\t\t\tregulator-name = \"vreg_s1b_1p872\";\n+\t\t\tregulator-min-microvolt = \u003c1872000\u003e;\n+\t\t\tregulator-max-microvolt = \u003c2040000\u003e;\n+\t\t};\n+\n+\t\tvreg_s7b_0p972: smps7 {\n+\t\t\tregulator-name = \"vreg_s7b_0p972\";\n+\t\t\tregulator-min-microvolt = \u003c972000\u003e;\n+\t\t\tregulator-max-microvolt = \u003c1120000\u003e;\n+\t\t};\n+\n+\t\tvreg_s8b_1p272: smps8 {\n+\t\t\tregulator-name = \"vreg_s8b_1p272\";\n+\t\t\tregulator-min-microvolt = \u003c1272000\u003e;\n+\t\t\tregulator-max-microvolt = \u003c1500000\u003e;\n+\t\t};\n+\n+\t\tvreg_l1b_0p912: ldo1 {\n+\t\t\tregulator-name = \"vreg_l1b_0p912\";\n+\t\t\tregulator-min-microvolt = \u003c825000\u003e;\n+\t\t\tregulator-max-microvolt = \u003c925000\u003e;\n+\t\t\tregulator-initial-mode = \u003cRPMH_REGULATOR_MODE_HPM\u003e;\n+\t\t};\n+\n+\t\tvreg_l2b_3p072: ldo2 {\n+\t\t\tregulator-name = \"vreg_l2b_3p072\";\n+\t\t\tregulator-min-microvolt = \u003c2700000\u003e;\n+\t\t\tregulator-max-microvolt = \u003c3544000\u003e;\n+\t\t\tregulator-initial-mode = \u003cRPMH_REGULATOR_MODE_HPM\u003e;\n+\t\t};\n+\n+\t\tvreg_l3b_0p504: ldo3 {\n+\t\t\tregulator-name = \"vreg_l3b_0p504\";\n+\t\t\tregulator-min-microvolt = \u003c312000\u003e;\n+\t\t\tregulator-max-microvolt = \u003c910000\u003e;\n+\t\t\tregulator-initial-mode = \u003cRPMH_REGULATOR_MODE_HPM\u003e;\n+\t\t};\n+\n+\t\tvreg_l6b_1p2: ldo6 {\n+\t\t\tregulator-name = \"vreg_l6b_1p2\";\n+\t\t\tregulator-min-microvolt = \u003c1200000\u003e;\n+\t\t\tregulator-max-microvolt = \u003c1260000\u003e;\n+\t\t\tregulator-initial-mode = \u003cRPMH_REGULATOR_MODE_HPM\u003e;\n+\t\t\tregulator-allow-set-load;\n+\t\t\tregulator-allowed-modes = \u003cRPMH_REGULATOR_MODE_LPM\n+\t\t\t\t\t\t RPMH_REGULATOR_MODE_HPM\u003e;\n+\t\t};\n+\n+\t\tvreg_l7b_2p952: ldo7 {\n+\t\t\tregulator-name = \"vreg_l7b_2p952\";\n+\t\t\tregulator-min-microvolt = \u003c2952000\u003e;\n+\t\t\tregulator-max-microvolt = \u003c2952000\u003e;\n+\t\t\tregulator-initial-mode = \u003cRPMH_REGULATOR_MODE_HPM\u003e;\n+\t\t\tregulator-allow-set-load;\n+\t\t\tregulator-allowed-modes = \u003cRPMH_REGULATOR_MODE_LPM\n+\t\t\t\t\t\t RPMH_REGULATOR_MODE_HPM\u003e;\n+\t\t};\n+\n+\t\tvreg_l8b_0p904: ldo8 {\n+\t\t\tregulator-name = \"vreg_l8b_0p904\";\n+\t\t\tregulator-min-microvolt = \u003c870000\u003e;\n+\t\t\tregulator-max-microvolt = \u003c970000\u003e;\n+\t\t\tregulator-initial-mode = \u003cRPMH_REGULATOR_MODE_HPM\u003e;\n+\t\t};\n+\n+\t\tvreg_l9b_1p2: ldo9 {\n+\t\t\tregulator-name = \"vreg_l9b_1p2\";\n+\t\t\tregulator-min-microvolt = \u003c1200000\u003e;\n+\t\t\tregulator-max-microvolt = \u003c1304000\u003e;\n+\t\t\tregulator-initial-mode = \u003cRPMH_REGULATOR_MODE_HPM\u003e;\n+\t\t\tregulator-allow-set-load;\n+\t\t\tregulator-allowed-modes = \u003cRPMH_REGULATOR_MODE_LPM\n+\t\t\t\t\t\t RPMH_REGULATOR_MODE_HPM\u003e;\n+\t\t};\n+\n+\t\tvreg_l11b_1p504: ldo11 {\n+\t\t\tregulator-name = \"vreg_l11b_1p504\";\n+\t\t\tregulator-min-microvolt = \u003c1504000\u003e;\n+\t\t\tregulator-max-microvolt = \u003c2000000\u003e;\n+\t\t\tregulator-initial-mode = \u003cRPMH_REGULATOR_MODE_HPM\u003e;\n+\t\t};\n+\n+\t\tvreg_l12b_0p751: ldo12 {\n+\t\t\tregulator-name = \"vreg_l12b_0p751\";\n+\t\t\tregulator-min-microvolt = \u003c751000\u003e;\n+\t\t\tregulator-max-microvolt = \u003c824000\u003e;\n+\t\t\tregulator-initial-mode = \u003cRPMH_REGULATOR_MODE_HPM\u003e;\n+\t\t};\n+\n+\t\tvreg_l13b_0p53: ldo13 {\n+\t\t\tregulator-name = \"vreg_l13b_0p53\";\n+\t\t\tregulator-min-microvolt = \u003c530000\u003e;\n+\t\t\tregulator-max-microvolt = \u003c824000\u003e;\n+\t\t\tregulator-initial-mode = \u003cRPMH_REGULATOR_MODE_HPM\u003e;\n+\t\t};\n+\n+\t\tvreg_l14b_1p08: ldo14 {\n+\t\t\tregulator-name = \"vreg_l14b_1p08\";\n+\t\t\tregulator-min-microvolt = \u003c1080000\u003e;\n+\t\t\tregulator-max-microvolt = \u003c1304000\u003e;\n+\t\t\tregulator-initial-mode = \u003cRPMH_REGULATOR_MODE_HPM\u003e;\n+\t\t};\n+\n+\t\tvreg_l15b_0p765: ldo15 {\n+\t\t\tregulator-name = \"vreg_l15b_0p765\";\n+\t\t\tregulator-min-microvolt = \u003c765000\u003e;\n+\t\t\tregulator-max-microvolt = \u003c1020000\u003e;\n+\t\t\tregulator-initial-mode = \u003cRPMH_REGULATOR_MODE_HPM\u003e;\n+\t\t};\n+\n+\t\tvreg_l16b_1p1: ldo16 {\n+\t\t\tregulator-name = \"vreg_l16b_1p1\";\n+\t\t\tregulator-min-microvolt = \u003c1100000\u003e;\n+\t\t\tregulator-max-microvolt = \u003c1300000\u003e;\n+\t\t\tregulator-initial-mode = \u003cRPMH_REGULATOR_MODE_HPM\u003e;\n+\t\t};\n+\n+\t\tvreg_l17b_1p7: ldo17 {\n+\t\t\tregulator-name = \"vreg_l17b_1p7\";\n+\t\t\tregulator-min-microvolt = \u003c1700000\u003e;\n+\t\t\tregulator-max-microvolt = \u003c1900000\u003e;\n+\t\t\tregulator-initial-mode = \u003cRPMH_REGULATOR_MODE_HPM\u003e;\n+\t\t};\n+\n+\t\tvreg_l18b_1p8: ldo18 {\n+\t\t\tregulator-name = \"vreg_l18b_1p8\";\n+\t\t\tregulator-min-microvolt = \u003c1800000\u003e;\n+\t\t\tregulator-max-microvolt = \u003c2000000\u003e;\n+\t\t\tregulator-initial-mode = \u003cRPMH_REGULATOR_MODE_HPM\u003e;\n+\t\t};\n+\n+\t\tvreg_l19b_1p8: ldo19 {\n+\t\t\tregulator-name = \"vreg_l19b_1p8\";\n+\t\t\tregulator-min-microvolt = \u003c1800000\u003e;\n+\t\t\tregulator-max-microvolt = \u003c2000000\u003e;\n+\t\t\tregulator-initial-mode = \u003cRPMH_REGULATOR_MODE_HPM\u003e;\n+\t\t};\n+\t};\n+\n+\tregulators-1 {\n+\t\tcompatible = \"qcom,pm8350c-rpmh-regulators\";\n+\t\tqcom,pmic-id = \"c\";\n+\n+\t\tvdd-s1-supply = \u003c\u0026vph_pwr\u003e;\n+\t\tvdd-s2-supply = \u003c\u0026vph_pwr\u003e;\n+\t\tvdd-s5-supply = \u003c\u0026vph_pwr\u003e;\n+\t\tvdd-s7-supply = \u003c\u0026vph_pwr\u003e;\n+\t\tvdd-s9-supply = \u003c\u0026vph_pwr\u003e;\n+\t\tvdd-s10-supply = \u003c\u0026vph_pwr\u003e;\n+\n+\t\tvdd-l1-l12-supply = \u003c\u0026vreg_s1b_1p872\u003e;\n+\t\tvdd-l2-l8-supply = \u003c\u0026vreg_s1b_1p872\u003e;\n+\t\tvdd-l3-l4-l5-l7-l13-supply = \u003c\u0026vreg_bob\u003e;\n+\t\tvdd-l6-l9-l11-supply = \u003c\u0026vreg_bob\u003e;\n+\t\tvdd-l10-supply = \u003c\u0026vreg_s7b_0p972\u003e;\n+\t\tvdd-bob-supply = \u003c\u0026vph_pwr\u003e;\n+\n+\t\tvreg_s1c_2p19: smps1 {\n+\t\t\tregulator-name = \"vreg_s1c_2p19\";\n+\t\t\tregulator-min-microvolt = \u003c2190000\u003e;\n+\t\t\tregulator-max-microvolt = \u003c2210000\u003e;\n+\t\t};\n+\n+\t\tvreg_s9c_1p084: smps9 {\n+\t\t\tregulator-name = \"vreg_s9c_1p084\";\n+\t\t\tregulator-min-microvolt = \u003c1010000\u003e;\n+\t\t\tregulator-max-microvolt = \u003c1170000\u003e;\n+\t\t};\n+\n+\t\tvreg_l1c_1p8: ldo1 {\n+\t\t\tregulator-name = \"vreg_l1c_1p8\";\n+\t\t\tregulator-min-microvolt = \u003c1800000\u003e;\n+\t\t\tregulator-max-microvolt = \u003c1980000\u003e;\n+\t\t\tregulator-initial-mode = \u003cRPMH_REGULATOR_MODE_HPM\u003e;\n+\t\t};\n+\n+\t\tvreg_l2c_1p62: ldo2 {\n+\t\t\tregulator-name = \"vreg_l2c_1p62\";\n+\t\t\tregulator-min-microvolt = \u003c1620000\u003e;\n+\t\t\tregulator-max-microvolt = \u003c1980000\u003e;\n+\t\t\tregulator-initial-mode = \u003cRPMH_REGULATOR_MODE_HPM\u003e;\n+\t\t};\n+\n+\t\tvreg_l3c_2p8: ldo3 {\n+\t\t\tregulator-name = \"vreg_l3c_2p8\";\n+\t\t\tregulator-min-microvolt = \u003c2800000\u003e;\n+\t\t\tregulator-max-microvolt = \u003c3540000\u003e;\n+\t\t\tregulator-initial-mode = \u003cRPMH_REGULATOR_MODE_HPM\u003e;\n+\t\t};\n+\n+\t\tvreg_l4c_1p62: ldo4 {\n+\t\t\tregulator-name = \"vreg_l4c_1p62\";\n+\t\t\tregulator-min-microvolt = \u003c1620000\u003e;\n+\t\t\tregulator-max-microvolt = \u003c3300000\u003e;\n+\t\t\tregulator-initial-mode = \u003cRPMH_REGULATOR_MODE_HPM\u003e;\n+\t\t};\n+\n+\t\tvreg_l5c_1p62: ldo5 {\n+\t\t\tregulator-name = \"vreg_l5c_1p62\";\n+\t\t\tregulator-min-microvolt = \u003c1620000\u003e;\n+\t\t\tregulator-max-microvolt = \u003c3300000\u003e;\n+\t\t\tregulator-initial-mode = \u003cRPMH_REGULATOR_MODE_HPM\u003e;\n+\t\t};\n+\n+\t\tvreg_l6c_2p96: ldo6 {\n+\t\t\tregulator-name = \"vreg_l6c_2p96\";\n+\t\t\tregulator-min-microvolt = \u003c1650000\u003e;\n+\t\t\tregulator-max-microvolt = \u003c3544000\u003e;\n+\t\t\tregulator-initial-mode = \u003cRPMH_REGULATOR_MODE_HPM\u003e;\n+\t\t};\n+\n+\t\tvreg_l7c_3p0: ldo7 {\n+\t\t\tregulator-name = \"vreg_l7c_3p0\";\n+\t\t\tregulator-min-microvolt = \u003c3000000\u003e;\n+\t\t\tregulator-max-microvolt = \u003c3544000\u003e;\n+\t\t\tregulator-initial-mode = \u003cRPMH_REGULATOR_MODE_HPM\u003e;\n+\t\t};\n+\n+\t\tvreg_l8c_1p62: ldo8 {\n+\t\t\tregulator-name = \"vreg_l8c_1p62\";\n+\t\t\tregulator-min-microvolt = \u003c1620000\u003e;\n+\t\t\tregulator-max-microvolt = \u003c2000000\u003e;\n+\t\t\tregulator-initial-mode = \u003cRPMH_REGULATOR_MODE_HPM\u003e;\n+\t\t};\n+\n+\t\tvreg_l9c_2p96: ldo9 {\n+\t\t\tregulator-name = \"vreg_l9c_2p96\";\n+\t\t\tregulator-min-microvolt = \u003c2700000\u003e;\n+\t\t\tregulator-max-microvolt = \u003c3544000\u003e;\n+\t\t\tregulator-initial-mode = \u003cRPMH_REGULATOR_MODE_HPM\u003e;\n+\t\t};\n+\n+\t\tvreg_l10c_0p88: ldo10 {\n+\t\t\tregulator-name = \"vreg_l10c_0p88\";\n+\t\t\tregulator-min-microvolt = \u003c880000\u003e;\n+\t\t\tregulator-max-microvolt = \u003c1050000\u003e;\n+\t\t\tregulator-initial-mode = \u003cRPMH_REGULATOR_MODE_HPM\u003e;\n+\t\t\tregulator-allow-set-load;\n+\t\t\tregulator-allowed-modes = \u003cRPMH_REGULATOR_MODE_LPM\n+\t\t\t\t\t\t RPMH_REGULATOR_MODE_HPM\u003e;\n+\t\t};\n+\n+\t\tvreg_l11c_2p8: ldo11 {\n+\t\t\tregulator-name = \"vreg_l11c_2p8\";\n+\t\t\tregulator-min-microvolt = \u003c2800000\u003e;\n+\t\t\tregulator-max-microvolt = \u003c3544000\u003e;\n+\t\t\tregulator-initial-mode = \u003cRPMH_REGULATOR_MODE_HPM\u003e;\n+\t\t};\n+\n+\t\t/* Sensors behind the ADSP (accelerometer, light, proximity) */\n+\t\tvreg_l12c_1p65: ldo12 {\n+\t\t\tregulator-name = \"vreg_l12c_1p65\";\n+\t\t\tregulator-min-microvolt = \u003c1800000\u003e;\n+\t\t\tregulator-max-microvolt = \u003c2000000\u003e;\n+\t\t\tregulator-initial-mode = \u003cRPMH_REGULATOR_MODE_HPM\u003e;\n+\t\t\tregulator-always-on;\n+\t\t};\n+\n+\t\tvreg_l13c_2p7: ldo13 {\n+\t\t\tregulator-name = \"vreg_l13c_2p7\";\n+\t\t\tregulator-min-microvolt = \u003c2700000\u003e;\n+\t\t\tregulator-max-microvolt = \u003c3544000\u003e;\n+\t\t\tregulator-initial-mode = \u003cRPMH_REGULATOR_MODE_HPM\u003e;\n+\t\t};\n+\n+\t\tvreg_bob: bob {\n+\t\t\tregulator-name = \"vreg_bob\";\n+\t\t\tregulator-min-microvolt = \u003c3008000\u003e;\n+\t\t\tregulator-max-microvolt = \u003c3960000\u003e;\n+\t\t\tregulator-initial-mode = \u003cRPMH_REGULATOR_MODE_HPM\u003e;\n+\t\t};\n+\t};\n+\n+\tregulators-2 {\n+\t\tcompatible = \"qcom,pmr735a-rpmh-regulators\";\n+\t\tqcom,pmic-id = \"e\";\n+\n+\t\tvreg_l2e_1p2: ldo2 {\n+\t\t\tregulator-name = \"vreg_l2e_1p2\";\n+\t\t\tregulator-min-microvolt = \u003c1200000\u003e;\n+\t\t\tregulator-max-microvolt = \u003c1200000\u003e;\n+\t\t\tregulator-initial-mode = \u003cRPMH_REGULATOR_MODE_HPM\u003e;\n+\t\t};\n+\n+\t\tvreg_l3e_0p912: ldo3 {\n+\t\t\tregulator-name = \"vreg_l3e_0p912\";\n+\t\t\tregulator-min-microvolt = \u003c912000\u003e;\n+\t\t\tregulator-max-microvolt = \u003c1020000\u003e;\n+\t\t\tregulator-initial-mode = \u003cRPMH_REGULATOR_MODE_HPM\u003e;\n+\t\t};\n+\n+\t\tvreg_l4e_1p776: ldo4 {\n+\t\t\tregulator-name = \"vreg_l4e_1p776\";\n+\t\t\tregulator-min-microvolt = \u003c1776000\u003e;\n+\t\t\tregulator-max-microvolt = \u003c1890000\u003e;\n+\t\t\tregulator-initial-mode = \u003cRPMH_REGULATOR_MODE_HPM\u003e;\n+\t\t};\n+\n+\t\tvreg_l5e_0p8: ldo5 {\n+\t\t\tregulator-name = \"vreg_l5e_0p8\";\n+\t\t\tregulator-min-microvolt = \u003c800000\u003e;\n+\t\t\tregulator-max-microvolt = \u003c800000\u003e;\n+\t\t\tregulator-initial-mode = \u003cRPMH_REGULATOR_MODE_HPM\u003e;\n+\t\t};\n+\n+\t\tvreg_l6e_0p48: ldo6 {\n+\t\t\tregulator-name = \"vreg_l6e_0p48\";\n+\t\t\tregulator-min-microvolt = \u003c480000\u003e;\n+\t\t\tregulator-max-microvolt = \u003c904000\u003e;\n+\t\t\tregulator-initial-mode = \u003cRPMH_REGULATOR_MODE_HPM\u003e;\n+\t\t};\n+\t};\n+};\n+\n+\u0026gcc {\n+\tprotected-clocks = \u003cGCC_CFG_NOC_LPASS_CLK\u003e,\n+\t\t\t \u003cGCC_MSS_CFG_AHB_CLK\u003e,\n+\t\t\t \u003cGCC_MSS_OFFLINE_AXI_CLK\u003e,\n+\t\t\t \u003cGCC_MSS_Q6SS_BOOT_CLK_SRC\u003e,\n+\t\t\t \u003cGCC_MSS_Q6_MEMNOC_AXI_CLK\u003e,\n+\t\t\t \u003cGCC_MSS_SNOC_AXI_CLK\u003e,\n+\t\t\t \u003cGCC_QSPI_CNOC_PERIPH_AHB_CLK\u003e,\n+\t\t\t \u003cGCC_QSPI_CORE_CLK\u003e,\n+\t\t\t \u003cGCC_QSPI_CORE_CLK_SRC\u003e,\n+\t\t\t \u003cGCC_SEC_CTRL_CLK_SRC\u003e,\n+\t\t\t \u003cGCC_WPSS_AHB_BDG_MST_CLK\u003e,\n+\t\t\t \u003cGCC_WPSS_AHB_CLK\u003e,\n+\t\t\t \u003cGCC_WPSS_RSCP_CLK\u003e;\n+};\n+\n+\u0026gpi_dma1 {\n+\tstatus = \"okay\";\n+};\n+\n+\u0026gpu {\n+\tstatus = \"okay\";\n+};\n+\n+\u0026gpu_zap_shader {\n+\tfirmware-name = \"qcom/sm7325/samsung/m52xq/a660_zap.mbn\";\n+};\n+\n+\u0026i2c9 {\n+\tclock-frequency = \u003c100000\u003e;\n+\n+\tstatus = \"okay\";\n+\n+\tnfc@27 {\n+\t\tcompatible = \"samsung,s3fwrn5-i2c\";\n+\t\treg = \u003c0x27\u003e;\n+\n+\t\tinterrupts-extended = \u003c\u0026tlmm 41 IRQ_TYPE_EDGE_RISING\u003e;\n+\n+\t\ten-gpios = \u003c\u0026tlmm 38 GPIO_ACTIVE_HIGH\u003e;\n+\t\twake-gpios = \u003c\u0026tlmm 40 GPIO_ACTIVE_HIGH\u003e;\n+\n+\t\tpvdd-supply = \u003c\u0026vreg_nfc_pvdd\u003e;\n+\t};\n+};\n+\n+\u0026ipa {\n+\t/* the IPA firmware goes to the Samsung IPA GSI PIL region */\n+\tmemory-region = \u003c\u0026ipa_gsi_mem\u003e;\n+\tfirmware-name = \"qcom/sm7325/samsung/m52xq/ipa_fws.mbn\";\n+\n+\tstatus = \"okay\";\n+};\n+\n+\u0026lpass_audiocc {\n+\tcompatible = \"qcom,qcm6490-lpassaudiocc\";\n+\t/delete-property/ power-domains;\n+};\n+\n+\u0026pm7325_gpios {\n+\tvolume_up_default: volume-up-default-state {\n+\t\tpins = \"gpio6\";\n+\t\tfunction = PMIC_GPIO_FUNC_NORMAL;\n+\t\tpower-source = \u003c1\u003e;\n+\t\tbias-pull-up;\n+\t\tinput-enable;\n+\t};\n+};\n+\n+\u0026pmk8350_vadc {\n+\t/* battery NTC */\n+\tchannel@14b {\n+\t\treg = \u003cPM7325_ADC7_GPIO2_100K_PU\u003e;\n+\t\tqcom,ratiometric;\n+\t\tqcom,hw-settle-time = \u003c200\u003e;\n+\t\tqcom,pre-scaling = \u003c1 1\u003e;\n+\t\tlabel = \"pm7325_bat_therm\";\n+\t};\n+};\n+\n+\u0026pon_pwrkey {\n+\tstatus = \"okay\";\n+};\n+\n+\u0026pon_resin {\n+\tlinux,code = \u003cKEY_VOLUMEDOWN\u003e;\n+\n+\tstatus = \"okay\";\n+};\n+\n+\u0026qupv3_id_0 {\n+\tstatus = \"okay\";\n+};\n+\n+\u0026qupv3_id_1 {\n+\tstatus = \"okay\";\n+};\n+\n+\u0026qup_uart7_cts {\n+\tdrive-strength = \u003c2\u003e;\n+\tbias-disable;\n+};\n+\n+\u0026qup_uart7_rts {\n+\tdrive-strength = \u003c2\u003e;\n+\tbias-pull-down;\n+};\n+\n+\u0026qup_uart7_rx {\n+\tdrive-strength = \u003c2\u003e;\n+\tbias-disable;\n+};\n+\n+\u0026qup_uart7_tx {\n+\tdrive-strength = \u003c2\u003e;\n+\tbias-pull-up;\n+};\n+\n+\u0026remoteproc_adsp {\n+\tfirmware-name = \"qcom/sm7325/samsung/m52xq/adsp.mbn\";\n+\n+\tstatus = \"okay\";\n+};\n+\n+\u0026remoteproc_mpss {\n+\tfirmware-name = \"qcom/sm7325/samsung/m52xq/modem.mbn\";\n+\n+\tstatus = \"okay\";\n+};\n+\n+\u0026remoteproc_wpss {\n+\tfirmware-name = \"qcom/sm7325/samsung/m52xq/wpss.mbn\";\n+\n+\tstatus = \"okay\";\n+};\n+\n+\u0026sdc2_clk {\n+\tdrive-strength = \u003c16\u003e;\n+\tbias-disable;\n+};\n+\n+\u0026sdc2_cmd {\n+\tdrive-strength = \u003c10\u003e;\n+\tbias-pull-up;\n+};\n+\n+\u0026sdc2_data {\n+\tdrive-strength = \u003c10\u003e;\n+\tbias-pull-up;\n+};\n+\n+\u0026sdhc_2 {\n+\tcd-gpios = \u003c\u0026tlmm 91 GPIO_ACTIVE_LOW\u003e;\n+\n+\tpinctrl-0 = \u003c\u0026sdc2_clk\u003e, \u003c\u0026sdc2_cmd\u003e, \u003c\u0026sdc2_data\u003e, \u003c\u0026sd_cd_default\u003e;\n+\tpinctrl-1 = \u003c\u0026sdc2_clk_sleep\u003e, \u003c\u0026sdc2_cmd_sleep\u003e, \u003c\u0026sdc2_data_sleep\u003e, \u003c\u0026sd_cd_default\u003e;\n+\n+\tvmmc-supply = \u003c\u0026vreg_l9c_2p96\u003e;\n+\tvqmmc-supply = \u003c\u0026vreg_l6c_2p96\u003e;\n+\n+\tstatus = \"okay\";\n+};\n+\n+\u0026tlmm {\n+\tgpio-reserved-ranges = \u003c56 4\u003e; /* SPI (fingerprint reader) */\n+\n+\tbluetooth_enable_default: bluetooth-enable-default-state {\n+\t\tpins = \"gpio85\";\n+\t\tfunction = \"gpio\";\n+\t\tdrive-strength = \u003c2\u003e;\n+\t\toutput-low;\n+\t\tbias-pull-down;\n+\t};\n+\n+\tmotor_en_default: motor-en-default-state {\n+\t\tpins = \"gpio62\";\n+\t\tfunction = \"gpio\";\n+\t\tdrive-strength = \u003c2\u003e;\n+\t\tbias-disable;\n+\t};\n+\n+\tqup_uart7_sleep_cts: qup-uart7-sleep-cts-state {\n+\t\tpins = \"gpio28\";\n+\t\tfunction = \"gpio\";\n+\t\t/*\n+\t\t * Configure a bias-bus-hold on CTS to lower power\n+\t\t * usage when Bluetooth is turned off. Bus hold will\n+\t\t * maintain a low power state regardless of whether\n+\t\t * the Bluetooth module drives the pin in either\n+\t\t * direction or leaves the pin fully unpowered.\n+\t\t */\n+\t\tbias-bus-hold;\n+\t};\n+\n+\tqup_uart7_sleep_rts: qup-uart7-sleep-rts-state {\n+\t\tpins = \"gpio29\";\n+\t\tfunction = \"gpio\";\n+\t\t/*\n+\t\t * Configure pull-down on RTS. As RTS is active low\n+\t\t * signal, pull it low to indicate the BT SoC that it\n+\t\t * can wakeup the system anytime from suspend state by\n+\t\t * pulling RX low (by sending wakeup bytes).\n+\t\t */\n+\t\tbias-pull-down;\n+\t};\n+\n+\tqup_uart7_sleep_tx: qup-uart7-sleep-tx-state {\n+\t\tpins = \"gpio30\";\n+\t\tfunction = \"gpio\";\n+\t\t/*\n+\t\t * Configure pull-up on TX when it isn't actively driven\n+\t\t * to prevent BT SoC from receiving garbage during sleep.\n+\t\t */\n+\t\tbias-pull-up;\n+\t};\n+\n+\tqup_uart7_sleep_rx: qup-uart7-sleep-rx-state {\n+\t\tpins = \"gpio31\";\n+\t\tfunction = \"gpio\";\n+\t\t/*\n+\t\t * Configure a pull-up on RX. This is needed to avoid\n+\t\t * garbage data when the TX pin of the Bluetooth module\n+\t\t * is floating which may cause spurious wakeups.\n+\t\t */\n+\t\tbias-pull-up;\n+\t};\n+\n+\tsd_cd_default: sd-cd-default-state {\n+\t\tpins = \"gpio91\";\n+\t\tfunction = \"gpio\";\n+\t\tdrive-strength = \u003c2\u003e;\n+\t\tbias-disable;\n+\t};\n+\n+\tsw_ctrl_default: sw-ctrl-default-state {\n+\t\tpins = \"gpio86\";\n+\t\tfunction = \"gpio\";\n+\t\tbias-pull-down;\n+\t};\n+};\n+\n+\u0026uart7 {\n+\t/delete-property/ interrupts;\n+\tinterrupts-extended = \u003c\u0026intc GIC_SPI 608 IRQ_TYPE_LEVEL_HIGH\u003e,\n+\t\t\t \u003c\u0026tlmm 31 IRQ_TYPE_EDGE_FALLING\u003e;\n+\n+\tpinctrl-1 = \u003c\u0026qup_uart7_sleep_cts\u003e, \u003c\u0026qup_uart7_sleep_rts\u003e,\n+\t\t \u003c\u0026qup_uart7_sleep_tx\u003e, \u003c\u0026qup_uart7_sleep_rx\u003e;\n+\tpinctrl-names = \"default\", \"sleep\";\n+\n+\tstatus = \"okay\";\n+\n+\tbluetooth: bluetooth {\n+\t\tcompatible = \"qcom,wcn6750-bt\";\n+\n+\t\tpinctrl-0 = \u003c\u0026bluetooth_enable_default\u003e, \u003c\u0026sw_ctrl_default\u003e;\n+\t\tpinctrl-names = \"default\";\n+\n+\t\tenable-gpios = \u003c\u0026tlmm 85 GPIO_ACTIVE_HIGH\u003e;\n+\t\tswctrl-gpios = \u003c\u0026tlmm 86 GPIO_ACTIVE_HIGH\u003e;\n+\n+\t\tvddio-supply = \u003c\u0026vreg_l19b_1p8\u003e;\n+\t\tvddaon-supply = \u003c\u0026vreg_s7b_0p972\u003e;\n+\t\tvddbtcxmx-supply = \u003c\u0026vreg_s7b_0p972\u003e;\n+\t\tvddrfacmn-supply = \u003c\u0026vreg_s7b_0p972\u003e;\n+\t\tvddrfa0p8-supply = \u003c\u0026vreg_s7b_0p972\u003e;\n+\t\tvddrfa1p7-supply = \u003c\u0026vreg_s1b_1p872\u003e;\n+\t\tvddrfa1p2-supply = \u003c\u0026vreg_s8b_1p272\u003e;\n+\t\tvddrfa2p2-supply = \u003c\u0026vreg_s1c_2p19\u003e;\n+\t\tvddasd-supply = \u003c\u0026vreg_l11c_2p8\u003e;\n+\n+\t\tmax-speed = \u003c3200000\u003e;\n+\t};\n+};\n+\n+\u0026ufs_mem_hc {\n+\treset-gpios = \u003c\u0026tlmm 175 GPIO_ACTIVE_LOW\u003e;\n+\n+\tvcc-supply = \u003c\u0026vreg_l7b_2p952\u003e;\n+\tvcc-max-microamp = \u003c800000\u003e;\n+\tvccq-supply = \u003c\u0026vreg_l9b_1p2\u003e;\n+\tvccq-max-microamp = \u003c900000\u003e;\n+\n+\tstatus = \"okay\";\n+};\n+\n+\u0026ufs_mem_phy {\n+\tvdda-phy-supply = \u003c\u0026vreg_l10c_0p88\u003e;\n+\tvdda-pll-supply = \u003c\u0026vreg_l6b_1p2\u003e;\n+\n+\tstatus = \"okay\";\n+};\n+\n+\u0026usb_1 {\n+\tdr_mode = \"peripheral\";\n+\tmaximum-speed = \"high-speed\";\n+\tphys = \u003c\u0026usb_1_hsphy\u003e;\n+\tphy-names = \"usb2-phy\";\n+\tqcom,select-utmi-as-pipe-clk;\n+\n+\tstatus = \"okay\";\n+};\n+\n+\u0026usb_1_hsphy {\n+\tvdda-pll-supply = \u003c\u0026vreg_l10c_0p88\u003e;\n+\tvdda18-supply = \u003c\u0026vreg_l1c_1p8\u003e;\n+\tvdda33-supply = \u003c\u0026vreg_l2b_3p072\u003e;\n+\n+\tstatus = \"okay\";\n+};\n+\n+\u0026venus {\n+\tfirmware-name = \"qcom/sm7325/samsung/m52xq/venus.mbn\";\n+\n+\tstatus = \"okay\";\n+};\n+\n+\u0026wifi {\n+\tstatus = \"okay\";\n+};\ndiff --git a/drivers/nfc/s3fwrn5/i2c.c b/drivers/nfc/s3fwrn5/i2c.c\nindex 4ba76261171185..eaa9a1f7553387 100644\n--- a/drivers/nfc/s3fwrn5/i2c.c\n+++ b/drivers/nfc/s3fwrn5/i2c.c\n@@ -11,6 +11,7 @@\n #include \u003clinux/gpio/consumer.h\u003e\n #include \u003clinux/delay.h\u003e\n #include \u003clinux/module.h\u003e\n+#include \u003clinux/regulator/consumer.h\u003e\n \n #include \u003cnet/nfc/nfc.h\u003e\n \n@@ -160,6 +161,12 @@ static int s3fwrn5_i2c_probe(struct i2c_client *client)\n \tphy-\u003ei2c_dev = client;\n \ti2c_set_clientdata(client, phy);\n \n+\t/* The chip has to be powered before EN is driven */\n+\tret = devm_regulator_get_enable_optional(\u0026client-\u003edev, \"pvdd\");\n+\tif (ret \u0026\u0026 ret != -ENODEV)\n+\t\treturn dev_err_probe(\u0026client-\u003edev, ret,\n+\t\t\t\t \"failed to enable pvdd supply\\n\");\n+\n \tphy-\u003ecommon.gpio_en = devm_gpiod_get(\u0026client-\u003edev, \"en\", GPIOD_OUT_HIGH);\n \tif (IS_ERR(phy-\u003ecommon.gpio_en))\n \t\treturn PTR_ERR(phy-\u003ecommon.gpio_en);\n"
} |
| 2/1 | 2026/11/15 08:17 | agent | patch-evaluator |
1mModel:core Args: null Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"Reasoning": "The patch series introduces device tree support for the Samsung Galaxy M52 5G (SM7325, ARM64) and adds optional regulator ('pvdd') support to the Samsung S3FWRN5 I2C NFC driver. The DTS files are exclusive to ARM64 and cannot execute on the target architecture (amd64). The documentation files are non-executable. The driver changes in drivers/nfc/s3fwrn5/i2c.c target a vendor-specific I2C NFC chip on physical mobile hardware requiring platform GPIOs/regulators, which is not emulated in standard QEMU/GCE virtual environments and cannot be accessed via virtual buses. Therefore, the modified code is structurally unreachable for fuzzing on amd64.",
"WorthFuzzing": false
}Instruction: You are an expert Linux kernel maintainer and security engineer.
Your job is to review a provided patch series and evaluate whether it warrants fuzzing with syzkaller.
IMPORTANT: The changes have ALREADY been applied and committed as the HEAD commit in
your workspace. Do NOT rely on internal assumptions. You must actively use your code access
tools to inspect the actual source code, callers, and surrounding context.
================================================================================
1. CORE TRIAGE PHILOSOPHY
================================================================================
The goal of patch fuzzing is to discover crashes, regressions, exposed latent bugs,
and newly triggered assertions introduced by the patch series.
- REACHABILITY IS THE PRIMARY GATE:
Fuzzing can only discover bugs in code that can actually execute in standard virtualized
environments (GCE or QEMU, utilizing software-emulated devices like USB gadgets, netdev, tun/tap).
If the modified code is structurally unreachable (see Section 2), it MUST NOT be fuzzed,
regardless of whether it adds assertions or complex logic.
- DO NOT BLINDLY TRUST "NO FUNCTIONAL CHANGE" (NFCI) OR "REFACTORING" CLAIMS:
Patch authors routinely label changes as "cleanups", "refactorings", or state
"No functional change intended". Do NOT take these claims at face value.
Code refactorings that rearrange logic, introduce helper functions, or alter state management
in core subsystems frequently introduce subtle semantic shifts or uncover latent kernel bugs.
If reachable executable code is modified or refactored, it MUST be fuzzed.
- NEW OR MODIFIED ASSERTIONS IN REACHABLE CODE MUST BE FUZZED:
When a patch introduces or modifies runtime checks or assertions (e.g., WARN_ON*, VM_WARN_ON*,
BUG_ON*, lockdep_assert*) in reachable code paths, it enforces new or stricter invariants.
Even if the author believes the invariant always holds, fuzzing is essential to verify whether
an unusual sequence of operations can violate it.
================================================================================
2. WHEN TO RETURN WorthFuzzing=false (NEGATIVE CRITERIA)
================================================================================
Return WorthFuzzing=false ONLY IF all modified code falls strictly into one or more of these categories:
- Non-kernel and non-executable changes:
* Modifications to Documentation/, comments, or spelling fixes.
* User-space directories, self-tests, samples, or scripts (e.g., tools/, samples/, scripts/, usr/)
that do not affect the compiled kernel image (vmlinux) or kernel modules.
* Purely decorative logging (e.g., message strings in pr_err, printk, dev_info) or tracepoints
that do not alter control flow or data structures.
* Build system or Kconfig changes that do not alter compiled C logic.
- Structurally unreachable hardware:
* Vendor-specific PCIe switches, SmartNICs, or GPU drivers (e.g., mlxsw, pds_core, qed,
ionic, amdgpu) requiring physical ASIC/PCIe cards not emulated in standard QEMU.
- Unreachable execution paths:
* Driver teardown callbacks (.remove, .shutdown, pci_unregister_driver) executed only during
physical PCI hot-unplug or manual sysfs driver unbinding.
* Code paths exclusive to architectures other than the target architecture.
================================================================================
3. WHEN TO RETURN WorthFuzzing=true (POSITIVE CRITERIA)
================================================================================
Return WorthFuzzing=true whenever the patch touches reachable executable code, including:
- Core Subsystems:
* Any logic modifications in memory management (mm/), synchronization/locking (kernel/locking/),
BPF, scheduler, core networking, VFS, or syscall handling.
- Refactorings and Code Cleanups:
* Any restructuring of reachable data structures, helper abstractions, or algorithm flows.
- Runtime Assertions and Defensive Checks:
* Any introduction or alteration of assertions (WARN_ON*, VM_WARN_ON*, BUG_ON*, etc.) in reachable paths.
- Reachable Drivers and Protocols:
* Drivers accessible via virtual buses (virtio, USB gadget, loopback, netlink, binder, sockets, etc.).
================================================================================
4. EXTRACTING FocusSymbols (PREVENTING DILUTION)
================================================================================
When WorthFuzzing=true, you must extract specific kernel functions into FocusSymbols to guide the fuzzer:
- AVOID UBIQUITOUS LIFECYCLE HOT-PATHS:
Do NOT list generic, ubiquitous functions called by almost every program in the corpus
(including, but not limited to: general memory allocators and deallocators, page fault
and trap handlers, or core synchronization primitives; this is not an exhaustive list).
Listing ubiquitous functions causes the fuzzer to classify thousands of unrelated tests as "focused",
which severely dilutes fuzzing effort away from the actual changes.
- TARGET SPECIFIC FEATURE LOGIC AND ENTRYPOINTS:
List functions that specifically implement the logic being added or altered, or direct API entrypoints
for the subsystem feature under review.
- HANDLING STATIC INLINE FUNCTIONS IN HEADERS (.h):
Compiler-inlined static functions (such as static inlines in mm/*.h or include/linux/*.h) lack
distinct symbol addresses in vmlinux and cannot be targeted directly by symbol coverage filters.
If the changes are primarily in static inline helpers, identify non-static, feature-specific caller
functions in .c files that exercise them (avoiding ubiquitous lifecycle wrappers).
================================================================================
5. IDENTIFYING EnableConfigs
================================================================================
Identify any specific CONFIG_ options required to properly compile and reach the modified code:
- Inspect Kconfig files and #ifdef guards; do not make assumptions.
- Check "depends on" lines in Kconfig to include any non-standard parent subsystem configs needed.
- Strip any 'CONFIG_' prefix (e.g., return "NET_IPV4" instead of "CONFIG_NET_IPV4").
Prefer calling several tools at the same time to save round-trips.
Use set-results tool to provide results of the analysis.
It must be called exactly once before the final reply.
Ignore results of this tool.
Prompt: Target architecture: amd64
For your convenience, here is the diff of the changes:
commit 4468039b986c2428a8917423435b0d421ba13c0f
Author: syz-cluster <triage@syzkaller.com>
Date: Sun Nov 15 08:17:40 2026 +0000
syz-cluster: applied patch under review
diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentation/devicetree/bindings/arm/qcom.yaml
index 121ca557ce1eff..fff2be0ecb478b 100644
--- a/Documentation/devicetree/bindings/arm/qcom.yaml
+++ b/Documentation/devicetree/bindings/arm/qcom.yaml
@@ -1124,6 +1124,7 @@ properties:
- enum:
- motorola,dubai
- nothing,spacewar
+ - samsung,m52xq
- xiaomi,lisa
- xiaomi,taoyao
- const: qcom,sm7325
diff --git a/Documentation/devicetree/bindings/net/nfc/samsung,s3fwrn5.yaml b/Documentation/devicetree/bindings/net/nfc/samsung,s3fwrn5.yaml
index 12baee45752c7b..3c5a579a710805 100644
--- a/Documentation/devicetree/bindings/net/nfc/samsung,s3fwrn5.yaml
+++ b/Documentation/devicetree/bindings/net/nfc/samsung,s3fwrn5.yaml
@@ -34,6 +34,10 @@ properties:
description:
Output GPIO pin used to enter firmware mode and sleep/wakeup control
+ pvdd-supply:
+ description:
+ Power supply of the PVDD pin
+
s3fwrn5,en-gpios:
maxItems: 1
deprecated: true
@@ -84,6 +88,7 @@ examples:
wake-gpios = <&gpj0 2 GPIO_ACTIVE_HIGH>;
clocks = <&rpmcc 20>;
+ pvdd-supply = <&nfc_pvdd>;
};
};
# UART example on Raspberry Pi
diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile
index 88230c4e00ea91..a1c1a736888798 100644
--- a/arch/arm64/boot/dts/qcom/Makefile
+++ b/arch/arm64/boot/dts/qcom/Makefile
@@ -401,6 +401,7 @@ dtb-$(CONFIG_ARCH_QCOM) += sm7325-motorola-dubai.dtb
dtb-$(CONFIG_ARCH_QCOM) += sm7325-motorola-dubai-csot.dtb
dtb-$(CONFIG_ARCH_QCOM) += sm7325-motorola-dubai-tianma.dtb
dtb-$(CONFIG_ARCH_QCOM) += sm7325-nothing-spacewar.dtb
+dtb-$(CONFIG_ARCH_QCOM) += sm7325-samsung-m52xq.dtb
dtb-$(CONFIG_ARCH_QCOM) += sm7325-xiaomi-lisa.dtb
dtb-$(CONFIG_ARCH_QCOM) += sm7325-xiaomi-taoyao.dtb
dtb-$(CONFIG_ARCH_QCOM) += sm8150-hdk.dtb
diff --git a/arch/arm64/boot/dts/qcom/sm7325-samsung-m52xq.dts b/arch/arm64/boot/dts/qcom/sm7325-samsung-m52xq.dts
new file mode 100644
index 00000000000000..495ae7573778cf
--- /dev/null
+++ b/arch/arm64/boot/dts/qcom/sm7325-samsung-m52xq.dts
@@ -0,0 +1,839 @@
+// SPDX-License-Identifier: BSD-3-Clause
+/*
+ * Copyright (c) 2026, Asdlerto Korry <korryasdlerto@gmail.com>
+ */
+
+/dts-v1/;
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/iio/qcom,spmi-adc7-pm7325.h>
+#include <dt-bindings/input/linux-event-codes.h>
+#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
+#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
+
+#include "sm7325.dtsi"
+#include "pm7325.dtsi"
+#include "pm8350c.dtsi" /* PM7350C */
+#include "pmk8350.dtsi" /* PMK7325 */
+
+/* The following reserved memory regions have different addresses or sizes */
+/delete-node/ &adsp_mem;
+/delete-node/ &rmtfs_mem;
+
+/* The ADSP firmware region covers the CDSP one, the CDSP is not used */
+/delete-node/ &cdsp_mem;
+/delete-node/ &remoteproc_cdsp;
+
+/ {
+ model = "Samsung Galaxy M52 5G";
+ compatible = "samsung,m52xq", "qcom,sm7325";
+ chassis-type = "handset";
+
+ aliases {
+ serial1 = &uart7;
+ };
+
+ chosen {
+ #address-cells = <2>;
+ #size-cells = <2>;
+ ranges;
+
+ framebuffer0: framebuffer {
+ compatible = "simple-framebuffer";
+ width = <1080>;
+ height = <2400>;
+ stride = <(1080 * 4)>;
+ format = "a8r8g8b8";
+ memory-region = <&splash_mem>;
+
+ clocks = <&gcc GCC_DISP_HF_AXI_CLK>,
+ <&dispcc DISP_CC_MDSS_MDP_CLK>,
+ <&dispcc DISP_CC_MDSS_BYTE0_CLK>,
+ <&dispcc DISP_CC_MDSS_BYTE0_INTF_CLK>,
+ <&dispcc DISP_CC_MDSS_PCLK0_CLK>,
+ <&dispcc DISP_CC_MDSS_VSYNC_CLK>;
+ power-domains = <&dispcc DISP_CC_MDSS_CORE_GDSC>;
+ };
+ };
+
+ gpio-keys {
+ compatible = "gpio-keys";
+
+ pinctrl-0 = <&volume_up_default>;
+ pinctrl-names = "default";
+
+ key-volume-up {
+ label = "Volume Up";
+ gpios = <&pm7325_gpios 6 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_VOLUMEUP>;
+ debounce-interval = <15>;
+ };
+ };
+
+ reserved-memory {
+ cdsp_secure_heap_mem: cdsp-secure-heap@81800000 {
+ reg = <0x0 0x81800000 0x0 0x1e00000>;
+ no-map;
+ };
+
+ adsp_mem: adsp@86700000 {
+ reg = <0x0 0x86700000 0x0 0x4800000>;
+ no-map;
+ };
+
+ /* Stock camera firmware region, its first 2 MiB are used by the ADSP */
+ camera_mem: camera@8af00000 {
+ reg = <0x0 0x8af00000 0x0 0x300000>;
+ no-map;
+ };
+
+ ipa_gsi_mem: ipa-gsi@8b710000 {
+ reg = <0x0 0x8b710000 0x0 0xa000>;
+ no-map;
+ };
+
+ rmtfs_mem: rmtfs@9c900000 {
+ compatible = "qcom,rmtfs-mem";
+ reg = <0x0 0x9c900000 0x0 0x280000>;
+ no-map;
+
+ qcom,client-id = <1>;
+ qcom,vmid = <QCOM_SCM_VMID_MSS_MSA>,
+ <QCOM_SCM_VMID_NAV>;
+ };
+
+ /* Larger than on other SM7325 devices, the stock DT carves out 0x5f00000 */
+ removed_mem: removed@c0000000 {
+ reg = <0x0 0xc0000000 0x0 0x5f00000>;
+ no-map;
+ };
+
+ pil_trustedvm_mem: pil-trustedvm-region@d0800000 {
+ reg = <0x0 0xd0800000 0x0 0x76f7000>;
+ no-map;
+ };
+
+ qrtr_shmem: qrtr-shmem@d7ef7000 {
+ reg = <0x0 0xd7ef7000 0x0 0x9000>;
+ no-map;
+ };
+
+ neuron_block_0_mem: neuron-block@d7f00000 {
+ reg = <0x0 0xd7f00000 0x0 0x80000>;
+ no-map;
+ };
+
+ neuron_block_1_mem: neuron-block@d7f80000 {
+ reg = <0x0 0xd7f80000 0x0 0x80000>;
+ no-map;
+ };
+
+ ramoops@f0b00000 {
+ compatible = "ramoops";
+ reg = <0x0 0xf0b00000 0x0 0x100000>;
+ record-size = <0x40000>;
+ console-size = <0x40000>;
+ ftrace-size = <0x40000>;
+ pmsg-size = <0x40000>;
+ };
+
+ /* ABL looks this node up by name to update the splash region */
+ splash_mem: splash_region@e1000000 {
+ reg = <0x0 0xe1000000 0x0 0x2300000>;
+ no-map;
+ };
+
+ dfps_data_mem: dfps-data@e3300000 {
+ reg = <0x0 0xe3300000 0x0 0x100000>;
+ no-map;
+ };
+ };
+
+ /* NFC chip power, switched by TLMM 42 */
+ vreg_nfc_pvdd: regulator-nfc-pvdd {
+ compatible = "regulator-fixed";
+ regulator-name = "nfc_pvdd";
+ gpio = <&tlmm 42 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+ };
+
+ /* Coin DC motor, TLMM 62 switches its external LDO */
+ vibrator {
+ compatible = "gpio-vibrator";
+ enable-gpios = <&tlmm 62 GPIO_ACTIVE_HIGH>;
+
+ pinctrl-0 = <&motor_en_default>;
+ pinctrl-names = "default";
+ };
+
+ vph_pwr: vph-pwr-regulator {
+ compatible = "regulator-fixed";
+ regulator-name = "vph_pwr";
+ regulator-min-microvolt = <3700000>;
+ regulator-max-microvolt = <3700000>;
+ };
+
+ /*
+ * The arch_timer label is unused here, but is required by ABL: the
+ * Gunyah overlay it applies references it, the boot fails without it.
+ */
+ arch_timer: timer { };
+};
+
+&apps_rsc {
+ regulators-0 {
+ compatible = "qcom,pm7325-rpmh-regulators";
+ qcom,pmic-id = "b";
+
+ vdd-s1-supply = <&vph_pwr>;
+ vdd-s2-supply = <&vph_pwr>;
+ vdd-s7-supply = <&vph_pwr>;
+ vdd-s8-supply = <&vph_pwr>;
+
+ vdd-l1-l4-l12-l15-supply = <&vreg_s7b_0p972>;
+ vdd-l2-l7-supply = <&vreg_bob>;
+ vdd-l6-l9-l10-supply = <&vreg_s8b_1p272>;
+ vdd-l8-supply = <&vreg_s7b_0p972>;
+ vdd-l11-l17-l18-l19-supply = <&vreg_s1b_1p872>;
+ vdd-l13-supply = <&vreg_s7b_0p972>;
+ vdd-l14-l16-supply = <&vreg_s8b_1p272>;
+
+ /*
+ * S1b, S7b and S8b feed LDOs: below the stock levels the LDOs
+ * have no headroom left and the touchscreen loses touches.
+ */
+ vreg_s1b_1p872: smps1 {
+ regulator-name = "vreg_s1b_1p872";
+ regulator-min-microvolt = <1872000>;
+ regulator-max-microvolt = <2040000>;
+ };
+
+ vreg_s7b_0p972: smps7 {
+ regulator-name = "vreg_s7b_0p972";
+ regulator-min-microvolt = <972000>;
+ regulator-max-microvolt = <1120000>;
+ };
+
+ vreg_s8b_1p272: smps8 {
+ regulator-name = "vreg_s8b_1p272";
+ regulator-min-microvolt = <1272000>;
+ regulator-max-microvolt = <1500000>;
+ };
+
+ vreg_l1b_0p912: ldo1 {
+ regulator-name = "vreg_l1b_0p912";
+ regulator-min-microvolt = <825000>;
+ regulator-max-microvolt = <925000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l2b_3p072: ldo2 {
+ regulator-name = "vreg_l2b_3p072";
+ regulator-min-microvolt = <2700000>;
+ regulator-max-microvolt = <3544000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l3b_0p504: ldo3 {
+ regulator-name = "vreg_l3b_0p504";
+ regulator-min-microvolt = <312000>;
+ regulator-max-microvolt = <910000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l6b_1p2: ldo6 {
+ regulator-name = "vreg_l6b_1p2";
+ regulator-min-microvolt = <1200000>;
+ regulator-max-microvolt = <1260000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ regulator-allow-set-load;
+ regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
+ RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l7b_2p952: ldo7 {
+ regulator-name = "vreg_l7b_2p952";
+ regulator-min-microvolt = <2952000>;
+ regulator-max-microvolt = <2952000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ regulator-allow-set-load;
+ regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
+ RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l8b_0p904: ldo8 {
+ regulator-name = "vreg_l8b_0p904";
+ regulator-min-microvolt = <870000>;
+ regulator-max-microvolt = <970000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l9b_1p2: ldo9 {
+ regulator-name = "vreg_l9b_1p2";
+ regulator-min-microvolt = <1200000>;
+ regulator-max-microvolt = <1304000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ regulator-allow-set-load;
+ regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
+ RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l11b_1p504: ldo11 {
+ regulator-name = "vreg_l11b_1p504";
+ regulator-min-microvolt = <1504000>;
+ regulator-max-microvolt = <2000000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l12b_0p751: ldo12 {
+ regulator-name = "vreg_l12b_0p751";
+ regulator-min-microvolt = <751000>;
+ regulator-max-microvolt = <824000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l13b_0p53: ldo13 {
+ regulator-name = "vreg_l13b_0p53";
+ regulator-min-microvolt = <530000>;
+ regulator-max-microvolt = <824000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l14b_1p08: ldo14 {
+ regulator-name = "vreg_l14b_1p08";
+ regulator-min-microvolt = <1080000>;
+ regulator-max-microvolt = <1304000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l15b_0p765: ldo15 {
+ regulator-name = "vreg_l15b_0p765";
+ regulator-min-microvolt = <765000>;
+ regulator-max-microvolt = <1020000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l16b_1p1: ldo16 {
+ regulator-name = "vreg_l16b_1p1";
+ regulator-min-microvolt = <1100000>;
+ regulator-max-microvolt = <1300000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l17b_1p7: ldo17 {
+ regulator-name = "vreg_l17b_1p7";
+ regulator-min-microvolt = <1700000>;
+ regulator-max-microvolt = <1900000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l18b_1p8: ldo18 {
+ regulator-name = "vreg_l18b_1p8";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <2000000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l19b_1p8: ldo19 {
+ regulator-name = "vreg_l19b_1p8";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <2000000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+ };
+
+ regulators-1 {
+ compatible = "qcom,pm8350c-rpmh-regulators";
+ qcom,pmic-id = "c";
+
+ vdd-s1-supply = <&vph_pwr>;
+ vdd-s2-supply = <&vph_pwr>;
+ vdd-s5-supply = <&vph_pwr>;
+ vdd-s7-supply = <&vph_pwr>;
+ vdd-s9-supply = <&vph_pwr>;
+ vdd-s10-supply = <&vph_pwr>;
+
+ vdd-l1-l12-supply = <&vreg_s1b_1p872>;
+ vdd-l2-l8-supply = <&vreg_s1b_1p872>;
+ vdd-l3-l4-l5-l7-l13-supply = <&vreg_bob>;
+ vdd-l6-l9-l11-supply = <&vreg_bob>;
+ vdd-l10-supply = <&vreg_s7b_0p972>;
+ vdd-bob-supply = <&vph_pwr>;
+
+ vreg_s1c_2p19: smps1 {
+ regulator-name = "vreg_s1c_2p19";
+ regulator-min-microvolt = <2190000>;
+ regulator-max-microvolt = <2210000>;
+ };
+
+ vreg_s9c_1p084: smps9 {
+ regulator-name = "vreg_s9c_1p084";
+ regulator-min-microvolt = <1010000>;
+ regulator-max-microvolt = <1170000>;
+ };
+
+ vreg_l1c_1p8: ldo1 {
+ regulator-name = "vreg_l1c_1p8";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1980000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l2c_1p62: ldo2 {
+ regulator-name = "vreg_l2c_1p62";
+ regulator-min-microvolt = <1620000>;
+ regulator-max-microvolt = <1980000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l3c_2p8: ldo3 {
+ regulator-name = "vreg_l3c_2p8";
+ regulator-min-microvolt = <2800000>;
+ regulator-max-microvolt = <3540000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l4c_1p62: ldo4 {
+ regulator-name = "vreg_l4c_1p62";
+ regulator-min-microvolt = <1620000>;
+ regulator-max-microvolt = <3300000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l5c_1p62: ldo5 {
+ regulator-name = "vreg_l5c_1p62";
+ regulator-min-microvolt = <1620000>;
+ regulator-max-microvolt = <3300000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l6c_2p96: ldo6 {
+ regulator-name = "vreg_l6c_2p96";
+ regulator-min-microvolt = <1650000>;
+ regulator-max-microvolt = <3544000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l7c_3p0: ldo7 {
+ regulator-name = "vreg_l7c_3p0";
+ regulator-min-microvolt = <3000000>;
+ regulator-max-microvolt = <3544000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l8c_1p62: ldo8 {
+ regulator-name = "vreg_l8c_1p62";
+ regulator-min-microvolt = <1620000>;
+ regulator-max-microvolt = <2000000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l9c_2p96: ldo9 {
+ regulator-name = "vreg_l9c_2p96";
+ regulator-min-microvolt = <2700000>;
+ regulator-max-microvolt = <3544000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l10c_0p88: ldo10 {
+ regulator-name = "vreg_l10c_0p88";
+ regulator-min-microvolt = <880000>;
+ regulator-max-microvolt = <1050000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ regulator-allow-set-load;
+ regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
+ RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l11c_2p8: ldo11 {
+ regulator-name = "vreg_l11c_2p8";
+ regulator-min-microvolt = <2800000>;
+ regulator-max-microvolt = <3544000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ /* Sensors behind the ADSP (accelerometer, light, proximity) */
+ vreg_l12c_1p65: ldo12 {
+ regulator-name = "vreg_l12c_1p65";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <2000000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ regulator-always-on;
+ };
+
+ vreg_l13c_2p7: ldo13 {
+ regulator-name = "vreg_l13c_2p7";
+ regulator-min-microvolt = <2700000>;
+ regulator-max-microvolt = <3544000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_bob: bob {
+ regulator-name = "vreg_bob";
+ regulator-min-microvolt = <3008000>;
+ regulator-max-microvolt = <3960000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+ };
+
+ regulators-2 {
+ compatible = "qcom,pmr735a-rpmh-regulators";
+ qcom,pmic-id = "e";
+
+ vreg_l2e_1p2: ldo2 {
+ regulator-name = "vreg_l2e_1p2";
+ regulator-min-microvolt = <1200000>;
+ regulator-max-microvolt = <1200000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l3e_0p912: ldo3 {
+ regulator-name = "vreg_l3e_0p912";
+ regulator-min-microvolt = <912000>;
+ regulator-max-microvolt = <1020000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l4e_1p776: ldo4 {
+ regulator-name = "vreg_l4e_1p776";
+ regulator-min-microvolt = <1776000>;
+ regulator-max-microvolt = <1890000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l5e_0p8: ldo5 {
+ regulator-name = "vreg_l5e_0p8";
+ regulator-min-microvolt = <800000>;
+ regulator-max-microvolt = <800000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l6e_0p48: ldo6 {
+ regulator-name = "vreg_l6e_0p48";
+ regulator-min-microvolt = <480000>;
+ regulator-max-microvolt = <904000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+ };
+};
+
+&gcc {
+ protected-clocks = <GCC_CFG_NOC_LPASS_CLK>,
+ <GCC_MSS_CFG_AHB_CLK>,
+ <GCC_MSS_OFFLINE_AXI_CLK>,
+ <GCC_MSS_Q6SS_BOOT_CLK_SRC>,
+ <GCC_MSS_Q6_MEMNOC_AXI_CLK>,
+ <GCC_MSS_SNOC_AXI_CLK>,
+ <GCC_QSPI_CNOC_PERIPH_AHB_CLK>,
+ <GCC_QSPI_CORE_CLK>,
+ <GCC_QSPI_CORE_CLK_SRC>,
+ <GCC_SEC_CTRL_CLK_SRC>,
+ <GCC_WPSS_AHB_BDG_MST_CLK>,
+ <GCC_WPSS_AHB_CLK>,
+ <GCC_WPSS_RSCP_CLK>;
+};
+
+&gpi_dma1 {
+ status = "okay";
+};
+
+&gpu {
+ status = "okay";
+};
+
+&gpu_zap_shader {
+ firmware-name = "qcom/sm7325/samsung/m52xq/a660_zap.mbn";
+};
+
+&i2c9 {
+ clock-frequency = <100000>;
+
+ status = "okay";
+
+ nfc@27 {
+ compatible = "samsung,s3fwrn5-i2c";
+ reg = <0x27>;
+
+ interrupts-extended = <&tlmm 41 IRQ_TYPE_EDGE_RISING>;
+
+ en-gpios = <&tlmm 38 GPIO_ACTIVE_HIGH>;
+ wake-gpios = <&tlmm 40 GPIO_ACTIVE_HIGH>;
+
+ pvdd-supply = <&vreg_nfc_pvdd>;
+ };
+};
+
+&ipa {
+ /* the IPA firmware goes to the Samsung IPA GSI PIL region */
+ memory-region = <&ipa_gsi_mem>;
+ firmware-name = "qcom/sm7325/samsung/m52xq/ipa_fws.mbn";
+
+ status = "okay";
+};
+
+&lpass_audiocc {
+ compatible = "qcom,qcm6490-lpassaudiocc";
+ /delete-property/ power-domains;
+};
+
+&pm7325_gpios {
+ volume_up_default: volume-up-default-state {
+ pins = "gpio6";
+ function = PMIC_GPIO_FUNC_NORMAL;
+ power-source = <1>;
+ bias-pull-up;
+ input-enable;
+ };
+};
+
+&pmk8350_vadc {
+ /* battery NTC */
+ channel@14b {
+ reg = <PM7325_ADC7_GPIO2_100K_PU>;
+ qcom,ratiometric;
+ qcom,hw-settle-time = <200>;
+ qcom,pre-scaling = <1 1>;
+ label = "pm7325_bat_therm";
+ };
+};
+
+&pon_pwrkey {
+ status = "okay";
+};
+
+&pon_resin {
+ linux,code = <KEY_VOLUMEDOWN>;
+
+ status = "okay";
+};
+
+&qupv3_id_0 {
+ status = "okay";
+};
+
+&qupv3_id_1 {
+ status = "okay";
+};
+
+&qup_uart7_cts {
+ drive-strength = <2>;
+ bias-disable;
+};
+
+&qup_uart7_rts {
+ drive-strength = <2>;
+ bias-pull-down;
+};
+
+&qup_uart7_rx {
+ drive-strength = <2>;
+ bias-disable;
+};
+
+&qup_uart7_tx {
+ drive-strength = <2>;
+ bias-pull-up;
+};
+
+&remoteproc_adsp {
+ firmware-name = "qcom/sm7325/samsung/m52xq/adsp.mbn";
+
+ status = "okay";
+};
+
+&remoteproc_mpss {
+ firmware-name = "qcom/sm7325/samsung/m52xq/modem.mbn";
+
+ status = "okay";
+};
+
+&remoteproc_wpss {
+ firmware-name = "qcom/sm7325/samsung/m52xq/wpss.mbn";
+
+ status = "okay";
+};
+
+&sdc2_clk {
+ drive-strength = <16>;
+ bias-disable;
+};
+
+&sdc2_cmd {
+ drive-strength = <10>;
+ bias-pull-up;
+};
+
+&sdc2_data {
+ drive-strength = <10>;
+ bias-pull-up;
+};
+
+&sdhc_2 {
+ cd-gpios = <&tlmm 91 GPIO_ACTIVE_LOW>;
+
+ pinctrl-0 = <&sdc2_clk>, <&sdc2_cmd>, <&sdc2_data>, <&sd_cd_default>;
+ pinctrl-1 = <&sdc2_clk_sleep>, <&sdc2_cmd_sleep>, <&sdc2_data_sleep>, <&sd_cd_default>;
+
+ vmmc-supply = <&vreg_l9c_2p96>;
+ vqmmc-supply = <&vreg_l6c_2p96>;
+
+ status = "okay";
+};
+
+&tlmm {
+ gpio-reserved-ranges = <56 4>; /* SPI (fingerprint reader) */
+
+ bluetooth_enable_default: bluetooth-enable-default-state {
+ pins = "gpio85";
+ function = "gpio";
+ drive-strength = <2>;
+ output-low;
+ bias-pull-down;
+ };
+
+ motor_en_default: motor-en-default-state {
+ pins = "gpio62";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-disable;
+ };
+
+ qup_uart7_sleep_cts: qup-uart7-sleep-cts-state {
+ pins = "gpio28";
+ function = "gpio";
+ /*
+ * Configure a bias-bus-hold on CTS to lower power
+ * usage when Bluetooth is turned off. Bus hold will
+ * maintain a low power state regardless of whether
+ * the Bluetooth module drives the pin in either
+ * direction or leaves the pin fully unpowered.
+ */
+ bias-bus-hold;
+ };
+
+ qup_uart7_sleep_rts: qup-uart7-sleep-rts-state {
+ pins = "gpio29";
+ function = "gpio";
+ /*
+ * Configure pull-down on RTS. As RTS is active low
+ * signal, pull it low to indicate the BT SoC that it
+ * can wakeup the system anytime from suspend state by
+ * pulling RX low (by sending wakeup bytes).
+ */
+ bias-pull-down;
+ };
+
+ qup_uart7_sleep_tx: qup-uart7-sleep-tx-state {
+ pins = "gpio30";
+ function = "gpio";
+ /*
+ * Configure pull-up on TX when it isn't actively driven
+ * to prevent BT SoC from receiving garbage during sleep.
+ */
+ bias-pull-up;
+ };
+
+ qup_uart7_sleep_rx: qup-uart7-sleep-rx-state {
+ pins = "gpio31";
+ function = "gpio";
+ /*
+ * Configure a pull-up on RX. This is needed to avoid
+ * garbage data when the TX pin of the Bluetooth module
+ * is floating which may cause spurious wakeups.
+ */
+ bias-pull-up;
+ };
+
+ sd_cd_default: sd-cd-default-state {
+ pins = "gpio91";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-disable;
+ };
+
+ sw_ctrl_default: sw-ctrl-default-state {
+ pins = "gpio86";
+ function = "gpio";
+ bias-pull-down;
+ };
+};
+
+&uart7 {
+ /delete-property/ interrupts;
+ interrupts-extended = <&intc GIC_SPI 608 IRQ_TYPE_LEVEL_HIGH>,
+ <&tlmm 31 IRQ_TYPE_EDGE_FALLING>;
+
+ pinctrl-1 = <&qup_uart7_sleep_cts>, <&qup_uart7_sleep_rts>,
+ <&qup_uart7_sleep_tx>, <&qup_uart7_sleep_rx>;
+ pinctrl-names = "default", "sleep";
+
+ status = "okay";
+
+ bluetooth: bluetooth {
+ compatible = "qcom,wcn6750-bt";
+
+ pinctrl-0 = <&bluetooth_enable_default>, <&sw_ctrl_default>;
+ pinctrl-names = "default";
+
+ enable-gpios = <&tlmm 85 GPIO_ACTIVE_HIGH>;
+ swctrl-gpios = <&tlmm 86 GPIO_ACTIVE_HIGH>;
+
+ vddio-supply = <&vreg_l19b_1p8>;
+ vddaon-supply = <&vreg_s7b_0p972>;
+ vddbtcxmx-supply = <&vreg_s7b_0p972>;
+ vddrfacmn-supply = <&vreg_s7b_0p972>;
+ vddrfa0p8-supply = <&vreg_s7b_0p972>;
+ vddrfa1p7-supply = <&vreg_s1b_1p872>;
+ vddrfa1p2-supply = <&vreg_s8b_1p272>;
+ vddrfa2p2-supply = <&vreg_s1c_2p19>;
+ vddasd-supply = <&vreg_l11c_2p8>;
+
+ max-speed = <3200000>;
+ };
+};
+
+&ufs_mem_hc {
+ reset-gpios = <&tlmm 175 GPIO_ACTIVE_LOW>;
+
+ vcc-supply = <&vreg_l7b_2p952>;
+ vcc-max-microamp = <800000>;
+ vccq-supply = <&vreg_l9b_1p2>;
+ vccq-max-microamp = <900000>;
+
+ status = "okay";
+};
+
+&ufs_mem_phy {
+ vdda-phy-supply = <&vreg_l10c_0p88>;
+ vdda-pll-supply = <&vreg_l6b_1p2>;
+
+ status = "okay";
+};
+
+&usb_1 {
+ dr_mode = "peripheral";
+ maximum-speed = "high-speed";
+ phys = <&usb_1_hsphy>;
+ phy-names = "usb2-phy";
+ qcom,select-utmi-as-pipe-clk;
+
+ status = "okay";
+};
+
+&usb_1_hsphy {
+ vdda-pll-supply = <&vreg_l10c_0p88>;
+ vdda18-supply = <&vreg_l1c_1p8>;
+ vdda33-supply = <&vreg_l2b_3p072>;
+
+ status = "okay";
+};
+
+&venus {
+ firmware-name = "qcom/sm7325/samsung/m52xq/venus.mbn";
+
+ status = "okay";
+};
+
+&wifi {
+ status = "okay";
+};
diff --git a/drivers/nfc/s3fwrn5/i2c.c b/drivers/nfc/s3fwrn5/i2c.c
index 4ba76261171185..eaa9a1f7553387 100644
--- a/drivers/nfc/s3fwrn5/i2c.c
+++ b/drivers/nfc/s3fwrn5/i2c.c
@@ -11,6 +11,7 @@
#include <linux/gpio/consumer.h>
#include <linux/delay.h>
#include <linux/module.h>
+#include <linux/regulator/consumer.h>
#include <net/nfc/nfc.h>
@@ -160,6 +161,12 @@ static int s3fwrn5_i2c_probe(struct i2c_client *client)
phy->i2c_dev = client;
i2c_set_clientdata(client, phy);
+ /* The chip has to be powered before EN is driven */
+ ret = devm_regulator_get_enable_optional(&client->dev, "pvdd");
+ if (ret && ret != -ENODEV)
+ return dev_err_probe(&client->dev, ret,
+ "failed to enable pvdd supply\n");
+
phy->common.gpio_en = devm_gpiod_get(&client->dev, "en", GPIOD_OUT_HIGH);
if (IS_ERR(phy->common.gpio_en))
return PTR_ERR(phy->common.gpio_en);
|
| 3/2 | 2026/11/15 08:17 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 15015 output: 38 thoughts: 922 Thoughts: **Analyzing the Patch for Reachability** Okay, let's break this down. First, I see a patch touching several files, so let's analyze each component. The git diff reveals additions in the device tree bindings, a new device tree, and a driver change within `drivers/nfc/s3fwrn5/i2c.c`. Specifically, a "pvdd-supply" property is added and the driver now attempts to enable a regulator named "pvdd". The core of my concern here is the architecture mismatch: the new device tree is for the Samsung Galaxy M52 5G (SM7325), and it looks like it's targeting arm64, but the build environment notes it's on amd64. That's a huge red flag. My primary thought now is, is this code even *reachable* in a typical syzkaller environment? The syzkaller guidelines are clear: reachability is paramount. I have to determine if this NFC driver for the Samsung Galaxy M52 is structurally reachable on the target system (QEMU/GCE, software-emulated devices). The driver itself is an I2C client driver, and I need to establish if syzkaller can interact with I2C devices on amd64. Can an I2C device be instantiated in QEMU? Specifically, can syzkaller interact with I2C devices? Does it have pseudo-syscalls, or does QEMU even support I2C interactions? Are there any sysfs or i2c-dev hooks that syzkaller might utilize? Can I even create an I2C device in `/dev/i2c-*` or through sysfs? A quick search tells me that `/sys/bus/i2c/devices/i2c-*/new_device` allows a root user to instantiate an I2C client driver. However, the crucial question is, does syzkaller exploit this, and does syzkaller run as root? Does it have some concept of an I2C device? I need to check if syzkaller supports I2C, and if these drivers are treated as reachable or unreachable. Ultimately, I need to understand if the syzkaller fuzzing environment can trigger the `s3fwrn5` driver's `i2c_probe` function. I will check syzkaller to be sure. |
| 4/2 | 2026/11/15 08:17 | tool | grepper |
0mArgs:{
"Expression": "s3fwrn5",
"PathPrefixes": [
"drivers/nfc/s3fwrn5"
]
}Results: {
"Output": "\nFull output is too long, showing 200 out of 697 lines.\nUse more precise expression or PathPrefixes if possible.\n\nNumber of matching lines per file (12 files in total):\ndrivers/nfc/s3fwrn5/Kconfig:1\ndrivers/nfc/s3fwrn5/Makefile:4\ndrivers/nfc/s3fwrn5/core.c:57\ndrivers/nfc/s3fwrn5/firmware.c:67\ndrivers/nfc/s3fwrn5/firmware.h:14\ndrivers/nfc/s3fwrn5/i2c.c:39\ndrivers/nfc/s3fwrn5/nci.c:8\ndrivers/nfc/s3fwrn5/nci.h:3\ndrivers/nfc/s3fwrn5/phy_common.c:10\ndrivers/nfc/s3fwrn5/phy_common.h:6\ndrivers/nfc/s3fwrn5/s3fwrn5.h:17\ndrivers/nfc/s3fwrn5/uart.c:7\n\ndrivers/nfc/s3fwrn5/Kconfig=10=config NFC_S3FWRN5_I2C\n--\ndrivers/nfc/s3fwrn5/Kconfig-19-\t To compile this driver as a module, choose m here. The module will\ndrivers/nfc/s3fwrn5/Kconfig:20:\t be called s3fwrn5_i2c.ko.\ndrivers/nfc/s3fwrn5/Kconfig-21-\t Say N if unsure.\n--\ndrivers/nfc/s3fwrn5/Makefile-5-\ndrivers/nfc/s3fwrn5/Makefile:6:s3fwrn5-objs = core.o firmware.o nci.o phy_common.o\ndrivers/nfc/s3fwrn5/Makefile:7:s3fwrn5_i2c-objs = i2c.o\ndrivers/nfc/s3fwrn5/Makefile-8-s3fwrn82_uart-objs = uart.o\ndrivers/nfc/s3fwrn5/Makefile-9-\ndrivers/nfc/s3fwrn5/Makefile:10:obj-$(CONFIG_NFC_S3FWRN5) += s3fwrn5.o\ndrivers/nfc/s3fwrn5/Makefile:11:obj-$(CONFIG_NFC_S3FWRN5_I2C) += s3fwrn5_i2c.o\ndrivers/nfc/s3fwrn5/Makefile-12-obj-$(CONFIG_NFC_S3FWRN82_UART) += s3fwrn82_uart.o\n--\ndrivers/nfc/s3fwrn5/core.c-11-\ndrivers/nfc/s3fwrn5/core.c:12:#include \"s3fwrn5.h\"\ndrivers/nfc/s3fwrn5/core.c-13-#include \"firmware.h\"\n--\ndrivers/nfc/s3fwrn5/core.c-22-\ndrivers/nfc/s3fwrn5/core.c:23:static int s3fwrn5_firmware_init(struct s3fwrn5_info *info)\ndrivers/nfc/s3fwrn5/core.c-24-{\ndrivers/nfc/s3fwrn5/core.c:25:\tstruct s3fwrn5_fw_info *fw_info = \u0026info-\u003efw_info;\ndrivers/nfc/s3fwrn5/core.c-26-\tint ret;\ndrivers/nfc/s3fwrn5/core.c-27-\ndrivers/nfc/s3fwrn5/core.c:28:\ts3fwrn5_fw_init(fw_info, \"sec_s3fwrn5_firmware.bin\");\ndrivers/nfc/s3fwrn5/core.c-29-\ndrivers/nfc/s3fwrn5/core.c-30-\t/* Get firmware data */\ndrivers/nfc/s3fwrn5/core.c:31:\tret = s3fwrn5_fw_request_firmware(fw_info);\ndrivers/nfc/s3fwrn5/core.c-32-\tif (ret \u003c 0)\n--\ndrivers/nfc/s3fwrn5/core.c-37-\ndrivers/nfc/s3fwrn5/core.c:38:static int s3fwrn5_firmware_update(struct s3fwrn5_info *info)\ndrivers/nfc/s3fwrn5/core.c-39-{\n--\ndrivers/nfc/s3fwrn5/core.c-44-\ndrivers/nfc/s3fwrn5/core.c:45:\ts3fwrn5_set_wake(info, false);\ndrivers/nfc/s3fwrn5/core.c:46:\ts3fwrn5_set_mode(info, S3FWRN5_MODE_FW);\ndrivers/nfc/s3fwrn5/core.c-47-\ndrivers/nfc/s3fwrn5/core.c:48:\tret = s3fwrn5_fw_setup(\u0026info-\u003efw_info);\ndrivers/nfc/s3fwrn5/core.c-49-\tif (ret \u003c 0)\n--\ndrivers/nfc/s3fwrn5/core.c-51-\ndrivers/nfc/s3fwrn5/core.c:52:\tneed_update = s3fwrn5_fw_check_version(\u0026info-\u003efw_info,\ndrivers/nfc/s3fwrn5/core.c-53-\t\tinfo-\u003endev-\u003emanufact_specific_info);\n--\ndrivers/nfc/s3fwrn5/core.c-58-\ndrivers/nfc/s3fwrn5/core.c:59:\tret = s3fwrn5_fw_download(\u0026info-\u003efw_info);\ndrivers/nfc/s3fwrn5/core.c-60-\tif (ret \u003c 0)\n--\ndrivers/nfc/s3fwrn5/core.c-64-\ndrivers/nfc/s3fwrn5/core.c:65:\ts3fwrn5_set_mode(info, S3FWRN5_MODE_NCI);\ndrivers/nfc/s3fwrn5/core.c-66-\ndrivers/nfc/s3fwrn5/core.c:67:\ts3fwrn5_set_wake(info, true);\ndrivers/nfc/s3fwrn5/core.c:68:\tret = s3fwrn5_nci_rf_configure(info, \"sec_s3fwrn5_rfreg.bin\");\ndrivers/nfc/s3fwrn5/core.c:69:\ts3fwrn5_set_wake(info, false);\ndrivers/nfc/s3fwrn5/core.c-70-\ndrivers/nfc/s3fwrn5/core.c-71-out:\ndrivers/nfc/s3fwrn5/core.c:72:\ts3fwrn5_set_mode(info, S3FWRN5_MODE_COLD);\ndrivers/nfc/s3fwrn5/core.c:73:\ts3fwrn5_fw_cleanup(\u0026info-\u003efw_info);\ndrivers/nfc/s3fwrn5/core.c-74-\treturn ret;\n--\ndrivers/nfc/s3fwrn5/core.c-76-\ndrivers/nfc/s3fwrn5/core.c:77:static int s3fwrn5_nci_open(struct nci_dev *ndev)\ndrivers/nfc/s3fwrn5/core.c-78-{\ndrivers/nfc/s3fwrn5/core.c:79:\tstruct s3fwrn5_info *info = nci_get_drvdata(ndev);\ndrivers/nfc/s3fwrn5/core.c-80-\ndrivers/nfc/s3fwrn5/core.c:81:\tif (s3fwrn5_get_mode(info) != S3FWRN5_MODE_COLD)\ndrivers/nfc/s3fwrn5/core.c-82-\t\treturn -EBUSY;\ndrivers/nfc/s3fwrn5/core.c-83-\ndrivers/nfc/s3fwrn5/core.c:84:\ts3fwrn5_set_mode(info, S3FWRN5_MODE_NCI);\ndrivers/nfc/s3fwrn5/core.c:85:\ts3fwrn5_set_wake(info, true);\ndrivers/nfc/s3fwrn5/core.c-86-\n--\ndrivers/nfc/s3fwrn5/core.c-89-\ndrivers/nfc/s3fwrn5/core.c:90:static int s3fwrn5_nci_close(struct nci_dev *ndev)\ndrivers/nfc/s3fwrn5/core.c-91-{\ndrivers/nfc/s3fwrn5/core.c:92:\tstruct s3fwrn5_info *info = nci_get_drvdata(ndev);\ndrivers/nfc/s3fwrn5/core.c-93-\ndrivers/nfc/s3fwrn5/core.c:94:\ts3fwrn5_set_wake(info, false);\ndrivers/nfc/s3fwrn5/core.c:95:\ts3fwrn5_set_mode(info, S3FWRN5_MODE_COLD);\ndrivers/nfc/s3fwrn5/core.c-96-\n--\ndrivers/nfc/s3fwrn5/core.c-99-\ndrivers/nfc/s3fwrn5/core.c:100:static int s3fwrn5_nci_send(struct nci_dev *ndev, struct sk_buff *skb)\ndrivers/nfc/s3fwrn5/core.c-101-{\ndrivers/nfc/s3fwrn5/core.c:102:\tstruct s3fwrn5_info *info = nci_get_drvdata(ndev);\ndrivers/nfc/s3fwrn5/core.c-103-\tint ret;\n--\ndrivers/nfc/s3fwrn5/core.c-106-\ndrivers/nfc/s3fwrn5/core.c:107:\tif (s3fwrn5_get_mode(info) != S3FWRN5_MODE_NCI) {\ndrivers/nfc/s3fwrn5/core.c-108-\t\tkfree_skb(skb);\n--\ndrivers/nfc/s3fwrn5/core.c-112-\ndrivers/nfc/s3fwrn5/core.c:113:\tret = s3fwrn5_write(info, skb);\ndrivers/nfc/s3fwrn5/core.c-114-\tif (ret \u003c 0) {\n--\ndrivers/nfc/s3fwrn5/core.c-124-\ndrivers/nfc/s3fwrn5/core.c:125:static int s3fwrn5_nci_post_setup(struct nci_dev *ndev)\ndrivers/nfc/s3fwrn5/core.c-126-{\ndrivers/nfc/s3fwrn5/core.c:127:\tstruct s3fwrn5_info *info = nci_get_drvdata(ndev);\ndrivers/nfc/s3fwrn5/core.c-128-\tint ret;\ndrivers/nfc/s3fwrn5/core.c-129-\ndrivers/nfc/s3fwrn5/core.c:130:\tif (s3fwrn5_firmware_init(info)) {\ndrivers/nfc/s3fwrn5/core.c-131-\t\t//skip bootloader mode\n--\ndrivers/nfc/s3fwrn5/core.c-134-\ndrivers/nfc/s3fwrn5/core.c:135:\tret = s3fwrn5_firmware_update(info);\ndrivers/nfc/s3fwrn5/core.c-136-\tif (ret \u003c 0)\n--\ndrivers/nfc/s3fwrn5/core.c-140-\ndrivers/nfc/s3fwrn5/core.c:141:\ts3fwrn5_set_mode(info, S3FWRN5_MODE_NCI);\ndrivers/nfc/s3fwrn5/core.c:142:\ts3fwrn5_set_wake(info, true);\ndrivers/nfc/s3fwrn5/core.c-143-\n--\ndrivers/nfc/s3fwrn5/core.c-150-\ndrivers/nfc/s3fwrn5/core.c:151:static const struct nci_ops s3fwrn5_nci_ops = {\ndrivers/nfc/s3fwrn5/core.c:152:\t.open = s3fwrn5_nci_open,\ndrivers/nfc/s3fwrn5/core.c:153:\t.close = s3fwrn5_nci_close,\ndrivers/nfc/s3fwrn5/core.c:154:\t.send = s3fwrn5_nci_send,\ndrivers/nfc/s3fwrn5/core.c:155:\t.post_setup = s3fwrn5_nci_post_setup,\ndrivers/nfc/s3fwrn5/core.c:156:\t.prop_ops = s3fwrn5_nci_prop_ops,\ndrivers/nfc/s3fwrn5/core.c:157:\t.n_prop_ops = ARRAY_SIZE(s3fwrn5_nci_prop_ops),\ndrivers/nfc/s3fwrn5/core.c-158-};\ndrivers/nfc/s3fwrn5/core.c-159-\ndrivers/nfc/s3fwrn5/core.c:160:int s3fwrn5_probe(struct nci_dev **ndev, void *phy_id, struct device *pdev,\ndrivers/nfc/s3fwrn5/core.c:161:\tconst struct s3fwrn5_phy_ops *phy_ops)\ndrivers/nfc/s3fwrn5/core.c-162-{\ndrivers/nfc/s3fwrn5/core.c:163:\tstruct s3fwrn5_info *info;\ndrivers/nfc/s3fwrn5/core.c-164-\tint ret;\n--\ndrivers/nfc/s3fwrn5/core.c-174-\ndrivers/nfc/s3fwrn5/core.c:175:\ts3fwrn5_set_mode(info, S3FWRN5_MODE_COLD);\ndrivers/nfc/s3fwrn5/core.c-176-\ndrivers/nfc/s3fwrn5/core.c:177:\tinfo-\u003endev = nci_allocate_device(\u0026s3fwrn5_nci_ops,\ndrivers/nfc/s3fwrn5/core.c-178-\t\tS3FWRN5_NFC_PROTOCOLS, 0, 0);\n--\ndrivers/nfc/s3fwrn5/core.c-196-}\ndrivers/nfc/s3fwrn5/core.c:197:EXPORT_SYMBOL(s3fwrn5_probe);\ndrivers/nfc/s3fwrn5/core.c-198-\ndrivers/nfc/s3fwrn5/core.c:199:void s3fwrn5_remove(struct nci_dev *ndev)\ndrivers/nfc/s3fwrn5/core.c-200-{\ndrivers/nfc/s3fwrn5/core.c:201:\tstruct s3fwrn5_info *info = nci_get_drvdata(ndev);\ndrivers/nfc/s3fwrn5/core.c-202-\ndrivers/nfc/s3fwrn5/core.c:203:\ts3fwrn5_set_mode(info, S3FWRN5_MODE_COLD);\ndrivers/nfc/s3fwrn5/core.c-204-\n--\ndrivers/nfc/s3fwrn5/core.c-207-}\ndrivers/nfc/s3fwrn5/core.c:208:EXPORT_SYMBOL(s3fwrn5_remove);\ndrivers/nfc/s3fwrn5/core.c-209-\ndrivers/nfc/s3fwrn5/core.c:210:int s3fwrn5_recv_frame(struct nci_dev *ndev, struct sk_buff *skb,\ndrivers/nfc/s3fwrn5/core.c:211:\tenum s3fwrn5_mode mode)\ndrivers/nfc/s3fwrn5/core.c-212-{\n--\ndrivers/nfc/s3fwrn5/core.c-216-\tcase S3FWRN5_MODE_FW:\ndrivers/nfc/s3fwrn5/core.c:217:\t\treturn s3fwrn5_fw_recv_frame(ndev, skb);\ndrivers/nfc/s3fwrn5/core.c-218-\tdefault:\n--\ndrivers/nfc/s3fwrn5/core.c-222-}\ndrivers/nfc/s3fwrn5/core.c:223:EXPORT_SYMBOL(s3fwrn5_recv_frame);\ndrivers/nfc/s3fwrn5/core.c-224-\n--\ndrivers/nfc/s3fwrn5/firmware.c-12-\ndrivers/nfc/s3fwrn5/firmware.c:13:#include \"s3fwrn5.h\"\ndrivers/nfc/s3fwrn5/firmware.c-14-#include \"firmware.h\"\ndrivers/nfc/s3fwrn5/firmware.c-15-\ndrivers/nfc/s3fwrn5/firmware.c:16:struct s3fwrn5_fw_version {\ndrivers/nfc/s3fwrn5/firmware.c-17-\t__u8 major;\n--\ndrivers/nfc/s3fwrn5/firmware.c-22-\ndrivers/nfc/s3fwrn5/firmware.c:23:static int s3fwrn5_fw_send_msg(struct s3fwrn5_fw_info *fw_info,\ndrivers/nfc/s3fwrn5/firmware.c-24-\tstruct sk_buff *msg, struct sk_buff **rsp)\ndrivers/nfc/s3fwrn5/firmware.c-25-{\ndrivers/nfc/s3fwrn5/firmware.c:26:\tstruct s3fwrn5_info *info =\ndrivers/nfc/s3fwrn5/firmware.c:27:\t\tcontainer_of(fw_info, struct s3fwrn5_info, fw_info);\ndrivers/nfc/s3fwrn5/firmware.c-28-\tlong ret;\n--\ndrivers/nfc/s3fwrn5/firmware.c-31-\ndrivers/nfc/s3fwrn5/firmware.c:32:\tret = s3fwrn5_write(info, msg);\ndrivers/nfc/s3fwrn5/firmware.c-33-\tif (ret \u003c 0)\n--\ndrivers/nfc/s3fwrn5/firmware.c-51-\ndrivers/nfc/s3fwrn5/firmware.c:52:static int s3fwrn5_fw_prep_msg(struct s3fwrn5_fw_info *fw_info,\ndrivers/nfc/s3fwrn5/firmware.c-53-\tstruct sk_buff **msg, u8 type, u8 code, const void *data, u16 len)\ndrivers/nfc/s3fwrn5/firmware.c-54-{\ndrivers/nfc/s3fwrn5/firmware.c:55:\tstruct s3fwrn5_fw_header hdr;\ndrivers/nfc/s3fwrn5/firmware.c-56-\tstruct sk_buff *skb;\n--\ndrivers/nfc/s3fwrn5/firmware.c-75-\ndrivers/nfc/s3fwrn5/firmware.c:76:static int s3fwrn5_fw_get_bootinfo(struct s3fwrn5_fw_info *fw_info,\ndrivers/nfc/s3fwrn5/firmware.c:77:\tstruct s3fwrn5_fw_cmd_get_bootinfo_rsp *bootinfo)\ndrivers/nfc/s3fwrn5/firmware.c-78-{\ndrivers/nfc/s3fwrn5/firmware.c-79-\tstruct sk_buff *msg, *rsp = NULL;\ndrivers/nfc/s3fwrn5/firmware.c:80:\tstruct s3fwrn5_fw_header *hdr;\ndrivers/nfc/s3fwrn5/firmware.c-81-\tint ret;\n--\ndrivers/nfc/s3fwrn5/firmware.c-84-\ndrivers/nfc/s3fwrn5/firmware.c:85:\tret = s3fwrn5_fw_prep_msg(fw_info, \u0026msg, S3FWRN5_FW_MSG_CMD,\ndrivers/nfc/s3fwrn5/firmware.c-86-\t\tS3FWRN5_FW_CMD_GET_BOOTINFO, NULL, 0);\n--\n\n"
} |
| 5/2 | 2026/11/15 08:17 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 22260 output: 44 thoughts: 25 Thoughts: Okay, here's my take on that request. I'll summarize those instructions as if they were my own thought process, assuming the user is familiar with this level of embedded systems code. **Diving Deep into drivers/nfc/s3fwrn5/i2c.c** Alright, let's get down to brass tacks. The goal is clear: I need to thoroughly understand the workings of `drivers/nfc/s3fwrn5/i2c.c`. This isn't just a casual glance; I need to know this file inside and out. I'm going to be looking at every line, every function, every macro – the whole enchilada. I'm especially interested in the I2C communication implementation for this specific NFC chip. I'll need to dissect how the driver interfaces with the S3FWRN5 over the I2C bus: the register access, the data transfers, error handling, everything. I'll need to fully grasp the intricacies of this implementation to confidently debug or modify any aspect of it. My goal is to completely internalize the I2C driver logic, so I'm prepared for any challenge that might arise related to the NFC interface. |
| 6/2 | 2026/11/15 08:17 | tool | read-file |
0mArgs:{
"File": "drivers/nfc/s3fwrn5/i2c.c",
"FirstLine": 1,
"LineCount": 100
}Results: {
"Contents": " 1:\t// SPDX-License-Identifier: GPL-2.0-or-later\n 2:\t/*\n 3:\t * I2C Link Layer for Samsung S3FWRN5 NCI based Driver\n 4:\t *\n 5:\t * Copyright (C) 2015 Samsung Electronics\n 6:\t * Robert Baldyga \u003cr.baldyga@samsung.com\u003e\n 7:\t */\n 8:\t\n 9:\t#include \u003clinux/clk.h\u003e\n 10:\t#include \u003clinux/i2c.h\u003e\n 11:\t#include \u003clinux/gpio/consumer.h\u003e\n 12:\t#include \u003clinux/delay.h\u003e\n 13:\t#include \u003clinux/module.h\u003e\n 14:\t#include \u003clinux/regulator/consumer.h\u003e\n 15:\t\n 16:\t#include \u003cnet/nfc/nfc.h\u003e\n 17:\t\n 18:\t#include \"phy_common.h\"\n 19:\t\n 20:\t#define S3FWRN5_I2C_DRIVER_NAME \"s3fwrn5_i2c\"\n 21:\t\n 22:\tstruct s3fwrn5_i2c_phy {\n 23:\t\tstruct phy_common common;\n 24:\t\tstruct i2c_client *i2c_dev;\n 25:\t\tstruct clk *clk;\n 26:\t\n 27:\t\tunsigned int irq_skip:1;\n 28:\t};\n 29:\t\n 30:\tstatic void s3fwrn5_i2c_set_mode(void *phy_id, enum s3fwrn5_mode mode)\n 31:\t{\n 32:\t\tstruct s3fwrn5_i2c_phy *phy = phy_id;\n 33:\t\n 34:\t\tmutex_lock(\u0026phy-\u003ecommon.mutex);\n 35:\t\n 36:\t\tif (s3fwrn5_phy_power_ctrl(\u0026phy-\u003ecommon, mode) == false)\n 37:\t\t\tgoto out;\n 38:\t\n 39:\t\tphy-\u003eirq_skip = true;\n 40:\t\n 41:\tout:\n 42:\t\tmutex_unlock(\u0026phy-\u003ecommon.mutex);\n 43:\t}\n 44:\t\n 45:\tstatic int s3fwrn5_i2c_write(void *phy_id, struct sk_buff *skb)\n 46:\t{\n 47:\t\tstruct s3fwrn5_i2c_phy *phy = phy_id;\n 48:\t\tint ret;\n 49:\t\n 50:\t\tmutex_lock(\u0026phy-\u003ecommon.mutex);\n 51:\t\n 52:\t\tphy-\u003eirq_skip = false;\n 53:\t\n 54:\t\tret = i2c_master_send(phy-\u003ei2c_dev, skb-\u003edata, skb-\u003elen);\n 55:\t\tif (ret == -EREMOTEIO) {\n 56:\t\t\t/* Retry, chip was in standby */\n 57:\t\t\tusleep_range(110000, 120000);\n 58:\t\t\tret = i2c_master_send(phy-\u003ei2c_dev, skb-\u003edata, skb-\u003elen);\n 59:\t\t}\n 60:\t\n 61:\t\tmutex_unlock(\u0026phy-\u003ecommon.mutex);\n 62:\t\n 63:\t\tif (ret \u003c 0)\n 64:\t\t\treturn ret;\n 65:\t\n 66:\t\tif (ret != skb-\u003elen)\n 67:\t\t\treturn -EREMOTEIO;\n 68:\t\n 69:\t\treturn 0;\n 70:\t}\n 71:\t\n 72:\tstatic const struct s3fwrn5_phy_ops i2c_phy_ops = {\n 73:\t\t.set_wake = s3fwrn5_phy_set_wake,\n 74:\t\t.set_mode = s3fwrn5_i2c_set_mode,\n 75:\t\t.get_mode = s3fwrn5_phy_get_mode,\n 76:\t\t.write = s3fwrn5_i2c_write,\n 77:\t};\n 78:\t\n 79:\tstatic int s3fwrn5_i2c_read(struct s3fwrn5_i2c_phy *phy)\n 80:\t{\n 81:\t\tstruct sk_buff *skb;\n 82:\t\tsize_t hdr_size;\n 83:\t\tsize_t data_len;\n 84:\t\tchar hdr[4];\n 85:\t\tint ret;\n 86:\t\n 87:\t\thdr_size = (phy-\u003ecommon.mode == S3FWRN5_MODE_NCI) ?\n 88:\t\t\tNCI_CTRL_HDR_SIZE : S3FWRN5_FW_HDR_SIZE;\n 89:\t\tret = i2c_master_recv(phy-\u003ei2c_dev, hdr, hdr_size);\n 90:\t\tif (ret \u003c 0)\n 91:\t\t\treturn ret;\n 92:\t\n 93:\t\tif (ret \u003c hdr_size)\n 94:\t\t\treturn -EBADMSG;\n 95:\t\n 96:\t\tdata_len = (phy-\u003ecommon.mode == S3FWRN5_MODE_NCI) ?\n 97:\t\t\t((struct nci_ctrl_hdr *)hdr)-\u003eplen :\n 98:\t\t\t((struct s3fwrn5_fw_header *)hdr)-\u003elen;\n 99:\t\n 100:\t\tskb = alloc_skb(hdr_size + data_len, GFP_KERNEL);\n"
} |
| 7/2 | 2026/11/15 08:17 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 24070 output: 46 thoughts: 26 Thoughts: Okay, here's my interpretation of that thought process, tailored for an expert audience, and written in the first person:
**Diving into the `i2c.c` Driver File**
Alright, so the next logical step is to dig into the `drivers/nfc/s3fwrn5/i2c.c` file. Given the context, I'm assuming this is the I2C driver for the S3FWRN5 NFC controller. My initial thought process involves a few key areas I'll want to focus on:
* **Initialization:** I'll be looking closely at how the I2C bus is initialized and configured for communication with the S3FWRN5. This includes checking the I2C adapter selection, clock speed settings, and any specific timing parameters required by the NFC controller's datasheet. I'll need to confirm they're using the right I2C adapter, and not assuming.
* **Data Transfer Functions:** The core of the driver will be the functions for reading and writing data over the I2C bus. I'll need to see how they're handling:
* **I2C Addressing:** Confirming that the S3FWRN5 slave address is correctly configured and being used in all I2C transactions. Any addressing offsets should be clearly noted.
* **Error Handling:** It's absolutely critical that I review the error handling mechanisms. Are they checking for ACK/NACK signals? Are there appropriate timeouts implemented? Are there retries with backoff? A robust I2C driver *must* handle bus errors gracefully.
* **Data Buffering:** I'll want to see how the data is buffered for both reads and writes, and how they handle any potential DMA or multi-byte transfers. I2C is known to be slow compared to other interfaces, so optimal buffering and efficient transfers are crucial.
* **Register Access:** I'll want to check for the correct register access mechanisms, and that register addresses and bitfields for the S3FWRN5 are defined and mapped correctly. Are they using bitmasks for configuration, or raw bitwise operations? Proper register abstraction is important for maintainability.
* **Interrupt Handling:** If the driver uses interrupts (which is likely for NFC), I'll scrutinize the interrupt handler. I'll want to verify:
* **Interrupt Enable/Disable:** Are interrupts enabled/disabled correctly at the appropriate times?
* **Interrupt Acknowledgment:** Is the interrupt status cleared properly within the handler?
* **Interrupt Context:** How is the driver managing interrupt context and ensuring thread safety, especially in a preemptive RTOS environment?
* **Power Management:** I'll see if there is any power management considerations. This is important to ensure that the device's power consumption is minimized.
Ultimately, I'm expecting to see a well-structured, robust, and efficient driver that adheres to the established I2C and NFC driver best practices for this platform. My goal is to quickly assess its correctness, performance, and maintainability. Let's see what we've got!
|
| 8/2 | 2026/11/15 08:18 | tool | read-file |
0mArgs:{
"File": "drivers/nfc/s3fwrn5/i2c.c",
"FirstLine": 101,
"LineCount": 105
}Results: {
"Contents": " 101:\t\tif (!skb)\n 102:\t\t\treturn -ENOMEM;\n 103:\t\n 104:\t\tskb_put_data(skb, hdr, hdr_size);\n 105:\t\n 106:\t\tif (data_len == 0)\n 107:\t\t\tgoto out;\n 108:\t\n 109:\t\tret = i2c_master_recv(phy-\u003ei2c_dev, skb_put(skb, data_len), data_len);\n 110:\t\tif (ret != data_len) {\n 111:\t\t\tkfree_skb(skb);\n 112:\t\t\treturn -EBADMSG;\n 113:\t\t}\n 114:\t\n 115:\tout:\n 116:\t\treturn s3fwrn5_recv_frame(phy-\u003ecommon.ndev, skb, phy-\u003ecommon.mode);\n 117:\t}\n 118:\t\n 119:\tstatic irqreturn_t s3fwrn5_i2c_irq_thread_fn(int irq, void *phy_id)\n 120:\t{\n 121:\t\tstruct s3fwrn5_i2c_phy *phy = phy_id;\n 122:\t\n 123:\t\tif (!phy || !phy-\u003ecommon.ndev) {\n 124:\t\t\tWARN_ON_ONCE(1);\n 125:\t\t\treturn IRQ_NONE;\n 126:\t\t}\n 127:\t\n 128:\t\tmutex_lock(\u0026phy-\u003ecommon.mutex);\n 129:\t\n 130:\t\tif (phy-\u003eirq_skip)\n 131:\t\t\tgoto out;\n 132:\t\n 133:\t\tswitch (phy-\u003ecommon.mode) {\n 134:\t\tcase S3FWRN5_MODE_NCI:\n 135:\t\tcase S3FWRN5_MODE_FW:\n 136:\t\t\ts3fwrn5_i2c_read(phy);\n 137:\t\t\tbreak;\n 138:\t\tcase S3FWRN5_MODE_COLD:\n 139:\t\t\tbreak;\n 140:\t\t}\n 141:\t\n 142:\tout:\n 143:\t\tmutex_unlock(\u0026phy-\u003ecommon.mutex);\n 144:\t\n 145:\t\treturn IRQ_HANDLED;\n 146:\t}\n 147:\t\n 148:\tstatic int s3fwrn5_i2c_probe(struct i2c_client *client)\n 149:\t{\n 150:\t\tstruct s3fwrn5_i2c_phy *phy;\n 151:\t\tint ret;\n 152:\t\n 153:\t\tphy = devm_kzalloc(\u0026client-\u003edev, sizeof(*phy), GFP_KERNEL);\n 154:\t\tif (!phy)\n 155:\t\t\treturn -ENOMEM;\n 156:\t\n 157:\t\tmutex_init(\u0026phy-\u003ecommon.mutex);\n 158:\t\tphy-\u003ecommon.mode = S3FWRN5_MODE_COLD;\n 159:\t\tphy-\u003eirq_skip = true;\n 160:\t\n 161:\t\tphy-\u003ei2c_dev = client;\n 162:\t\ti2c_set_clientdata(client, phy);\n 163:\t\n 164:\t\t/* The chip has to be powered before EN is driven */\n 165:\t\tret = devm_regulator_get_enable_optional(\u0026client-\u003edev, \"pvdd\");\n 166:\t\tif (ret \u0026\u0026 ret != -ENODEV)\n 167:\t\t\treturn dev_err_probe(\u0026client-\u003edev, ret,\n 168:\t\t\t\t\t \"failed to enable pvdd supply\\n\");\n 169:\t\n 170:\t\tphy-\u003ecommon.gpio_en = devm_gpiod_get(\u0026client-\u003edev, \"en\", GPIOD_OUT_HIGH);\n 171:\t\tif (IS_ERR(phy-\u003ecommon.gpio_en))\n 172:\t\t\treturn PTR_ERR(phy-\u003ecommon.gpio_en);\n 173:\t\n 174:\t\tphy-\u003ecommon.gpio_fw_wake = devm_gpiod_get(\u0026client-\u003edev, \"wake\", GPIOD_OUT_LOW);\n 175:\t\tif (IS_ERR(phy-\u003ecommon.gpio_fw_wake))\n 176:\t\t\treturn PTR_ERR(phy-\u003ecommon.gpio_fw_wake);\n 177:\t\n 178:\t\t/*\n 179:\t\t * S3FWRN5 depends on a clock input (\"XI\" pin) to function properly.\n 180:\t\t * Depending on the hardware configuration this could be an always-on\n 181:\t\t * oscillator or some external clock that must be explicitly enabled.\n 182:\t\t * Make sure the clock is running before starting S3FWRN5.\n 183:\t\t */\n 184:\t\tphy-\u003eclk = devm_clk_get_optional_enabled(\u0026client-\u003edev, NULL);\n 185:\t\tif (IS_ERR(phy-\u003eclk))\n 186:\t\t\treturn dev_err_probe(\u0026client-\u003edev, PTR_ERR(phy-\u003eclk),\n 187:\t\t\t\t\t \"failed to get clock\\n\");\n 188:\t\n 189:\t\tret = s3fwrn5_probe(\u0026phy-\u003ecommon.ndev, phy, \u0026phy-\u003ei2c_dev-\u003edev,\n 190:\t\t\t\t \u0026i2c_phy_ops);\n 191:\t\tif (ret \u003c 0)\n 192:\t\t\treturn ret;\n 193:\t\n 194:\t\tret = devm_request_threaded_irq(\u0026client-\u003edev, phy-\u003ei2c_dev-\u003eirq, NULL,\n 195:\t\t\ts3fwrn5_i2c_irq_thread_fn, IRQF_ONESHOT,\n 196:\t\t\tS3FWRN5_I2C_DRIVER_NAME, phy);\n 197:\t\tif (ret)\n 198:\t\t\tgoto s3fwrn5_remove;\n 199:\t\n 200:\t\treturn 0;\n"
} |
| 9/2 | 2026/11/15 08:18 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 26435 output: 45 thoughts: 26 Thoughts: Okay, here's my interpretation of that thought process, tailored for an expert audience, and written in the first person: **Diving into the I2C Driver** Right, let's get down to brass tacks. I need to understand how the I2C interface is being handled for this specific NFC controller, the s3fwrn5. My immediate thought is to navigate directly to the source code – specifically, the `drivers/nfc/s3fwrn5/i2c.c` file. I'm going to want to examine the initialization sequences, data transfers, error handling, and, of course, how it interacts with the lower-level I2C bus driver. I anticipate looking at any potential quirks or optimizations specific to this particular chip. Any unusual clock stretching behavior? DMA usage for efficient data throughput? Any custom I2C transaction framing that's specific to the s3fwrn5? This file holds the key to the hardware interaction, and that's precisely what I need to dissect. |
| 10/2 | 2026/11/15 08:18 | tool | read-file |
0mArgs:{
"File": "drivers/nfc/s3fwrn5/i2c.c",
"FirstLine": 201,
"LineCount": 40
}Results: {
"Contents": " 201:\t\n 202:\ts3fwrn5_remove:\n 203:\t\ts3fwrn5_remove(phy-\u003ecommon.ndev);\n 204:\t\treturn ret;\n 205:\t}\n 206:\t\n 207:\tstatic void s3fwrn5_i2c_remove(struct i2c_client *client)\n 208:\t{\n 209:\t\tstruct s3fwrn5_i2c_phy *phy = i2c_get_clientdata(client);\n 210:\t\n 211:\t\ts3fwrn5_remove(phy-\u003ecommon.ndev);\n 212:\t}\n 213:\t\n 214:\tstatic const struct i2c_device_id s3fwrn5_i2c_id_table[] = {\n 215:\t\t{ .name = S3FWRN5_I2C_DRIVER_NAME },\n 216:\t\t{ }\n 217:\t};\n 218:\tMODULE_DEVICE_TABLE(i2c, s3fwrn5_i2c_id_table);\n 219:\t\n 220:\tstatic const struct of_device_id of_s3fwrn5_i2c_match[] = {\n 221:\t\t{ .compatible = \"samsung,s3fwrn5-i2c\" },\n 222:\t\t{ }\n 223:\t};\n 224:\tMODULE_DEVICE_TABLE(of, of_s3fwrn5_i2c_match);\n 225:\t\n 226:\tstatic struct i2c_driver s3fwrn5_i2c_driver = {\n 227:\t\t.driver = {\n 228:\t\t\t.name = S3FWRN5_I2C_DRIVER_NAME,\n 229:\t\t\t.of_match_table = of_match_ptr(of_s3fwrn5_i2c_match),\n 230:\t\t},\n 231:\t\t.probe = s3fwrn5_i2c_probe,\n 232:\t\t.remove = s3fwrn5_i2c_remove,\n 233:\t\t.id_table = s3fwrn5_i2c_id_table,\n 234:\t};\n 235:\t\n 236:\tmodule_i2c_driver(s3fwrn5_i2c_driver);\n 237:\t\n 238:\tMODULE_LICENSE(\"GPL\");\n 239:\tMODULE_DESCRIPTION(\"I2C driver for Samsung S3FWRN5\");\n 240:\tMODULE_AUTHOR(\"Robert Baldyga \u003cr.baldyga@samsung.com\u003e\");\n"
} |
| 11/2 | 2026/11/15 08:18 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 27451 output: 37 thoughts: 2056 Thoughts: **WorthFuzzing Analysis: s3fwrn5 I2C NFC Driver** Okay, let's break this down. My initial assessment hinges on whether the modified code is reachable in a standard fuzzing environment. The patch touches devicetree bindings, DTS files, and C code related to the Samsung S3FWRN5 NFC controller, specifically the I2C interface. First, I need to understand what the patch changes and what it is trying to do. I note that it touches devicetree bindings, DTS files, and the `drivers/nfc/s3fwrn5/i2c.c` file. Specifically, I'm focusing on the probe function, `s3fwrn5_i2c_probe`, and the handling of the "pvdd" regulator and the "en" GPIO. I'm concerned about how the I2C client is instantiated. If the I2C client is created via sysfs (e.g., using `new_device`), it's important to analyze the code paths. Can the driver probe if it's instantiated this way? The code uses `devm_gpiod_get`, which is not optional, which suggests that an "en" GPIO *must* be present. A sysfs-created I2C client won't have that GPIO by default, and this could cause a probe failure. Does syzkaller even support the instantiation of I2C devices? Here's my critical question: Is this driver reachable under the "Target architecture: amd64" constraint? The patch references ARM64-specific files (DTS files and the architecture path), which immediately raises a red flag. The DTS files are device-specific and describe the hardware setup of the Samsung Galaxy M52 5G. This setup is not emulated by QEMU, the usual syzkaller environment. The target architecture is amd64. Therefore, the device-specific DTS and ARM64 code paths are not relevant. The `drivers/nfc/s3fwrn5/i2c.c` code is, however. I need to know if the probe function can execute. According to the provided triage philosophy, code is only worth fuzzing if it is reachable in standard virtualized environments. The key criteria are "Reachable Drivers and Protocols" or "Structurally unreachable hardware." Since the patch concerns a smartphone NFC controller connected via I2C to a specific Qualcomm SoC (SM7325), I need to determine if it falls under "Structurally unreachable hardware" within the context of the fuzzing environment. Given that the target architecture is amd64, I conclude that it likely does. The device-specific DTS and ARM64 paths will not execute on amd64. To reach a final decision, I will need to check if the driver itself, absent the DTS, can probe or be instantiated via sysfs, or if syzkaller can instantiate i2c devices at all. I should look into the kernel configurations (`CONFIG_NFC_S3FWRN5_I2C`) and determine the reachability of this driver. |
| 12/2 | 2026/11/15 08:18 | tool | grepper |
0mArgs:{
"Expression": "CONFIG_NFC_S3FWRN5",
"PathPrefixes": [
"arch/x86"
]
}Results: {
"Output": "no matches"
} |
| 13/2 | 2026/11/15 08:18 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 30226 output: 40 thoughts: 20 Thoughts: Here's a summary of my thought process, as requested: **Navigating the NFC Driver Configuration** Okay, let's dive in. My immediate instinct is to examine the configuration file for the S3FWRN5 NFC driver. I'll need to understand how this driver's features are exposed and controlled within the kernel build system. That means the Kconfig file, specifically `drivers/nfc/s3fwrn5/Kconfig`, is the logical starting point. I need to see the configuration options, dependencies, default values, and help text that govern this particular driver. This will give me a solid foundation for understanding how to enable, disable, and tailor this specific NFC driver for a particular target system. |
| 14/2 | 2026/11/15 08:18 | tool | read-file |
0mArgs:{
"File": "drivers/nfc/s3fwrn5/Kconfig",
"FirstLine": 1,
"LineCount": 40
}Results: {
"Contents": " 1:\t# SPDX-License-Identifier: GPL-2.0-only\n 2:\tconfig NFC_S3FWRN5\n 3:\t\ttristate\n 4:\t\tselect CRYPTO_LIB_SHA1\n 5:\t\thelp\n 6:\t\t Core driver for Samsung S3FWRN5 NFC chip. Contains core utilities\n 7:\t\t of chip. It's intended to be used by PHYs to avoid duplicating lots\n 8:\t\t of common code.\n 9:\t\n 10:\tconfig NFC_S3FWRN5_I2C\n 11:\t\ttristate \"Samsung S3FWRN5 I2C support\"\n 12:\t\tdepends on NFC_NCI \u0026\u0026 I2C\n 13:\t\tselect NFC_S3FWRN5\n 14:\t\tdefault n\n 15:\t\thelp\n 16:\t\t This module adds support for an I2C interface to the S3FWRN5 chip.\n 17:\t\t Select this if your platform is using the I2C bus.\n 18:\t\n 19:\t\t To compile this driver as a module, choose m here. The module will\n 20:\t\t be called s3fwrn5_i2c.ko.\n 21:\t\t Say N if unsure.\n 22:\t\n 23:\tconfig NFC_S3FWRN82_UART\n 24:\t tristate \"Samsung S3FWRN82 UART support\"\n 25:\t depends on NFC_NCI \u0026\u0026 SERIAL_DEV_BUS\n 26:\t select NFC_S3FWRN5\n 27:\t help\n 28:\t This module adds support for a UART interface to the S3FWRN82 chip.\n 29:\t Select this if your platform is using the UART bus.\n 30:\t\n 31:\t To compile this driver as a module, choose m here. The module will\n 32:\t be called s3fwrn82_uart.ko.\n 33:\t Say N if unsure.\n"
} |
| 15/2 | 2026/11/15 08:18 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 30962 output: 29 thoughts: 1803 Thoughts: **Analysis of the S3FWRN5 I2C Driver's Fuzzability**
Okay, so let's walk through this. My initial thought was to see what happens when the `s3fwrn5_i2c_probe` function gets called. Can I trigger it within QEMU? The obvious follow-up is, does QEMU even *emulate* the Samsung S3FWRN5 I2C chip? Nope, standard QEMU doesn't have that. My next thought was if userspace could instantiate it. I considered if Syzkaller (or userspace, more generally) could create an I2C client via `sysfs` by echoing the right values into the `new_device` file.
Now, let's trace `s3fwrn5_i2c_probe`. It looks like it tries to get a GPIO "en" using `devm_gpiod_get`. That function relies on device tree, ACPI, or GPIO lookup tables to find the GPIO. The kicker is, if this device is instantiated dynamically, or on a standard x86 / QEMU setup without a corresponding DT/ACPI GPIO lookup, `devm_gpiod_get` will return `-ENOENT`. Then, immediately, `s3fwrn5_i2c_probe` returns `-ENOENT`. It won't even *finish* probing! The device registration just completely fails.
So, the next question is, does Syzkaller even bother with instantiating I2C devices via `sysfs`? Does it even fuzz I2C client drivers? I needed to check if I2C client drivers without USB/virtual buses are considered structurally unreachable in its current design.
Then, I reread the triage philosophy carefully. Section 2, the *negative criteria*, states that code is `WorthFuzzing=false` if it falls into "structurally unreachable hardware". *That* is the critical point. "Vendor-specific... requiring physical ASIC/PCIe cards not emulated in standard QEMU."
Looking at the file paths, I confirm my suspicion. The changes include changes to documentation, which isn't executable. The architecture-specific device tree bindings are also unreachable for the amd64 target. The device tree is for a Qualcomm SM7325 handset, which is the Samsung Galaxy M52 5G.
The driver, `drivers/nfc/s3fwrn5/i2c.c`, is for the Samsung S3FWRN5 NFC controller over I2C. And, that's the nail in the coffin. That hardware is *not* available in standard QEMU or GCE. It's a physical NFC chip used in mobile phones. It needs physical hardware or, at the very least, specialized emulation that's not present in the typical QEMU/GCE setup.
So, even if someone compiled the driver, there's no S3FWRN5 I2C device on the bus. And, even if you try the `sysfs` instantiation trick, it'll fail because it requires GPIOs ("en", "wake") mapped via Device Tree (from the Qualcomm SM7325 SoC), which *do not exist* in an amd64 QEMU/GCE environment.
Therefore, this driver is for *structurally unreachable* hardware. It's not worth fuzzing, based on the triage criteria. I should double check the git log of the commit to make sure there are no other relevant changes.
|
| 16/2 | 2026/11/15 08:18 | tool | grepper |
0mArgs:{
"Expression": "s3fwrn5",
"PathPrefixes": [
"drivers/"
]
}Results: {
"Output": "\nFull output is too long, showing 200 out of 712 lines.\nUse more precise expression or PathPrefixes if possible.\n\nNumber of matching lines per file (15 files in total):\ndrivers/gpio/gpiolib-of.c:2\ndrivers/nfc/Kconfig:1\ndrivers/nfc/Makefile:1\ndrivers/nfc/s3fwrn5/Kconfig:1\ndrivers/nfc/s3fwrn5/Makefile:4\ndrivers/nfc/s3fwrn5/core.c:57\ndrivers/nfc/s3fwrn5/firmware.c:67\ndrivers/nfc/s3fwrn5/firmware.h:14\ndrivers/nfc/s3fwrn5/i2c.c:39\ndrivers/nfc/s3fwrn5/nci.c:8\ndrivers/nfc/s3fwrn5/nci.h:3\ndrivers/nfc/s3fwrn5/phy_common.c:10\ndrivers/nfc/s3fwrn5/phy_common.h:6\ndrivers/nfc/s3fwrn5/s3fwrn5.h:17\ndrivers/nfc/s3fwrn5/uart.c:7\n\ndrivers/gpio/gpiolib-of.c=487=static struct gpio_desc *of_find_gpio_rename(struct device_node *np,\n--\ndrivers/gpio/gpiolib-of.c-527-#if IS_ENABLED(CONFIG_NFC_S3FWRN5_I2C)\ndrivers/gpio/gpiolib-of.c:528:\t\t{ \"en\",\t\t\"s3fwrn5,en-gpios\",\t\"samsung,s3fwrn5-i2c\" },\ndrivers/gpio/gpiolib-of.c:529:\t\t{ \"wake\",\t\"s3fwrn5,fw-gpios\",\t\"samsung,s3fwrn5-i2c\" },\ndrivers/gpio/gpiolib-of.c-530-#endif\n--\ndrivers/nfc/Kconfig=70=source \"drivers/nfc/nxp-nci/Kconfig\"\ndrivers/nfc/Kconfig:71:source \"drivers/nfc/s3fwrn5/Kconfig\"\ndrivers/nfc/Kconfig-72-source \"drivers/nfc/st95hf/Kconfig\"\n--\ndrivers/nfc/Makefile=17=obj-$(CONFIG_NFC_NXP_NCI)\t+= nxp-nci/\ndrivers/nfc/Makefile:18:obj-$(CONFIG_NFC_S3FWRN5)\t+= s3fwrn5/\ndrivers/nfc/Makefile-19-obj-$(CONFIG_NFC_ST95HF)\t+= st95hf/\n--\ndrivers/nfc/s3fwrn5/Kconfig=10=config NFC_S3FWRN5_I2C\n--\ndrivers/nfc/s3fwrn5/Kconfig-19-\t To compile this driver as a module, choose m here. The module will\ndrivers/nfc/s3fwrn5/Kconfig:20:\t be called s3fwrn5_i2c.ko.\ndrivers/nfc/s3fwrn5/Kconfig-21-\t Say N if unsure.\n--\ndrivers/nfc/s3fwrn5/Makefile-5-\ndrivers/nfc/s3fwrn5/Makefile:6:s3fwrn5-objs = core.o firmware.o nci.o phy_common.o\ndrivers/nfc/s3fwrn5/Makefile:7:s3fwrn5_i2c-objs = i2c.o\ndrivers/nfc/s3fwrn5/Makefile-8-s3fwrn82_uart-objs = uart.o\ndrivers/nfc/s3fwrn5/Makefile-9-\ndrivers/nfc/s3fwrn5/Makefile:10:obj-$(CONFIG_NFC_S3FWRN5) += s3fwrn5.o\ndrivers/nfc/s3fwrn5/Makefile:11:obj-$(CONFIG_NFC_S3FWRN5_I2C) += s3fwrn5_i2c.o\ndrivers/nfc/s3fwrn5/Makefile-12-obj-$(CONFIG_NFC_S3FWRN82_UART) += s3fwrn82_uart.o\n--\ndrivers/nfc/s3fwrn5/core.c-11-\ndrivers/nfc/s3fwrn5/core.c:12:#include \"s3fwrn5.h\"\ndrivers/nfc/s3fwrn5/core.c-13-#include \"firmware.h\"\n--\ndrivers/nfc/s3fwrn5/core.c-22-\ndrivers/nfc/s3fwrn5/core.c:23:static int s3fwrn5_firmware_init(struct s3fwrn5_info *info)\ndrivers/nfc/s3fwrn5/core.c-24-{\ndrivers/nfc/s3fwrn5/core.c:25:\tstruct s3fwrn5_fw_info *fw_info = \u0026info-\u003efw_info;\ndrivers/nfc/s3fwrn5/core.c-26-\tint ret;\ndrivers/nfc/s3fwrn5/core.c-27-\ndrivers/nfc/s3fwrn5/core.c:28:\ts3fwrn5_fw_init(fw_info, \"sec_s3fwrn5_firmware.bin\");\ndrivers/nfc/s3fwrn5/core.c-29-\ndrivers/nfc/s3fwrn5/core.c-30-\t/* Get firmware data */\ndrivers/nfc/s3fwrn5/core.c:31:\tret = s3fwrn5_fw_request_firmware(fw_info);\ndrivers/nfc/s3fwrn5/core.c-32-\tif (ret \u003c 0)\n--\ndrivers/nfc/s3fwrn5/core.c-37-\ndrivers/nfc/s3fwrn5/core.c:38:static int s3fwrn5_firmware_update(struct s3fwrn5_info *info)\ndrivers/nfc/s3fwrn5/core.c-39-{\n--\ndrivers/nfc/s3fwrn5/core.c-44-\ndrivers/nfc/s3fwrn5/core.c:45:\ts3fwrn5_set_wake(info, false);\ndrivers/nfc/s3fwrn5/core.c:46:\ts3fwrn5_set_mode(info, S3FWRN5_MODE_FW);\ndrivers/nfc/s3fwrn5/core.c-47-\ndrivers/nfc/s3fwrn5/core.c:48:\tret = s3fwrn5_fw_setup(\u0026info-\u003efw_info);\ndrivers/nfc/s3fwrn5/core.c-49-\tif (ret \u003c 0)\n--\ndrivers/nfc/s3fwrn5/core.c-51-\ndrivers/nfc/s3fwrn5/core.c:52:\tneed_update = s3fwrn5_fw_check_version(\u0026info-\u003efw_info,\ndrivers/nfc/s3fwrn5/core.c-53-\t\tinfo-\u003endev-\u003emanufact_specific_info);\n--\ndrivers/nfc/s3fwrn5/core.c-58-\ndrivers/nfc/s3fwrn5/core.c:59:\tret = s3fwrn5_fw_download(\u0026info-\u003efw_info);\ndrivers/nfc/s3fwrn5/core.c-60-\tif (ret \u003c 0)\n--\ndrivers/nfc/s3fwrn5/core.c-64-\ndrivers/nfc/s3fwrn5/core.c:65:\ts3fwrn5_set_mode(info, S3FWRN5_MODE_NCI);\ndrivers/nfc/s3fwrn5/core.c-66-\ndrivers/nfc/s3fwrn5/core.c:67:\ts3fwrn5_set_wake(info, true);\ndrivers/nfc/s3fwrn5/core.c:68:\tret = s3fwrn5_nci_rf_configure(info, \"sec_s3fwrn5_rfreg.bin\");\ndrivers/nfc/s3fwrn5/core.c:69:\ts3fwrn5_set_wake(info, false);\ndrivers/nfc/s3fwrn5/core.c-70-\ndrivers/nfc/s3fwrn5/core.c-71-out:\ndrivers/nfc/s3fwrn5/core.c:72:\ts3fwrn5_set_mode(info, S3FWRN5_MODE_COLD);\ndrivers/nfc/s3fwrn5/core.c:73:\ts3fwrn5_fw_cleanup(\u0026info-\u003efw_info);\ndrivers/nfc/s3fwrn5/core.c-74-\treturn ret;\n--\ndrivers/nfc/s3fwrn5/core.c-76-\ndrivers/nfc/s3fwrn5/core.c:77:static int s3fwrn5_nci_open(struct nci_dev *ndev)\ndrivers/nfc/s3fwrn5/core.c-78-{\ndrivers/nfc/s3fwrn5/core.c:79:\tstruct s3fwrn5_info *info = nci_get_drvdata(ndev);\ndrivers/nfc/s3fwrn5/core.c-80-\ndrivers/nfc/s3fwrn5/core.c:81:\tif (s3fwrn5_get_mode(info) != S3FWRN5_MODE_COLD)\ndrivers/nfc/s3fwrn5/core.c-82-\t\treturn -EBUSY;\ndrivers/nfc/s3fwrn5/core.c-83-\ndrivers/nfc/s3fwrn5/core.c:84:\ts3fwrn5_set_mode(info, S3FWRN5_MODE_NCI);\ndrivers/nfc/s3fwrn5/core.c:85:\ts3fwrn5_set_wake(info, true);\ndrivers/nfc/s3fwrn5/core.c-86-\n--\ndrivers/nfc/s3fwrn5/core.c-89-\ndrivers/nfc/s3fwrn5/core.c:90:static int s3fwrn5_nci_close(struct nci_dev *ndev)\ndrivers/nfc/s3fwrn5/core.c-91-{\ndrivers/nfc/s3fwrn5/core.c:92:\tstruct s3fwrn5_info *info = nci_get_drvdata(ndev);\ndrivers/nfc/s3fwrn5/core.c-93-\ndrivers/nfc/s3fwrn5/core.c:94:\ts3fwrn5_set_wake(info, false);\ndrivers/nfc/s3fwrn5/core.c:95:\ts3fwrn5_set_mode(info, S3FWRN5_MODE_COLD);\ndrivers/nfc/s3fwrn5/core.c-96-\n--\ndrivers/nfc/s3fwrn5/core.c-99-\ndrivers/nfc/s3fwrn5/core.c:100:static int s3fwrn5_nci_send(struct nci_dev *ndev, struct sk_buff *skb)\ndrivers/nfc/s3fwrn5/core.c-101-{\ndrivers/nfc/s3fwrn5/core.c:102:\tstruct s3fwrn5_info *info = nci_get_drvdata(ndev);\ndrivers/nfc/s3fwrn5/core.c-103-\tint ret;\n--\ndrivers/nfc/s3fwrn5/core.c-106-\ndrivers/nfc/s3fwrn5/core.c:107:\tif (s3fwrn5_get_mode(info) != S3FWRN5_MODE_NCI) {\ndrivers/nfc/s3fwrn5/core.c-108-\t\tkfree_skb(skb);\n--\ndrivers/nfc/s3fwrn5/core.c-112-\ndrivers/nfc/s3fwrn5/core.c:113:\tret = s3fwrn5_write(info, skb);\ndrivers/nfc/s3fwrn5/core.c-114-\tif (ret \u003c 0) {\n--\ndrivers/nfc/s3fwrn5/core.c-124-\ndrivers/nfc/s3fwrn5/core.c:125:static int s3fwrn5_nci_post_setup(struct nci_dev *ndev)\ndrivers/nfc/s3fwrn5/core.c-126-{\ndrivers/nfc/s3fwrn5/core.c:127:\tstruct s3fwrn5_info *info = nci_get_drvdata(ndev);\ndrivers/nfc/s3fwrn5/core.c-128-\tint ret;\ndrivers/nfc/s3fwrn5/core.c-129-\ndrivers/nfc/s3fwrn5/core.c:130:\tif (s3fwrn5_firmware_init(info)) {\ndrivers/nfc/s3fwrn5/core.c-131-\t\t//skip bootloader mode\n--\ndrivers/nfc/s3fwrn5/core.c-134-\ndrivers/nfc/s3fwrn5/core.c:135:\tret = s3fwrn5_firmware_update(info);\ndrivers/nfc/s3fwrn5/core.c-136-\tif (ret \u003c 0)\n--\ndrivers/nfc/s3fwrn5/core.c-140-\ndrivers/nfc/s3fwrn5/core.c:141:\ts3fwrn5_set_mode(info, S3FWRN5_MODE_NCI);\ndrivers/nfc/s3fwrn5/core.c:142:\ts3fwrn5_set_wake(info, true);\ndrivers/nfc/s3fwrn5/core.c-143-\n--\ndrivers/nfc/s3fwrn5/core.c-150-\ndrivers/nfc/s3fwrn5/core.c:151:static const struct nci_ops s3fwrn5_nci_ops = {\ndrivers/nfc/s3fwrn5/core.c:152:\t.open = s3fwrn5_nci_open,\ndrivers/nfc/s3fwrn5/core.c:153:\t.close = s3fwrn5_nci_close,\ndrivers/nfc/s3fwrn5/core.c:154:\t.send = s3fwrn5_nci_send,\ndrivers/nfc/s3fwrn5/core.c:155:\t.post_setup = s3fwrn5_nci_post_setup,\ndrivers/nfc/s3fwrn5/core.c:156:\t.prop_ops = s3fwrn5_nci_prop_ops,\ndrivers/nfc/s3fwrn5/core.c:157:\t.n_prop_ops = ARRAY_SIZE(s3fwrn5_nci_prop_ops),\ndrivers/nfc/s3fwrn5/core.c-158-};\ndrivers/nfc/s3fwrn5/core.c-159-\ndrivers/nfc/s3fwrn5/core.c:160:int s3fwrn5_probe(struct nci_dev **ndev, void *phy_id, struct device *pdev,\ndrivers/nfc/s3fwrn5/core.c:161:\tconst struct s3fwrn5_phy_ops *phy_ops)\ndrivers/nfc/s3fwrn5/core.c-162-{\ndrivers/nfc/s3fwrn5/core.c:163:\tstruct s3fwrn5_info *info;\ndrivers/nfc/s3fwrn5/core.c-164-\tint ret;\n--\ndrivers/nfc/s3fwrn5/core.c-174-\ndrivers/nfc/s3fwrn5/core.c:175:\ts3fwrn5_set_mode(info, S3FWRN5_MODE_COLD);\ndrivers/nfc/s3fwrn5/core.c-176-\ndrivers/nfc/s3fwrn5/core.c:177:\tinfo-\u003endev = nci_allocate_device(\u0026s3fwrn5_nci_ops,\ndrivers/nfc/s3fwrn5/core.c-178-\t\tS3FWRN5_NFC_PROTOCOLS, 0, 0);\n--\ndrivers/nfc/s3fwrn5/core.c-196-}\ndrivers/nfc/s3fwrn5/core.c:197:EXPORT_SYMBOL(s3fwrn5_probe);\ndrivers/nfc/s3fwrn5/core.c-198-\ndrivers/nfc/s3fwrn5/core.c:199:void s3fwrn5_remove(struct nci_dev *ndev)\ndrivers/nfc/s3fwrn5/core.c-200-{\ndrivers/nfc/s3fwrn5/core.c:201:\tstruct s3fwrn5_info *info = nci_get_drvdata(ndev);\ndrivers/nfc/s3fwrn5/core.c-202-\ndrivers/nfc/s3fwrn5/core.c:203:\ts3fwrn5_set_mode(info, S3FWRN5_MODE_COLD);\ndrivers/nfc/s3fwrn5/core.c-204-\n--\ndrivers/nfc/s3fwrn5/core.c-207-}\ndrivers/nfc/s3fwrn5/core.c:208:EXPORT_SYMBOL(s3fwrn5_remove);\ndrivers/nfc/s3fwrn5/core.c-209-\ndrivers/nfc/s3fwrn5/core.c:210:int s3fwrn5_recv_frame(struct nci_dev *ndev, struct sk_buff *skb,\ndrivers/nfc/s3fwrn5/core.c:211:\tenum s3fwrn5_mode mode)\ndrivers/nfc/s3fwrn5/core.c-212-{\n--\ndrivers/nfc/s3fwrn5/core.c-216-\tcase S3FWRN5_MODE_FW:\ndrivers/nfc/s3fwrn5/core.c:217:\t\treturn s3fwrn5_fw_recv_frame(ndev, skb);\ndrivers/nfc/s3fwrn5/core.c-218-\tdefault:\n--\ndrivers/nfc/s3fwrn5/core.c-222-}\ndrivers/nfc/s3fwrn5/core.c:223:EXPORT_SYMBOL(s3fwrn5_recv_frame);\ndrivers/nfc/s3fwrn5/core.c-224-\n--\ndrivers/nfc/s3fwrn5/firmware.c-12-\ndrivers/nfc/s3fwrn5/firmware.c:13:#include \"s3fwrn5.h\"\ndrivers/nfc/s3fwrn5/firmware.c-14-#include \"firmware.h\"\ndrivers/nfc/s3fwrn5/firmware.c-15-\ndrivers/nfc/s3fwrn5/firmware.c:16:struct s3fwrn5_fw_version {\ndrivers/nfc/s3fwrn5/firmware.c-17-\t__u8 major;\n--\ndrivers/nfc/s3fwrn5/firmware.c-22-\ndrivers/nfc/s3fwrn5/firmware.c:23:static int s3fwrn5_fw_send_msg(struct s3fwrn5_fw_info *fw_info,\ndrivers/nfc/s3fwrn5/firmware.c-24-\tstruct sk_buff *msg, struct sk_buff **rsp)\ndrivers/nfc/s3fwrn5/firmware.c-25-{\ndrivers/nfc/s3fwrn5/firmware.c:26:\tstruct s3fwrn5_info *info =\ndrivers/nfc/s3fwrn5/firmware.c:27:\t\tcontainer_of(fw_info, struct s3fwrn5_info, fw_info);\ndrivers/nfc/s3fwrn5/firmware.c-28-\tlong ret;\n--\ndrivers/nfc/s3fwrn5/firmware.c-31-\ndrivers/nfc/s3fwrn5/firmware.c:32:\tret = s3fwrn5_write(info, msg);\ndrivers/nfc/s3fwrn5/firmware.c-33-\tif (ret \u003c 0)\n--\ndrivers/nfc/s3fwrn5/firmware.c-51-\ndrivers/nfc/s3fwrn5/firmware.c:52:static int s3fwrn5_fw_prep_msg(struct s3fwrn5_fw_info *fw_info,\ndrivers/nfc/s3fwrn5/firmware.c-53-\tstruct sk_buff **msg, u8 type, u8 code, const void *data, u16 len)\ndrivers/nfc/s3fwrn5/firmware.c-54-{\n\n"
} |
| 17/2 | 2026/11/15 08:18 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 39330 output: 194 thoughts: 1419 Thoughts: **Analysis of the `s3fwrn5_i2c` Patch for Fuzzing Suitability** Okay, let's break this down. The patch modifies `drivers/nfc/s3fwrn5/i2c.c` to include power regulation before enabling the NFC chip. It's straightforward code, but the critical question is: can syzkaller *actually* reach this code? First, I need to understand how this driver is instantiated. It looks like it's triggered when an I2C device with a specific name or compatible string is matched. Now, can syzkaller fuzz this? The answer is no, not directly. Syzkaller's standard environments (GCE or QEMU) rely on software-emulated devices and virtual buses like virtio, USB gadget, loopback, netlink, binder, and sockets. This NFC chip is an I2C device, a hardware component on a physical I2C bus on an ARM mobile phone, connected to a Qualcomm PMIC and SoC GPIO pins, which is inaccessible to syzkaller's virtual bus instantiators. There's no virtual I2C bridge being used. This isn't reachable through any standard setup. The DTS file (`sm7325-samsung-m52xq.dts`) is for an arm64 architecture, specifically a Qualcomm SM7325 SoC, not the amd64 architecture that my fuzzing setup likely uses. Even if I somehow managed to compile and load the `s3fwrn5_i2c.ko` module on amd64, it *still* requires physical I2C hardware and board GPIOs, which are non-existent in my standard fuzzing environment. Therefore, this patch falls into clear negative criteria for fuzzing: 1. **Non-kernel and non-executable changes:** Modifications to documentation and Device Tree Bindings (`Documentation/devicetree/bindings/...`) 2. **Code paths exclusive to architectures other than the target architecture:** Arm64-specific DTS files (`arch/arm64/boot/dts/qcom/...`) 3. **Structurally unreachable hardware:** The code relates to a Samsung S3FWRN5 I2C NFC chip on physical mobile hardware requiring specific board power supplies/GPIOs, and this hardware isn't emulated by standard QEMU or GCE instances on amd64, nor is it accessible via virtual buses. Every single change falls strictly into the negative criteria for fuzzing. There is absolutely no chance of reachability. The I2C client driver is for a dedicated NFC chip found on Samsung mobile phones. It has no virtual bus attachment. Standard QEMU/GCE instances running on amd64 do not emulate this device. Therefore, I'm confident in setting `WorthFuzzing=false`. The explanation will be concise and clearly explain the reasons for the decision, avoiding any ambiguity. |
| 18/2 | 2026/11/15 08:19 | tool | set-results |
0mArgs:{
"EnableConfigs": [],
"FocusSymbols": [],
"Reasoning": "The patch series introduces device tree support for the Samsung Galaxy M52 5G (SM7325, ARM64) and adds optional regulator ('pvdd') support to the Samsung S3FWRN5 I2C NFC driver. The DTS files are exclusive to ARM64 and cannot execute on the target architecture (amd64). The documentation files are non-executable. The driver changes in drivers/nfc/s3fwrn5/i2c.c target a vendor-specific I2C NFC chip on physical mobile hardware requiring platform GPIOs/regulators, which is not emulated in standard QEMU/GCE virtual environments and cannot be accessed via virtual buses. Therefore, the modified code is structurally unreachable for fuzzing on amd64.",
"WorthFuzzing": false
}Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"Reasoning": "The patch series introduces device tree support for the Samsung Galaxy M52 5G (SM7325, ARM64) and adds optional regulator ('pvdd') support to the Samsung S3FWRN5 I2C NFC driver. The DTS files are exclusive to ARM64 and cannot execute on the target architecture (amd64). The documentation files are non-executable. The driver changes in drivers/nfc/s3fwrn5/i2c.c target a vendor-specific I2C NFC chip on physical mobile hardware requiring platform GPIOs/regulators, which is not emulated in standard QEMU/GCE virtual environments and cannot be accessed via virtual buses. Therefore, the modified code is structurally unreachable for fuzzing on amd64.",
"WorthFuzzing": false
} |
| 19/1 | 2026/11/15 08:19 | action | If |
0mArgs:{
"WorthFuzzing": false
}Results: null |
| Total Calls | Total Tokens | Avg Tokens | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|
| Total Calls | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|