From: Andy Shevchenko <andriy.shevchenko@intel.com>
To: Sanjay Chitroda <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: Mon, 30 Nov 2026 19:16:13 +0200 [thread overview]
Message-ID: <aw2vXdjLY4UGy-8P@ashevche-desk.local> (raw)
In-Reply-To: <6D3C4DCD-559F-4552-ABAB-C37BCB84F6AD@gmail.com>
On Mon, Nov 30, 2026 at 10:34:24PM +0530, Sanjay Chitroda wrote:
> On 27 November 2026 4:39:01 pm IST, Andy Shevchenko <andriy.shevchenko@intel.com> wrote:
> >On Fri, Nov 27, 2026 at 04:03:58PM +0530, Sanjay Chitroda via B4 Relay wrote:
...
> >> - 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?
> >
>
> attr_count is not the error code. it's incremented for each supported
> magnetic channel usage found in the HID report.
What is the negative meaning?
...
> >> 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.
>
> *chan_count is the number of IIO channels successfully configured from the
> discovered HID attributes.
It doesn't answer the question.
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2026-11-30 17:16 UTC|newest]
Thread overview: 13+ 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
2026-11-30 17:04 ` Sanjay Chitroda
2026-11-30 17:16 ` 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
2026-11-28 0:47 ` Jonathan Cameron
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=aw2vXdjLY4UGy-8P@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
all inboxes | Powered by JetHome®