From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Marco Felsch <m.felsch@pengutronix.de>
Cc: Luis Chamberlain <mcgrof@kernel.org>,
Russ Weight <russ.weight@linux.dev>,
"Rafael J. Wysocki" <rafael@kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Kamel Bouhara <kamel.bouhara@bootlin.com>,
Marco Felsch <kernel@pengutronix.de>,
Henrik Rydberg <rydberg@bitmath.org>,
Danilo Krummrich <dakr@redhat.com>,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
linux-input@vger.kernel.org
Subject: Re: [PATCH v2 4/4] Input: Add TouchNetix aXiom I2C Touchscreen support
Date: Thu, 29 May 2025 06:40:05 +0200 [thread overview]
Message-ID: <2025052902-dizzy-baggie-15ee@gregkh> (raw)
In-Reply-To: <20250529-v6-10-topic-touchscreen-axiom-v2-4-a5edb105a600@pengutronix.de>
On Thu, May 29, 2025 at 12:08:45AM +0200, Marco Felsch wrote:
> + if (!entry->info)
> + WARN(1, "Unsupported usage u%x used, driver bug!", i);
You just crashed the system and caused all data to be lost if this is
ever hit :(
As you did detect this, please handle the error and recover. It's a bit
rude for a single i2c driver to take down a whole system, right?
> +#define AXIOM_SIMPLE_FW_DEVICE_ATTR(attr) \
> + static ssize_t \
> + fw_ ## attr ## _show(struct device *dev, \
> + struct device_attribute *_attr, char *buf) \
> + { \
> + struct i2c_client *i2c = to_i2c_client(dev); \
> + struct axiom_data *ts = i2c_get_clientdata(i2c); \
> + \
> + return sprintf(buf, "%u\n", ts->fw_##attr); \
sysfs_emit() please for all sysfs show functions.
> + axiom_u42_get_touchslots(ts);
> + if (!ts->num_slots && update_in_process) {
> + input_free_device(input);
> + /*
> + * Skip input device registration but don't throw an error to
> + * not abort the update since some FW updates require a
> + * following CFG update to re-initialize the touchslot handling.
> + */
> + if (update_in_process) {
> + dev_info(dev, "No touchslots found after FW or CFG update, skip registering input device\n");
Why is this info? What can a user do with this? Shouldn't this be a
dev_warn() call at the least?
> + return 0;
You return success, but the device is NOT set up properly, how is that
going to work?
thanks,
greg k-h
next prev parent reply other threads:[~2025-05-29 4:40 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-28 22:08 [PATCH v2 0/4] Input: Add support for TouchNetix aXiom touchscreen Marco Felsch
2025-05-28 22:08 ` [PATCH v2 1/4] firmware_loader: expand firmware error codes with skip error Marco Felsch
2025-06-05 1:58 ` Russ Weight
2025-06-27 17:28 ` Marco Felsch
2025-05-28 22:08 ` [PATCH v2 2/4] dt-bindings: vendor-prefixes: Add TouchNetix AS Marco Felsch
2025-05-29 7:29 ` Krzysztof Kozlowski
2025-05-29 7:30 ` Krzysztof Kozlowski
2025-05-30 8:30 ` Marco Felsch
2025-05-28 22:08 ` [PATCH v2 3/4] dt-bindings: input: Add TouchNetix axiom touchscreen Marco Felsch
2025-05-29 7:33 ` Krzysztof Kozlowski
2025-05-30 8:45 ` Marco Felsch
2025-06-02 8:17 ` Krzysztof Kozlowski
2025-05-29 7:36 ` Krzysztof Kozlowski
2025-05-30 9:48 ` Marco Felsch
2025-05-28 22:08 ` [PATCH v2 4/4] Input: Add TouchNetix aXiom I2C Touchscreen support Marco Felsch
2025-05-29 4:40 ` Greg Kroah-Hartman [this message]
2025-05-30 9:40 ` Marco Felsch
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=2025052902-dizzy-baggie-15ee@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=akpm@linux-foundation.org \
--cc=conor+dt@kernel.org \
--cc=dakr@redhat.com \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=kamel.bouhara@bootlin.com \
--cc=kernel@pengutronix.de \
--cc=krzk+dt@kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=m.felsch@pengutronix.de \
--cc=mcgrof@kernel.org \
--cc=rafael@kernel.org \
--cc=robh@kernel.org \
--cc=russ.weight@linux.dev \
--cc=rydberg@bitmath.org \
/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