mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>,
	Kieran Bingham <kbingham@kernel.org>
Cc: "Linux Media Mailing List" <linux-media@vger.kernel.org>,
	Linux-Renesas <linux-renesas-soc@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"Laurent Pinchart" <laurent.pinchart@ideasonboard.com>,
	"Sakari Ailus" <sakari.ailus@iki.fi>,
	"Niklas Söderlund" <niklas.soderlund@ragnatech.se>
Subject: Re: [PATCH v4 1/2] media: i2c: adv748x: add adv748x driver
Date: Tue, 13 Jun 2017 10:32:15 +0100	[thread overview]
Message-ID: <c80cbe50-047e-3e54-94ac-5d4fa2a8c6e4@ideasonboard.com> (raw)
In-Reply-To: <CAMuHMdXarryPs6Fq1ZxorztbqD15W3+0UYnHVQs4pNNVtV=XNw@mail.gmail.com>



On 13/06/17 10:24, Geert Uytterhoeven wrote:
> Hi Kieran,
> 
> On Tue, Jun 13, 2017 at 2:35 AM, Kieran Bingham <kbingham@kernel.org> wrote:
>> From: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
>>
>> Provide support for the ADV7481 and ADV7482.
>>
>> The driver is modelled with 4 subdevices to allow simultaneous streaming
>> from the AFE (Analog front end) and HDMI inputs though two CSI TX
>> entities.
>>
>> The HDMI entity is linked to the TXA CSI bus, whilst the AFE is linked
>> to the TXB CSI bus.
>>
>> The driver is based on a prototype by Koji Matsuoka in the Renesas BSP,
>> and an earlier rework by Niklas Söderlund.
>>
>> Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
> 
>> --- /dev/null
>> +++ b/drivers/media/i2c/adv748x/adv748x-hdmi.c
> 
>> +static int adv748x_hdmi_set_pixelrate(struct adv748x_hdmi *hdmi)
>> +{
>> +       struct v4l2_subdev *tx;
>> +       struct v4l2_dv_timings timings;
>> +       struct v4l2_bt_timings *bt = &timings.bt;
>> +       unsigned int fps;
>> +
>> +       tx = adv748x_get_remote_sd(&hdmi->pads[ADV748X_HDMI_SOURCE]);
>> +       if (!tx)
>> +               return -ENOLINK;
>> +
>> +       adv748x_hdmi_query_dv_timings(&hdmi->sd, &timings);
>> +
>> +       fps = DIV_ROUND_CLOSEST(bt->pixelclock,
>> +                               V4L2_DV_BT_FRAME_WIDTH(bt) *
>> +                               V4L2_DV_BT_FRAME_HEIGHT(bt));
> 
> On arm32:
> 
>     drivers/built-in.o: In function `adv748x_hdmi_set_pixelrate':
>     :(.text+0x1b8b1c): undefined reference to `__aeabi_uldivmod'
> 
> v4l2_bt_timings.pixelclock is u64, so you should use DIV_ROUND_CLOSEST_ULL()
> instead.

Aha, thanks.

/me ponders why I didn't get spammed from the bot-builders about this?

Fix applied locally ready for v5.

Would you like the remote updated for renesas-drivers or will you patch locally?

--
Kieran

> Gr{oetje,eeting}s,
> 
>                         Geert
> 
> --
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
> 
> In personal conversations with technical people, I call myself a hacker. But
> when I'm talking to journalists I just say "programmer" or something like that.
>                                 -- Linus Torvalds
> 

  reply	other threads:[~2017-06-13  9:32 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-13  0:35 [PATCH v4 0/2] ADV748x HDMI/Analog video receiver Kieran Bingham
2017-06-13  0:35 ` [PATCH v4 1/2] media: i2c: adv748x: add adv748x driver Kieran Bingham
2017-06-13  7:33   ` Niklas Söderlund
2017-06-13 12:22     ` Kieran Bingham
2017-06-13  9:24   ` Geert Uytterhoeven
2017-06-13  9:32     ` Kieran Bingham [this message]
2017-06-13  9:38       ` Geert Uytterhoeven
2017-06-19  9:13   ` Hans Verkuil
2017-06-26 15:14     ` Kieran Bingham
2017-06-26 15:36       ` Hans Verkuil
2017-06-26 16:00       ` Laurent Pinchart
2017-06-13  0:35 ` [PATCH v4 2/2] arm64: dts: renesas: salvator-x: Add ADV7482 support Kieran Bingham
2017-06-14  9:04   ` Simon Horman
2017-06-14  9:11     ` Kieran Bingham
2017-06-14  9:39   ` Geert Uytterhoeven
2017-06-14  9:43     ` Kieran Bingham
2017-06-14 11:33       ` Geert Uytterhoeven

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=c80cbe50-047e-3e54-94ac-5d4fa2a8c6e4@ideasonboard.com \
    --to=kieran.bingham+renesas@ideasonboard.com \
    --cc=geert@linux-m68k.org \
    --cc=kbingham@kernel.org \
    --cc=kieran.bingham@ideasonboard.com \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=niklas.soderlund@ragnatech.se \
    --cc=sakari.ailus@iki.fi \
    /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®