Re: [PATCH] drm/exynos/ipp: Replace struct timeval usage
Hi Tina, On Mon, Jun 01, 2015 at 08:43:08AM +0530, Tina Ruchandani wrote: 'struct timeval' uses a 32-bit seconds representation which will overflow in the year 2038 and beyond. This patch replaces the use of struct timeval with struct timespec64 which uses a 64-bit seconds representation and is y2038 safe. The patch is part of a larger effort to remove all 32-bit timekeeping variables (timeval, time_t and timespec) from the kernel. Your sing-off is missing. baruch -- http://baruch.siach.name/blog/ ~. .~ Tk Open Systems =}ooO--U--Ooo{= - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il - -- To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH v5 04/10] V4L: Add driver for s5k6a3 image sensor
Hi Sylwester, On Tue, Feb 25, 2014 at 10:46:58AM +0100, Sylwester Nawrocki wrote: On 24/02/14 20:38, Baruch Siach wrote: On Mon, Feb 24, 2014 at 06:35:16PM +0100, Sylwester Nawrocki wrote: This patch adds subdev driver for Samsung S5K6A3 raw image sensor. As it is intended at the moment to be used only with the Exynos FIMC-IS (camera ISP) subsystem it is pretty minimal subdev driver. It doesn't do any I2C communication since the sensor is controlled by the ISP and its own firmware. This driver, if needed, can be updated in future into a regular subdev driver where the main CPU communicates with the sensor directly. Signed-off-by: Sylwester Nawrocki s.nawro...@samsung.com Acked-by: Kyungmin Park kyungmin.p...@samsung.com [...] +static int s5k6a3_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) +{ +struct v4l2_mbus_framefmt *format = v4l2_subdev_get_try_format(fh, 0); + +*format = s5k6a3_formats[0]; +format-width = S5K6A3_DEFAULT_WIDTH; +format-height = S5K6A3_DEFAULT_HEIGHT; + +return 0; +} + +static const struct v4l2_subdev_internal_ops s5k6a3_sd_internal_ops = { +.open = s5k6a3_open, +}; Where is this used? This will be called when user process opens the corresponding /dev/v4l-subdev* device node. More details on the v4l2 sub-device interface can be found at [1], [2]. The device node is created by an aggregate media device driver, once all required sub-devices are registered to it. The above v4l2_subdev_internal_ops::open() implementation is pretty simple, it just sets V4L2_SUBDEV_FORMAT_TRY format to some initial default value. That's a per file handle value, so each process opening a set of sub-devices can try pipeline configuration independently. [1] http://linuxtv.org/downloads/v4l-dvb-apis/subdev.html [2] http://linuxtv.org/downloads/v4l-dvb-apis/vidioc-subdev-g-fmt.html Thanks for the explanation. However, I've found no reference to the s5k6a3_sd_internal_ops struct in the driver code. There surly has to be at least one reference for the upper layer to access these ops. baruch -- http://baruch.siach.name/blog/ ~. .~ Tk Open Systems =}ooO--U--Ooo{= - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il - -- To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH v5 04/10] V4L: Add driver for s5k6a3 image sensor
Hi Sylwester, On Mon, Feb 24, 2014 at 06:35:16PM +0100, Sylwester Nawrocki wrote: This patch adds subdev driver for Samsung S5K6A3 raw image sensor. As it is intended at the moment to be used only with the Exynos FIMC-IS (camera ISP) subsystem it is pretty minimal subdev driver. It doesn't do any I2C communication since the sensor is controlled by the ISP and its own firmware. This driver, if needed, can be updated in future into a regular subdev driver where the main CPU communicates with the sensor directly. Signed-off-by: Sylwester Nawrocki s.nawro...@samsung.com Acked-by: Kyungmin Park kyungmin.p...@samsung.com [...] +static int s5k6a3_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) +{ + struct v4l2_mbus_framefmt *format = v4l2_subdev_get_try_format(fh, 0); + + *format = s5k6a3_formats[0]; + format-width = S5K6A3_DEFAULT_WIDTH; + format-height = S5K6A3_DEFAULT_HEIGHT; + + return 0; +} + +static const struct v4l2_subdev_internal_ops s5k6a3_sd_internal_ops = { + .open = s5k6a3_open, +}; Where is this used? baruch -- http://baruch.siach.name/blog/ ~. .~ Tk Open Systems =}ooO--U--Ooo{= - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il - -- To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 1/3] include: fb: Add definiton for window positioning structure
Hi Ajay, On Tue, Sep 20, 2011 at 11:30:39AM -0400, Ajay Kumar wrote: This patch adds a data structure definiton to hold framebuffer windows/planes. An ioctl number is also added to provide user access to change window position dynamically. [snip] +/* Window overlaying */ +struct fb_overlay_win_pos { + __u32 win_pos_x;/* x-offset from LCD(0,0) where window starts */ + __u32 win_pos_y;/* y-offset from LCD(0,0) where window starts */ +}; Why not allow negative offsets where the left or upper part of the framebuffer is hidden? baruch -- ~. .~ Tk Open Systems =}ooO--U--Ooo{= - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il - -- To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 1/3] include: fb: Add definiton for window positioning structure
Hi Ajay, On Tue, Sep 20, 2011 at 08:56:57PM +0530, Ajay kumar wrote: Hi Baruch, On Tue, Sep 20, 2011 at 4:54 PM, Baruch Siach bar...@tkos.co.il wrote: Hi Ajay, On Tue, Sep 20, 2011 at 11:30:39AM -0400, Ajay Kumar wrote: This patch adds a data structure definiton to hold framebuffer windows/planes. An ioctl number is also added to provide user access to change window position dynamically. [snip] +/* Window overlaying */ +struct fb_overlay_win_pos { + __u32 win_pos_x; /* x-offset from LCD(0,0) where window starts */ + __u32 win_pos_y; /* y-offset from LCD(0,0) where window starts */ +}; Why not allow negative offsets where the left or upper part of the framebuffer is hidden? Thanks for pointing it out. Are there drivers which place the overlay windows such that some part of the window is hidden from being displayed on the screen? I don't know. However, since this is new userspace ABI which should stay compatible forever, we should make sure to do it right. Using __s32 instead of __u32 won't limit us in the future. baruch -- ~. .~ Tk Open Systems =}ooO--U--Ooo{= - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il - -- To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html