RE: [PATCH v2] media: imx208: Add imx208 camera sensor driver

2018-07-31 Thread Chen, Ping-chung
Hi Tomasz, Please check my comments below. >Hi Ping-chung, >On Mon, Jul 30, 2018 at 6:19 PM Ping-chung Chen >wrote: > > From: "Chen, Ping-chung" > > Add a V4L2 sub-device driver for the Sony IMX208 image sensor. > This is a camera sensor using the I2C bus for control and the > CSI-2 bus for

Re: [PATCH v2] media: imx208: Add imx208 camera sensor driver

2018-07-30 Thread Tomasz Figa
On Tue, Jul 31, 2018 at 12:54 PM Chen, Ping-chung wrote: > > Hi Tomasz, > > >-Original Message- > > +/* Get bayer order based on flip setting. */ static __u32 > > +imx208_get_format_code(struct imx208 *imx208) > > >Why not just "u32"? > > Its return value will be assigned to the variable

RE: [PATCH v2] media: imx208: Add imx208 camera sensor driver

2018-07-30 Thread Chen, Ping-chung
Hi Tomasz, >-Original Message- > +/* Get bayer order based on flip setting. */ static __u32 > +imx208_get_format_code(struct imx208 *imx208) >Why not just "u32"? Its return value will be assigned to the variable code which belongs to the structure v4l2_subdev_mbus_code_enum, and the

RE: [PATCH v2] media: imx208: Add imx208 camera sensor driver

2018-07-30 Thread Chen, Ping-chung
@vger.kernel.org; Yeh, Andy ; Lai, Jim ; tf...@google.com; grund...@chromium.org; Mani, Rajmohan Subject: Re: [PATCH v2] media: imx208: Add imx208 camera sensor driver Hi Ping-chung, On Mon, Jul 30, 2018 at 05:26:39PM +0800, Ping-chung Chen wrote: > From: "Chen, Ping-chung" > > Ad

Re: [PATCH v2] media: imx208: Add imx208 camera sensor driver

2018-07-30 Thread Tomasz Figa
On Mon, Jul 30, 2018 at 8:39 PM Sakari Ailus wrote: > > Hi Tomasz, > > On Mon, Jul 30, 2018 at 07:19:56PM +0900, Tomasz Figa wrote: > ... > > > +static int imx208_set_ctrl(struct v4l2_ctrl *ctrl) > > > +{ > > > + struct imx208 *imx208 = > > > + container_of(ctrl->handler,

Re: [PATCH v2] media: imx208: Add imx208 camera sensor driver

2018-07-30 Thread Sakari Ailus
Hi Tomasz, On Mon, Jul 30, 2018 at 07:19:56PM +0900, Tomasz Figa wrote: ... > > +static int imx208_set_ctrl(struct v4l2_ctrl *ctrl) > > +{ > > + struct imx208 *imx208 = > > + container_of(ctrl->handler, struct imx208, ctrl_handler); > > + struct i2c_client *client =

Re: [PATCH v2] media: imx208: Add imx208 camera sensor driver

2018-07-30 Thread Sakari Ailus
Hi Ping-chung, On Mon, Jul 30, 2018 at 05:26:39PM +0800, Ping-chung Chen wrote: > From: "Chen, Ping-chung" > > Add a V4L2 sub-device driver for the Sony IMX208 image sensor. > This is a camera sensor using the I2C bus for control and the > CSI-2 bus for data. > > Signed-off-by: Ping-Chung Chen

Re: [PATCH v2] media: imx208: Add imx208 camera sensor driver

2018-07-30 Thread Tomasz Figa
Hi Ping-chung, On Mon, Jul 30, 2018 at 6:19 PM Ping-chung Chen wrote: > > From: "Chen, Ping-chung" > > Add a V4L2 sub-device driver for the Sony IMX208 image sensor. > This is a camera sensor using the I2C bus for control and the > CSI-2 bus for data. > Please see my comments inline. [snip] >