Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.167.42 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796551426; b=xfbzWYMTWvXm0sIlph4482X5cAlrpqACSUe595owqHZBZKMO9VEttzPjHxru9ItjdmU3 x6Gj9pGomHk471vqSf9ltpkipsDyoeDxb20C93DFOT/2qBAmqybGp640T+S9ZJKfxHsEe ZSMkAHq2SPKMkKQHmR4CeP5zGTlpyMdYBxi6M5lb+CqG5JEkcoPLUobxDkQrx+dRffg16 dJ9IJpInU1p3ph8hTzwcBwwvd3mGcntlwIv6b+gb2cCNdVuQXKZjQ+W6pd9Duvx01+jq+ uTGswwrmGpoCTAKprIv5QwAdZwanBLett4WJzjGxHC9ZvAX1mWtAB46QujzlnoAygkg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796551426; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=JJVI4i0dNSiCtJZg+xWa51aqKC0AkBko9RbQqw87yAk=; b=CD8zoyFgf3uy5YevjofOGsaihTQeCHQPJiYW83fNYdqTsuIsvht7hiYVwZZbWD/ksK2q VWmdGwoe7ruTv2SC7/wIXuYjktJv1JJmwBBjK5Rg+puMuOvN4jLuiuvRe6I/8Fp54XE9X hO4hPeN9+upZ52e8EJQXfj0Zbgoj5avZvUAdyXPULwn96jLuc4H9hePs6zalcp0zHcd4G /tzzucRPs9VFsHlr2d57+Ad3YVfdVCKJmDXFA7heEVO/5u3LcJGDBruXX7H/xMoKqMnKb jf6MUgid0LhJqVFT9t4apMjE8KNJRw8o0Q/B7J9cogJynVHB++NSkpMB/ZyehIe/Bug== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=jFuC5Pz7; arc=none smtp.remote-ip=209.85.167.42 Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0B007606A31F for ; Sun, 6 Dec 2026 10:03:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0B007606A31F Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=jFuC5Pz7 Received: by mail-lf1-f42.google.com with SMTP id 2adb3069b0e04-5bccecba199so2194662e87.1 for ; Sun, 06 Dec 2026 02:03:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796551424; x=1797156224; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=JJVI4i0dNSiCtJZg+xWa51aqKC0AkBko9RbQqw87yAk=; b=jFuC5Pz7pN5xqvMi8f5CniyRxDLPqubX8MkJ690etpQ2Z9ae2KvumK75Ch26HWwrQ4 pDYkyzIGXm5srR2FnJGn9ziLAKKBTRBsTdx9DdfOVzMW1ba/Z7JUFwVE7bbNX2WX/AOb LhhRz7CRN4q3kkSX0HqfYpOu0v4uLVyLRuYYG++hGHoym/RZ8i+Es56GEkmariYc/NN1 IbJPqgOjbnbExqHbwSCUzUHSozbu8VQpjf+lnmI5lFi1PMTnbiCT60/nRQK774udKo7l 6E6crhvQWxuv7RupavGLcaUcnDi5/21n3Gx4G9J+vIRhdGuhwCeOE/WzNyjES2G/FPoO RfgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796551424; x=1797156224; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=JJVI4i0dNSiCtJZg+xWa51aqKC0AkBko9RbQqw87yAk=; b=j/uAO91LXnQTLUGOSvFYOfb3GiO4OPmgpRoDGJ2rLstWLDaZa5t5IljN7orw7YIoKa cKLLAxJFsaxDv7z8R5w6VJ/gRJtpQy/C7s/aH7p35EeckuLVqV43C4eF2uVC1nh2ePV9 X/AhHoIlb7iPU/73nAXYVghr120RGMWO3qIskA9hjVXfRAhXRsgh6OiZfpmf2m3omeMT 38hkC7x95XA602JOUCMTB4Mc78Ioz0rL2I/SeC8msE0MP6vbgH4WE8hKK6mhTmnx/3v2 I0dD3ifPmO40qRDVwcokbM8F0kiwsGywGxRbaC6D5+V7lh4BxSAZ5zHIX0PaOLkptWiW XIuQ== X-Forwarded-Encrypted: i=1; AL+hErF5Zyi6fEdxgpsAia7Xy469+C5fGZBAYy/yUysJ9Rz33kQV/CtLz0ZPr2uQd86kPMmziIi7CCFuf/I=@vger.kernel.org X-Gm-Message-State: AB4q+uE/LWzXJrCq6/bUm3ImW3BuzyHos8sQJETQhRFRJLYYJ/daFNhv NgJ75Kkt8cBFJXyLPQq+xzvtvY7pJTHbOccfd01YP8enVKX7Pf6iMYxo X-Gm-Gg: AZFdTZfgZN5VKCa5E4aJjmUKHGRowRDZEg1BacOM3UrNnG3HlIhMbjhEOK+XjYaNcAw Y1A+upwSJgvKRWq7yDhbFODkJ5nDn5lAe1eXqwbgZ3JvkJ0qmUOih+B9GCvtSSfcJ43lv0qX5lV dcKedz3/GT3qdsZKtlSxwUfnxeuS9TbakiwPDNDkS4972QpHoz5Ok5kU4+mDEeEgNAiLky920Q1 fp8LVtFjuxBjk/3k4E4h/4unSfzgYegW7DASxsqeaTcFpKefeCbyq95zkyAVcV2/knqLgWvq6F+ hN0L3mFQfe1zJIEu89FxdVB4RP/dkTgt5xym0EV082BspPoq7/Np+4PcSXnNqIVAiVyh3Ge90Ol qJeVVf/2bMyG1oC9nQMEwVilismVn4KGFCYgWtLk/JSyCavHjf0IYBQlWmpJOdr7SU3IeajgIUC 0G9JpmVbWT+miPse5CAZLXILeoTB4Dcv5ClCSZFxG6qcjynheeb2c9CqIyCjUVy2UtT2jy9hulv QvbPX36g14W6AhN10J/hxnp8c6098hEiZIOAqun+v0jb7WmLqSCy5ulvE6/rivfWynUb2mssUn5 89S+WH6TpozarriATqvhstkX3jpR3enrhT+GoOw9nilkYFn1voairiD2roLka/3ft66EW/sAmFN DbVtyZsld+t2H0GZSMA== X-Received: by 2002:a05:6512:104c:b0:5c1:57ba:b477 with SMTP id 2adb3069b0e04-5c386231269mr1713393e87.57.1796551424214; Sun, 06 Dec 2026 02:03:44 -0800 (PST) Received: from yantra.. (91-159-24-23.elisa-laajakaista.fi. [91.159.24.23]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5c3849a69fbsm2223243e87.10.2026.12.06.02.03.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Dec 2026 02:03:43 -0800 (PST) From: Rupesh Majhi To: Andy Shevchenko , Antoniu Miclaus , David Lechner , Eddie James , Jonathan Cameron , Jonathan Corbet , Lucas Stankus , Marcelo Schmitt , Michael Hennerich , =?UTF-8?q?Nuno=20S=C3=A1?= , Petre Rodan , Randy Dunlap , Shuah Khan Cc: linux@analog.com, linux-doc@vger.kernel.org, linux-iio@vger.kernel.org, Rupesh Majhi , Andy Shevchenko Subject: [PATCH v4 7/7] iio: pressure: dps310: add debugfs register access Date: Sun, 6 Dec 2026 12:03:26 +0200 Message-ID: <20261206100326.45569-8-zoone.rupert@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261206100326.45569-1-zoone.rupert@gmail.com> References: <20261206100326.45569-1-zoone.rupert@gmail.com> X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Expose the registers through direct_reg_access with the core regmap helper, so the configuration and status registers can be looked at through the driver's regmap instead of around it on the bus. The access is not serialised with the driver beyond the regmap lock. Reading INT_STS or a result register clears what the driver waits for, as it would on the bus. Reviewed-by: Nuno Sá Reviewed-by: Andy Shevchenko Signed-off-by: Rupesh Majhi --- drivers/iio/pressure/dps310.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iio/pressure/dps310.c b/drivers/iio/pressure/dps310.c index 74d4111b5e29..ae132c188c9c 100644 --- a/drivers/iio/pressure/dps310.c +++ b/drivers/iio/pressure/dps310.c @@ -1557,6 +1557,7 @@ static const struct iio_info dps310_info = { .write_raw = dps310_write_raw, .hwfifo_set_watermark = dps310_hwfifo_set_watermark, .hwfifo_flush_to_buffer = dps310_hwfifo_flush, + .debugfs_reg_access = iio_access_debugfs_regmap_reg, }; static int dps310_probe(struct i2c_client *client) -- 2.43.0