From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: linux-media@vger.kernel.org,
Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>,
Sakari Ailus <sakari.ailus@iki.fi>,
Sylwester Nawrocki <snawrocki@kernel.org>,
Hans Verkuil <hans.verkuil@cisco.com>
Subject: Re: [PATCH 4/4] atomisp2: don't set driver_version anymore
Date: Fri, 21 Jul 2017 13:10:34 +0300 [thread overview]
Message-ID: <2861836.LoGWVYMxAE@avalon> (raw)
In-Reply-To: <20170721090234.6501-5-hverkuil@xs4all.nl>
Hi Hans,
On Friday 21 Jul 2017 11:02:34 Hans Verkuil wrote:
> From: Hans Verkuil <hans.verkuil@cisco.com>
>
> This is now set by media_device_init.
>
> Drop the print of driver_version in the error message: the driver
> version is 1) not yet set at this point (the media_device_init call
> comes later AFAICS), and 2) irrelevant here, since it is the hw_revision
> that is important, not the driver version (which is identical to the
> kernel version anyway).
>
> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
> ---
> drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c
> b/drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c index
> 2f49562377e6..29387c03fae9 100644
> --- a/drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c
> +++ b/drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c
> @@ -1100,8 +1100,7 @@ atomisp_load_firmware(struct atomisp_device *isp)
>
> if (!fw_path) {
> dev_err(isp->dev,
> - "Unsupported driver_version 0x%x, hw_revision 0x%x\n",
> - isp->media_dev.driver_version,
> + "Unsupported hw_revision 0x%x\n",
Nitpicking, you can now merge the first two lines.
> isp->media_dev.hw_revision);
> return NULL;
> }
> @@ -1249,8 +1248,6 @@ static int atomisp_pci_probe(struct pci_dev *dev,
> /* This is not a true PCI device on SoC, so the delay is not needed.
*/
> isp->pdev->d3_delay = 0;
>
> - isp->media_dev.driver_version = LINUX_VERSION_CODE;
> -
> switch (id->device & ATOMISP_PCI_DEVICE_SOC_MASK) {
> case ATOMISP_PCI_DEVICE_SOC_MRFLD:
> isp->media_dev.hw_revision =
--
Regards,
Laurent Pinchart
prev parent reply other threads:[~2017-07-21 10:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-21 9:02 [PATCH 0/4] media: set driver_version in media_device_init Hans Verkuil
2017-07-21 9:02 ` [PATCH 1/4] media-device: " Hans Verkuil
2017-07-21 10:12 ` Laurent Pinchart
2017-07-21 10:18 ` Hans Verkuil
2017-07-21 9:02 ` [PATCH 2/4] s3c-camif: don't set driver_version anymore Hans Verkuil
2017-07-21 9:02 ` [PATCH 3/4] uvc: " Hans Verkuil
2017-07-21 10:10 ` Laurent Pinchart
2017-07-21 9:02 ` [PATCH 4/4] atomisp2: " Hans Verkuil
2017-07-21 10:10 ` Laurent Pinchart [this message]
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=2861836.LoGWVYMxAE@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=hans.verkuil@cisco.com \
--cc=hverkuil@xs4all.nl \
--cc=laurent.pinchart+renesas@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=sakari.ailus@iki.fi \
--cc=snawrocki@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.