From: Andy Shevchenko <andriy.shevchenko@intel.com>
To: sanjayembeddedse@gmail.com
Cc: "Jiri Kosina" <jikos@kernel.org>,
"Jonathan Cameron" <jic23@kernel.org>,
"Srinivas Pandruvada" <srinivas.pandruvada@linux.intel.com>,
"David Lechner" <dlechner@baylibre.com>,
"Nuno Sá" <nuno.sa@analog.com>,
"Andy Shevchenko" <andy@kernel.org>,
linux-input@vger.kernel.org, linux-iio@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 3/7] iio: magnetometer: hid-sensor-magn-3d: drop redundant probe error messages
Date: Fri, 27 Nov 2026 13:09:01 +0200 [thread overview]
Message-ID: <awlkzVRCTNaA4-gJ@ashevche-desk.local> (raw)
In-Reply-To: <20261127-19-oct-hid-iio-unified-print-framework-v2-3-3f476fe1a940@gmail.com>
On Fri, Nov 27, 2026 at 04:03:58PM +0530, Sanjay Chitroda via B4 Relay wrote:
>
> The probe path emits error messages for conditions where the failure is
> either already conveyed by the returned error code or can be identified
> from the existing debug messages in the magn_3d_parse_report().
>
> Remove the redundant error messages to reduce log noise and simplify the
> error handling code.
...
> - if (attr_count <= 0) {
> - dev_err(&pdev->dev,
> - "failed to find any supported usage attributes in report\n");
> + if (attr_count <= 0)
> return -EINVAL;
> - }
What is the meaning of attr_count < 0 value? Does it hold the error code already?
...
> static int magn_3d_parse_report(struct platform_device *pdev,
> - if (*chan_count <= 0) {
> - dev_err(&pdev->dev,
> - "failed to find any magnetic channels setup\n");
> + if (*chan_count <= 0)
> return -EINVAL;
> - }
Same question here.
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2026-11-27 11:09 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 10:33 [PATCH v2 0/7] HID: iio: Unify probe-path logging Sanjay Chitroda via B4 Relay
2026-11-27 10:33 ` [PATCH v2 1/7] iio: Remove redundant probe error messages for HID device drivers Sanjay Chitroda via B4 Relay
2026-11-27 10:33 ` [PATCH v2 2/7] iio: Remove redundant devm_kmemdup() allocation failure messages Sanjay Chitroda via B4 Relay
2026-11-27 10:33 ` [PATCH v2 3/7] iio: magnetometer: hid-sensor-magn-3d: drop redundant probe error messages Sanjay Chitroda via B4 Relay
2026-11-27 11:09 ` Andy Shevchenko [this message]
2026-11-27 10:33 ` [PATCH v2 4/7] iio: Use dev_err_probe() in HID IIO device drivers Sanjay Chitroda via B4 Relay
2026-11-27 10:34 ` [PATCH v2 5/7] iio: add probe error messages to hid humidity and temperature drivers Sanjay Chitroda via B4 Relay
2026-11-27 10:34 ` [PATCH v2 6/7] iio: Simplify trigger setup error checks Sanjay Chitroda via B4 Relay
2026-11-27 10:34 ` [PATCH v2 7/7] iio: Simplify callback registration " Sanjay Chitroda via B4 Relay
2026-11-27 11:11 ` [PATCH v2 0/7] HID: iio: Unify probe-path logging Andy Shevchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=awlkzVRCTNaA4-gJ@ashevche-desk.local \
--to=andriy.shevchenko@intel.com \
--cc=andy@kernel.org \
--cc=dlechner@baylibre.com \
--cc=jic23@kernel.org \
--cc=jikos@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nuno.sa@analog.com \
--cc=sanjayembeddedse@gmail.com \
--cc=srinivas.pandruvada@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox