From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: "Krzysztof Hałasa" <khalasa@piap.pl>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>,
Shawn Guo <shawnguo@kernel.org>,
Sascha Hauer <s.hauer@pengutronix.de>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Fabio Estevam <festevam@gmail.com>,
linux-media@vger.kernel.org, imx@lists.linux.dev,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] i.MX8 ISI crossbar: simplify a couple of error messages
Date: Fri, 9 May 2025 11:15:49 +0200 [thread overview]
Message-ID: <20250509091549.GD28896@pendragon.ideasonboard.com> (raw)
In-Reply-To: <m3plgi9pwu.fsf@t19.piap.pl>
Hi Krzysztof,
On Fri, May 09, 2025 at 09:58:09AM +0200, Krzysztof Hałasa wrote:
> I guess these messages were split from a single function. Or was it
> for saving memory? :-)
The goal was indeed to save memory.
> Signed-off-by: Krzysztof Hałasa <khalasa@piap.pl>
>
> diff --git a/drivers/media/platform/nxp/imx8-isi/imx8-isi-crossbar.c b/drivers/media/platform/nxp/imx8-isi/imx8-isi-crossbar.c
> index 93a55c97cd17..b6c7f114f9ed 100644
> --- a/drivers/media/platform/nxp/imx8-isi/imx8-isi-crossbar.c
> +++ b/drivers/media/platform/nxp/imx8-isi/imx8-isi-crossbar.c
> @@ -352,9 +352,8 @@ static int mxc_isi_crossbar_enable_streams(struct v4l2_subdev *sd,
> sink_streams);
> if (ret) {
> dev_err(xbar->isi->dev,
> - "failed to %s streams 0x%llx on '%s':%u: %d\n",
> - "enable", sink_streams, remote_sd->name,
> - remote_pad, ret);
> + "failed to enable streams 0x%llx on '%s':%u: %d\n",
> + sink_streams, remote_sd->name, remote_pad, ret);
> mxc_isi_crossbar_gasket_disable(xbar, sink_pad);
> return ret;
> }
> @@ -392,9 +391,8 @@ static int mxc_isi_crossbar_disable_streams(struct v4l2_subdev *sd,
> sink_streams);
> if (ret)
> dev_err(xbar->isi->dev,
> - "failed to %s streams 0x%llx on '%s':%u: %d\n",
> - "disable", sink_streams, remote_sd->name,
> - remote_pad, ret);
> + "failed to disable streams 0x%llx on '%s':%u: %d\n",
> + sink_streams, remote_sd->name, remote_pad, ret);
>
> mxc_isi_crossbar_gasket_disable(xbar, sink_pad);
> }
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2025-05-09 9:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-09 7:58 [PATCH] i.MX8 ISI crossbar: simplify a couple of error messages Krzysztof Hałasa
2025-05-09 9:15 ` Laurent Pinchart [this message]
2025-05-20 11:19 ` Krzysztof Hałasa
2025-05-21 10:29 ` Laurent Pinchart
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=20250509091549.GD28896@pendragon.ideasonboard.com \
--to=laurent.pinchart@ideasonboard.com \
--cc=festevam@gmail.com \
--cc=imx@lists.linux.dev \
--cc=kernel@pengutronix.de \
--cc=khalasa@piap.pl \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.