Re: [PATCH v5 00/16] Allwinner MIPI CSI-2 support for A31/V3s/A83T

2021-05-26 Thread Sakari Ailus
~ > > > > Can you rebase this series? > > Thanks for letting me know, I'll look into this for the next iteration. > > > I also need Acked-by's for patches 1-3 from one of the PHY maintainers, but > > as > > you mentioned this mig

Re: [PATCH] staging: media: atomisp: pci: reposition braces as per coding style

2021-04-30 Thread Sakari Ailus
Hi Deepak, On Fri, Apr 30, 2021 at 10:34:37PM +0530, Deepak R Varma wrote: > On Fri, Apr 30, 2021 at 07:33:27PM +0300, Sakari Ailus wrote: > > Hi Deepak, > > > > If you're touching all these lines, I might do a little more. Please see > > the comments below. &

Re: [PATCH] staging: media: atomisp: pci: reposition braces as per coding style

2021-04-30 Thread Sakari Ailus
> > @@ -393,7 +389,8 @@ static bool buffers_needed(struct ia_css_pipe *pipe) > > int > allocate_mipi_frames(struct ia_css_pipe *pipe, > - struct ia_css_stream_info *info) { > + struct ia_css_stream_info *info) > +{ > int err = -EINVAL;

Re: [PATCH 11/14] dt-bindings: media: i2c: Add A83T MIPI CSI-2 bindings documentation

2020-11-05 Thread Sakari Ailus
; > + > +mipi_csi2_in: port@0 { > +reg = <0>; > + > +mipi_csi2_in_ov8865: endpoint { > + bus-type = <4>; /* MIPI CSI-2 D-PHY */ > +clock-lanes = <0>; > +data-lanes = <1 2 3 4>;

Re: [PATCH 08/14] media: sunxi: Add support for the A31 MIPI CSI-2 controller

2020-11-05 Thread Sakari Ailus
SUN6I_MIPI_CSI2_CH_INT_EN_FRAME_SYNC_ERR BIT(24) > +#define SUN6I_MIPI_CSI2_CH_INT_EN_EMB_DATA BIT(18) > +#define SUN6I_MIPI_CSI2_CH_INT_EN_PF BIT(17) > +#define SUN6I_MIPI_CSI2_CH_INT_EN_PH_UPDATE BIT(16) > +#define SUN6I_MIPI_CSI2_CH_INT_EN_LINE_START_SYNCBIT(11) > +#define SUN6I_MIPI_CSI2_CH_INT_EN_LINE_END_SYNC BIT(10) > +#define SUN6I_MIPI_CSI2_CH_INT_EN_FRAME_START_SYNC BIT(9) > +#define SUN6I_MIPI_CSI2_CH_INT_EN_FRAME_END_SYNC BIT(8) > +#define SUN6I_MIPI_CSI2_CH_INT_EN_FIFO_OVER BIT(0) > + > +#define SUN6I_MIPI_CSI2_CH_INT_PD_REG0x58 > +#define SUN6I_MIPI_CSI2_CH_INT_PD_EOT_ERRBIT(29) > +#define SUN6I_MIPI_CSI2_CH_INT_PD_CHKSUM_ERR BIT(28) > +#define SUN6I_MIPI_CSI2_CH_INT_PD_ECC_WRNBIT(27) > +#define SUN6I_MIPI_CSI2_CH_INT_PD_ECC_ERRBIT(26) > +#define SUN6I_MIPI_CSI2_CH_INT_PD_LINE_SYNC_ERR BIT(25) > +#define SUN6I_MIPI_CSI2_CH_INT_PD_FRAME_SYNC_ERR BIT(24) > +#define SUN6I_MIPI_CSI2_CH_INT_PD_EMB_DATA BIT(18) > +#define SUN6I_MIPI_CSI2_CH_INT_PD_PF BIT(17) > +#define SUN6I_MIPI_CSI2_CH_INT_PD_PH_UPDATE BIT(16) > +#define SUN6I_MIPI_CSI2_CH_INT_PD_LINE_START_SYNCBIT(11) > +#define SUN6I_MIPI_CSI2_CH_INT_PD_LINE_END_SYNC BIT(10) > +#define SUN6I_MIPI_CSI2_CH_INT_PD_FRAME_START_SYNC BIT(9) > +#define SUN6I_MIPI_CSI2_CH_INT_PD_FRAME_END_SYNC BIT(8) > +#define SUN6I_MIPI_CSI2_CH_INT_PD_FIFO_OVER BIT(0) > + > +#define SUN6I_MIPI_CSI2_CH_DT_TRIGGER_REG0x60 > +#define SUN6I_MIPI_CSI2_CH_CUR_PH_REG0x70 > +#define SUN6I_MIPI_CSI2_CH_ECC_REG 0x74 > +#define SUN6I_MIPI_CSI2_CH_CKS_REG 0x78 > +#define SUN6I_MIPI_CSI2_CH_FRAME_NUM_REG 0x7c > +#define SUN6I_MIPI_CSI2_CH_LINE_NUM_REG 0x80 > + > +#define SUN6I_MIPI_CSI2_CH_REG(reg, ch) \ > + (SUN6I_MIPI_CSI2_CH_BASE + SUN6I_MIPI_CSI2_CH_OFFSET * (ch) + (reg)) > + > +enum mipi_csi2_data_type { > + MIPI_CSI2_DATA_TYPE_RAW8= 0x2a, > + MIPI_CSI2_DATA_TYPE_RAW10 = 0x2b, > + MIPI_CSI2_DATA_TYPE_RAW12 = 0x2c, > +}; > + > +struct sun6i_mipi_csi2_video { > + struct v4l2_fwnode_endpoint endpoint; > + struct v4l2_subdev subdev; > + struct media_pad pads[2]; > + > + struct v4l2_async_subdev subdev_async; > + struct v4l2_async_notifier notifier; > + > + struct v4l2_subdev *remote_subdev; > + u32 remote_pad_index; > + u32 mbus_code; > +}; > + > +struct sun6i_mipi_csi2_dev { > + struct device *dev; > + > + struct regmap *regmap; > + struct clk *clk_mod; > + struct reset_control *reset; > + struct phy *dphy; > + > + struct sun6i_mipi_csi2_video video; > +}; > + > +#define sun6i_mipi_csi2_subdev_video(subdev) \ > + container_of(subdev, struct sun6i_mipi_csi2_video, subdev) > + > +#define sun6i_mipi_csi2_video_dev(video) \ > + container_of(video, struct sun6i_mipi_csi2_dev, video) > + > +#endif /* __SUN6I_MIPI_CSI2_H__ */ -- Regards, Sakari Ailus ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH 07/14] dt-bindings: media: i2c: Add A31 MIPI CSI-2 bindings documentation

2020-10-30 Thread Sakari Ailus
#size-cells = <0>; > + > +mipi_csi2_in: port@0 { > +reg = <0>; > + > +mipi_csi2_in_ov5648: endpoint { > + bus-type = <4>; /* MIPI CSI-2 D-PHY */ > +clock-lanes =

Re: [PATCH v3 15/56] media: fix kernel-doc markups

2020-10-23 Thread Sakari Ailus
markups should use this format: > identifier - description > > Signed-off-by: Mauro Carvalho Chehab On IPU3 and V4L2 bits: Acked-by: Sakari Ailus -- Regards, Sakari Ailus ___ devel mailing list de...@lin

Re: [RFC PATCH] Add bridge driver to connect sensors to CIO2 device via software nodes on ACPI platforms

2020-09-18 Thread Sakari Ailus
Hi Andy, On Thu, Sep 17, 2020 at 03:45:14PM +0300, Andy Shevchenko wrote: > On Thu, Sep 17, 2020 at 11:52:28AM +0100, Dan Scally wrote: > > On 17/09/2020 11:33, Sakari Ailus wrote: > > > a module and not enlarge everyone's kernel, and the initialisation would > > >

Re: [RFC PATCH] Add bridge driver to connect sensors to CIO2 device via software nodes on ACPI platforms

2020-09-18 Thread Sakari Ailus
Hi Dan, On Thu, Sep 17, 2020 at 01:49:41PM +0300, Dan Carpenter wrote: > On Thu, Sep 17, 2020 at 01:33:43PM +0300, Sakari Ailus wrote: > > > +static int connect_supported_devices(void) > > > +{ > > > + struct acpi_device *adev; > > > + struct device *de

Re: [RFC PATCH] Add bridge driver to connect sensors to CIO2 device via software nodes on ACPI platforms

2020-09-17 Thread Sakari Ailus
iled to connect any devices\n"); > + goto out; > + } else { > + pr_info("Found %d supported devices\n", bridge.n_sensors); > + } > + > + bridge.cio2 = pci_get_device(PCI_VENDOR_ID_INTEL, CIO2_PCI_ID, NULL); > + if (!bridge.cio2) { > + ret = -ENODEV; > + goto out; > + } > + > + fwnode = software_node_fwnode(_hid_node); > + if (!fwnode) { > + pr_err("Error getting fwnode from cio2 software_node\n"); > + ret = -ENODEV; > + goto out; > + } > + > + /* > + * We store the pci_dev's existing fwnode, beccause in the event we > + * want to reload (I.E. rmmod and insmod) this module we need to give > + * the device its original fwnode back to prevent problems down the > + * line > + */ > + > + bridge.cio2_fwnode = fwnode_handle_get(bridge.cio2->dev.fwnode); > + > + fwnode->secondary = ERR_PTR(-ENODEV); > + bridge.cio2->dev.fwnode = fwnode; > + > + return 0; > +out: > + cio2_bridge_exit(); > + return ret; > +} > + > +static int cio2_bridge_unregister_sensors(void) > +{ > + int i, j; > + struct sensor *sensor; > + > + for (i = 0; i < bridge.n_sensors; i++) { > + sensor = [i]; > + > + /* give the sensor its original fwnode back */ > + sensor->dev->fwnode = sensor->fwnode; > + fwnode_handle_put(sensor->fwnode); > + put_device(sensor->dev); > + > + for (j = 4; j >= 0; j--) > + software_node_unregister(>swnodes[j]); > + } > + > + return 0; > +} > + > +static void cio2_bridge_exit(void) > +{ > + int ret; > + > + /* Give the pci_dev its original fwnode back */ > + if (bridge.cio2) { > + bridge.cio2->dev.fwnode = bridge.cio2_fwnode; > + fwnode_handle_put(bridge.cio2_fwnode); > + pci_dev_put(bridge.cio2); > + } > + > + ret = cio2_bridge_unregister_sensors(); > + > + if (ret) > + pr_err("An error occurred unregistering the sensors\n"); > + > + software_node_unregister(_hid_node); > +} > + > +module_init(cio2_bridge_init); > +module_exit(cio2_bridge_exit); > + > +MODULE_DESCRIPTION("A bridge driver to connect sensors to CIO2 > infrastructure."); > +MODULE_LICENSE("GPL v2"); > +MODULE_ALIAS("acpi*:INT343E:*"); -- Kind regards, Sakari Ailus ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH] staging: media: ipu3: Replace depracated MSI API.

2020-08-13 Thread Sakari Ailus
, 1, PCI_IRQ_MSI); > > - if (r) { > + if (r < 0) { > dev_err(>dev, "failed to enable MSI (%d)\n", r); > return r; > } I believe fixing this requires also releasing it, i.e. a call to pci_free_irq_vectors(). This seems to have been miss

Re: [PATCH] media: atomisp: Fix a pointer math problem in dump_sp_dmem()

2020-06-16 Thread Sakari Ailus
("media: atomisp: get rid of an iomem abstraction layer") > Signed-off-by: Dan Carpenter Acked-by: Sakari Ailus -- Sakari Ailus ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH] media: atomisp: get rid of a warning message

2020-05-26 Thread Sakari Ailus
ace where we're commenting the code out, in order > to avoid the warning. > > Fixes: 95d1f398c4dc ("media: atomisp: keep the ISP powered on when setting > it") > Signed-off-by: Mauro Carvalho Chehab Acked-by: Sakari Ailus Note that some of this may be needed to pow

Re: [PATCH][next] media: atomisp: fix a handful of spelling mistakes

2020-05-26 Thread Sakari Ailus
On Thu, May 21, 2020 at 08:44:32PM +0100, Colin King wrote: > From: Colin Ian King > > There are several spelling mistakes in various messages and literal > strings. Fix these. > > Signed-off-by: Colin Ian King Acked-by: Sakari Ailus

Re: [PATCH 00/11] Some fixes and cleanups for atomisp driver

2020-05-26 Thread Sakari Ailus
On Mon, May 25, 2020 at 08:55:59AM +0200, Mauro Carvalho Chehab wrote: > The atomisp driver has lots of issues. This series get rid of a few of > them and updates the TODO list to reflect the current status and > provide more details aboug some items. Acked-by: Sakari Ailus -- Sak

Re: [PATCH 09/11] media: atomisp: partially get rid of one abstraction layer

2020-05-26 Thread Sakari Ailus
uAPI structs of this driver use. I'd prefer atomisp_something, ia_css has been used internally, and that probably has been there in later firmware versions (vs. just css). At this point removing the duplication makes sense though, so I'm not proposing changes here. --

Re: [PATCH 06/11] media: atomisp: update TODO list

2020-05-26 Thread Sakari Ailus
ile the driver probes the hardware and reports itself as a > -V4L2 driver, there are still some issues preventing it to > -stream (at least it doesn't with the standard V4L2 applications. > -Didn't test yet with some custom-made app for this driver). > -Solving the related bugs and issues preventing it to work is > -needed. > - > -Limitations: > +Limitations > +=== > > 1. To test the patches, you also need the ISP firmware > > @@ -84,6 +178,8 @@ Limitations: > It will not detect those devices enumerated via ACPI as a field of the > i915 GPU driver. > > + There are some patches adding i915 GPU support floating at the Yocto's > + Aero repository (so far, untested upstream). > + > 4. The driver supports only v2 of the IPU/Camera. It will not work with the > versions of the hardware in other SoCs. > - > -- > 2.26.2 > -- Sakari Ailus ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH] media: ipu3: add a module to probe sensors via ACPI

2020-05-20 Thread Sakari Ailus
Hi Mauro, On Wed, May 20, 2020 at 09:44:00AM +0200, Mauro Carvalho Chehab wrote: > Hi Sakari, > > Em Sun, 17 May 2020 13:36:59 +0300 > Sakari Ailus escreveu: > > > Hi Mauro, > > > > Thanks for the patch. > > Thanks for reviewing it. > > > >

Re: [PATCH] media: ipu3: add a module to probe sensors via ACPI

2020-05-17 Thread Sakari Ailus
NT3479"}, > + {"INT347A"}, > + {"INT347B"}, > + {"OVTI9234"}, > + {"OVTI9734"}, > + {"OVTI8856"}, > + {"OVTIF860"}, > + {}, > +}; > +MODULE_DEVICE_TABLE(acpi, ipu3_acpi_acpi_mat

Re: [RESEND PATCH v3 02/17] media: v4l2-fwnode: Pass notifier to v4l2_async_register_fwnode_subdev()

2020-02-28 Thread Sakari Ailus
Hi Steve, Btw. I think probably a smaller list of recipients would be just fine on the next version. On Fri, Feb 28, 2020 at 10:16:06AM -0800, Steve Longerbeam wrote: > Hi Sakari, > > On 2/25/20 7:07 AM, Sakari Ailus wrote: > > Hi Steve, > > > > On Sat, Feb 15, 2020

Re: [RESEND PATCH v3 02/17] media: v4l2-fwnode: Pass notifier to v4l2_async_register_fwnode_subdev()

2020-02-26 Thread Sakari Ailus
On Wed, Feb 26, 2020 at 03:50:04PM -0800, Steve Longerbeam wrote: > Hi Sakari, > > Thanks for the feedback. > > > On 2/25/20 7:07 AM, Sakari Ailus wrote: > > Hi Steve, > > > > On Sat, Feb 15, 2020 at 11:41:21AM -0800, Steve Longerbeam wrote: &g

Re: [RESEND PATCH v3 02/17] media: v4l2-fwnode: Pass notifier to v4l2_async_register_fwnode_subdev()

2020-02-25 Thread Sakari Ailus
c | 7 ++- > drivers/staging/media/imx/imx7-media-csi.c | 7 ++- > drivers/staging/media/imx/imx7-mipi-csis.c | 9 - > include/media/v4l2-fwnode.h| 12 > 6 files changed, 36 insertions(+), 18 deletions(-) -- Kind regards, Sakari Ailus _

Re: [PATCH v3 1/3] ARM: dts: imx6ul: Add csi node

2019-08-14 Thread Sakari Ailus
names = "mclk"; > + status = "disabled"; > + }; > + > lcdif: lcdif@21c8000 { > compatible = "fsl,imx6ul-lcdif", > "fsl,imx28-lcd

Re: [PATCH v3 11/41] media/v4l2-core/mm: convert put_page() to put_user_page*()

2019-08-07 Thread Sakari Ailus
s is part a tree-wide conversion, as described in commit fc1d8e7cca2d > ("mm: introduce put_user_page*(), placeholder versions"). > > Cc: Mauro Carvalho Chehab > Cc: Kees Cook > Cc: Hans Verkuil > Cc: Sakari Ailus > Cc: Jan Kara > Cc: Robin Murphy >

Re: [PATCH] media: staging: ipu3: Enable IOVA API only when IOMMU support is enabled

2019-07-24 Thread Sakari Ailus
UPPORT but that's not declared in its Kconfig entry. I wonder if adding that would be the right way to fix this. Cc'ing the IOMMU list. > select VIDEOBUF2_DMA_SG > help > This is the Video4Linux2 driver for Intel IPU3 image processing unit, -- Regards, Sakari Ailus

Re: [PATCH v2] staging: media: sunxi: Add bool cast to value

2019-07-22 Thread Sakari Ailus
ng about the type mismatch > first, especially since find_format doesn't appear to be used anywhere else. > However, now I won't remove check_format and replace it with find_format as > I'd originally planned, since you've said that isn't necessary here. That > leaves the return type issue. > > > > So in the end, I think we should keep the !! and drop the (bool) cast if > > there's > > no particular warning about it. > > Should I send a version 3 that does this? bool was introduced in C99. Converting a non-zero value to boolean will yield true as a result. Please keep the code as-is; it's much easier to read that way. -- Kind regards, Sakari Ailus ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH] media: schedule removal for legacy staging drivers

2019-06-25 Thread Sakari Ailus
; and do give them a rejuvenation shower in order to address the > isues pointed on their TODO lists, be our guest! > > Signed-off-by: Mauro Carvalho Chehab Acked-by: Sakari Ailus -- Sakari Ailus sakari.ai...@linux.intel.com __

Re: [PATCH] staging: media: use help instead of ---help--- in Kconfig

2019-04-23 Thread Sakari Ailus
On Sat, Apr 20, 2019 at 11:04:07AM +, MosesChristopher wrote: > From: Moses Christopher > > - Resolve the following warning from the Kconfig, > "WARNING: prefer 'help' over '---help---' for new help texts" > > Signed-off-by: Moses Christopher Reviewed-b

Re: [PATCH] [v2] media: staging/intel-ipu3: reduce kernel stack usage

2019-03-05 Thread Sakari Ailus
: staging/intel-ipu3: Add css pipeline > programming") > Signed-off-by: Arnd Bergmann > --- > v2: restructure to use 'return -ENOMEM' instead of goto for failed > allocation. Thanks, Arnd! All three applied. -- Sakari Ailus sakari.ai...@linux.intel.com ___

Re: [PATCH] media: staging/intel-ipu3: reduce kernel stack usage

2019-03-05 Thread Sakari Ailus
On Tue, Mar 05, 2019 at 09:40:24AM +0100, Arnd Bergmann wrote: > On Tue, Mar 5, 2019 at 8:53 AM Sakari Ailus > wrote: > > On Tue, Mar 05, 2019 at 12:25:18AM +, Cao, Bingbu wrote: > > > > > struct v4

Re: [PATCH] media: staging/intel-ipu3: reduce kernel stack usage

2019-03-04 Thread Sakari Ailus
; - return -EINVAL; > > + ret = -EINVAL; > > + goto out; > > } > > *fmts[i] = q[i].fmt.mpix; > > } > > @@ -1859,7 +1869

Re: [PATCH 2/2] ipu3-mmu: fix some kernel-doc macros

2019-02-19 Thread Sakari Ailus
On Tue, Feb 19, 2019 at 09:00:30AM -0500, Mauro Carvalho Chehab wrote: > Some kernel-doc markups are wrong. fix them. > > Signed-off-by: Mauro Carvalho Chehab Acked-by: Sakari Ailus -- Sakari Ailus sakari.ai...@linux.intel.com ___ deve

Re: [PATCH 1/2] media: ipu3: shut up warnings produced with W=1

2019-02-19 Thread Sakari Ailus
pe-limits) > +ccflags-y += $(call cc-disable-warning, unused-const-variable) I'm preparing patches to address these. Could you wait a little bit more, please? Thanks. -- Kind regards, Sakari Ailus sakari.ai...@linux.intel.com ___ devel maili

Re: [PATCH v12 00/13] media: staging/imx7: add i.MX7 media driver

2019-02-05 Thread Sakari Ailus
ce unregister before ctrl_handler_free > - GPL => GPL v2 > - Fix squash of CSI patches, issue on v11 > - add Acked-by: Sakari Ailus 10--13 > - mipi_s_stream check for ret < 0 and call pm_runtime_put_noidle > - use __maybe_unused in pm function

Re: [PATCH][next] media: staging: intel-ipu3: fix unsigned comparison with < 0

2019-02-04 Thread Sakari Ailus
+ if (ret < 0) { > > dev_err(css->dev, "failed to find suitable binary\n"); > > return -EINVAL; > > } > > + css->pipes[pipe].bindex = ret; > > > > dev_dbg(css->dev, "Binary index %d for pipe %d found.", > > css->pipes[pipe].bindex, pipe); > > > -- Sakari Ailus sakari.ai...@linux.intel.com ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH] media: staging/intel-ipu3: Implement lock for stream on/off operations

2019-02-01 Thread Sakari Ailus
Hi Raj, On Wed, Jan 30, 2019 at 05:17:15PM +, Mani, Rajmohan wrote: > Hi Sakari, > > > -Original Message- > > From: Sakari Ailus [mailto:sakari.ai...@linux.intel.com] > > Sent: Wednesday, January 30, 2019 12:59 AM > > To: Mani, Rajmohan > > Cc

Re: [PATCH 3/3] Staging: media: ipu3: fixed max charecter style issue

2019-02-01 Thread Sakari Ailus
ad; > > spin_lock(_pipe->qlock); > list_add_tail(>list, _pipe->queue[b->queue].bufs); > @@ -2071,7 +2078,8 @@ struct ipu3_css_buffer *ipu3_css_buf_dequeue(struct > ipu3_css *css) > return ERR_PTR(-EIO); >

Re: [PATCH] media: staging/intel-ipu3: Implement lock for stream on/off operations

2019-01-31 Thread Sakari Ailus
Hi Raj, On Wed, Jan 30, 2019 at 05:17:15PM +, Mani, Rajmohan wrote: > Hi Sakari, > > > -Original Message- > > From: Sakari Ailus [mailto:sakari.ai...@linux.intel.com] > > Sent: Wednesday, January 30, 2019 12:59 AM > > To: Mani, Rajmohan > > Cc

Re: [PATCH v11 05/13] media: staging/imx7: add MIPI CSI-2 receiver subdev for i.MX7

2019-01-30 Thread Sakari Ailus
goto unregister_subdev; > + > + memcpy(state->events, mipi_csis_events, sizeof(state->events)); > + > + mipi_csis_debugfs_init(state); > + pm_runtime_enable(dev); > + if (!pm_runtime_enabled(dev)) { > + ret = mipi_csis_pm_resume(dev, true); >

Re: [PATCH v11 00/13] media: staging/imx7: add i.MX7 media driver

2019-01-30 Thread Sakari Ailus
> The csi and mipi-csi entities pass all compliance tests. For patches 1, 4 and 10--13: Acked-by: Sakari Ailus -- Sakari Ailus sakari.ai...@linux.intel.com ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH v11 03/13] media: staging/imx7: add imx7 CSI subdev driver

2019-01-30 Thread Sakari Ailus
si_clk_id[i]; > + > + return devm_clk_bulk_get(dev, csi->num_clks, csi->clks); > +} > + > +static int imx7_csi_probe(struct platform_device *pdev) > +{ > + struct device *dev = >dev; > + struct device_node *node = dev->of_node; > + struct imx_media_dev *imxmd; > + struct imx7_csi *csi; > + struct resource *res; > + int ret; > + > + csi = devm_kzalloc(>dev, sizeof(*csi), GFP_KERNEL); > + if (!csi) > + return -ENOMEM; > + > + platform_set_drvdata(pdev, >sd); > + csi->dev = dev; > + > + ret = imx7_csi_clocks_get(csi); > + if (ret < 0) { > + dev_err(dev, "Failed to get clocks"); > + return -ENODEV; > + } > + > + res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > + csi->irq = platform_get_irq(pdev, 0); > + if (!res || csi->irq < 0) { > + dev_err(dev, "Missing platform resources data\n"); > + return -ENODEV; > + } > + > + csi->regbase = devm_ioremap_resource(dev, res); > + if (IS_ERR(csi->regbase)) { > + dev_err(dev, "Failed platform resources map\n"); > + return -ENODEV; > + } > + > + spin_lock_init(>irqlock); > + mutex_init(>lock); > + > + /* install interrupt handler */ > + ret = devm_request_irq(dev, csi->irq, imx7_csi_irq_handler, 0, "csi", > +(void *)csi); > + if (ret < 0) { > + dev_err(dev, "Request CSI IRQ failed.\n"); > + ret = -ENODEV; > + goto destroy_mutex; > + } > + > + /* add media device */ > + imxmd = imx_media_dev_init(dev); > + if (IS_ERR(imxmd)) { > + ret = PTR_ERR(imxmd); > + goto destroy_mutex; > + } > + > + ret = imx_media_of_add_csi(imxmd, node); > + if (ret < 0) > + goto cleanup; > + > + ret = imx_media_dev_notifier_register(imxmd); > + if (ret < 0) > + goto cleanup; > + > + csi->imxmd = imxmd; > + v4l2_subdev_init(>sd, _csi_subdev_ops); > + v4l2_set_subdevdata(>sd, csi); > + csi->sd.internal_ops = _csi_internal_ops; > + csi->sd.entity.ops = _csi_entity_ops; > + csi->sd.entity.function = MEDIA_ENT_F_VID_IF_BRIDGE; > + csi->sd.dev = >dev; > + csi->sd.owner = THIS_MODULE; > + csi->sd.flags = V4L2_SUBDEV_FL_HAS_DEVNODE; > + csi->sd.grp_id = IMX_MEDIA_GRP_ID_CSI; > + snprintf(csi->sd.name, sizeof(csi->sd.name), "csi"); > + > + csi->vdev = imx_media_capture_device_init(>sd, IMX7_CSI_PAD_SRC); > + if (IS_ERR(csi->vdev)) > + return PTR_ERR(csi->vdev); > + > + v4l2_ctrl_handler_init(>ctrl_hdlr, 0); > + csi->sd.ctrl_handler = >ctrl_hdlr; > + > + ret = v4l2_async_register_fwnode_subdev(>sd, > + sizeof(struct v4l2_async_subdev), > + NULL, 0, imx7_csi_parse_endpoint); > + if (ret) > + goto free; > + > + return 0; > + > +free: > + v4l2_ctrl_handler_free(>ctrl_hdlr); > + imx_media_capture_device_remove(csi->vdev); > + > +cleanup: > + v4l2_async_notifier_cleanup(>notifier); > + v4l2_device_unregister(>v4l2_dev); > + media_device_cleanup(>md); > + > +destroy_mutex: > + mutex_destroy(>lock); > + > + return ret; > +} > + > +static int imx7_csi_remove(struct platform_device *pdev) > +{ > + struct v4l2_subdev *sd = platform_get_drvdata(pdev); > + struct imx7_csi *csi = v4l2_get_subdevdata(sd); > + struct imx_media_dev *imxmd = csi->imxmd; > + > + imx_media_capture_device_remove(csi->vdev); I think you're missing v4l2_async_notifier_unregister() here. > + v4l2_async_notifier_cleanup(>notifier); > + v4l2_device_unregister(>v4l2_dev); Where is the media device unregistered? That should come before freeing control handlers --- the same for unregistering video devices. > + media_device_cleanup(>md); > + media_entity_cleanup(>entity); > + v4l2_async_unregister_subdev(sd); > + v4l2_ctrl_handler_free(>ctrl_hdlr); > + mutex_destroy(>lock); > + > + return 0; > +} > + > +static const struct of_device_id imx7_csi_of_match[] = { > + { .compatible = "fsl,imx7-csi" }, > + { }, > +}; > +MODULE_DEVICE_TABLE(of, imx7_csi_of_match); > + > +static struct platform_driver imx7_csi_driver = { > + .probe = imx7_csi_probe, > + .remove = imx7_csi_remove, > + .driver = { > + .of_match_table = imx7_csi_of_match, > + .name = "imx7-csi", > + }, > +}; > +module_platform_driver(imx7_csi_driver); > + > +MODULE_DESCRIPTION("i.MX7 CSI subdev driver"); > +MODULE_AUTHOR("Rui Miguel Silva "); > +MODULE_LICENSE("GPL"); "GPL" or "GPL v2"? > +MODULE_ALIAS("platform:imx7-csi"); -- Sakari Ailus sakari.ai...@linux.intel.com ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH] media: staging/intel-ipu3: Implement lock for stream on/off operations

2019-01-30 Thread Sakari Ailus
taging/media/ipu3/ipu3.h > index 04fc99f47ebb..f732315f0701 100644 > --- a/drivers/staging/media/ipu3/ipu3.h > +++ b/drivers/staging/media/ipu3/ipu3.h > @@ -146,6 +146,10 @@ struct imgu_device { >* vid_buf.list and css->queue >*/ > struct mutex lock; > + &g

Re: [PATCH v10 01/13] media: staging/imx: refactor imx media device probe

2019-01-24 Thread Sakari Ailus
ruct imx_media_dev > *imxmd, > struct fwnode_handle *fwnode, > struct platform_device *pdev); > > +int imx_media_subdev_bound(struct v4l2_async_notifier *notifier, > +struct v4l2_subdev *sd, > +struct v4l2_async_subdev *asd); > +int imx_media_link_notify(struct media_link *link, u32 flags, > + unsigned int notification); > +int imx_media_probe_complete(struct v4l2_async_notifier *notifier); > + > +struct imx_media_dev *imx_media_dev_init(struct device *dev); > +int imx_media_dev_notifier_register(struct imx_media_dev *imxmd); > + > +void imx_media_dev_cleanup(struct imx_media_dev *imxmd); > +void imx_media_dev_notifier_unregister(struct imx_media_dev *imxmd); > + > /* imx-media-fim.c */ > struct imx_media_fim; > void imx_media_fim_eof_monitor(struct imx_media_fim *fim, ktime_t timestamp); > @@ -249,6 +262,8 @@ int imx_media_create_of_links(struct imx_media_dev *imxmd, > struct v4l2_subdev *sd); > int imx_media_create_csi_of_links(struct imx_media_dev *imxmd, > struct v4l2_subdev *csi); > +int imx_media_of_add_csi(struct imx_media_dev *imxmd, > + struct device_node *csi_np); > > /* imx-media-capture.c */ > struct imx_media_video_dev * -- Kind regards, Sakari Ailus sakari.ai...@linux.intel.com ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH -next] media: staging/intel-ipu3: Fix err handle of ipu3_css_find_binary

2019-01-07 Thread Sakari Ailus
tch with equivalent content; it was there first. Thanks! -- Sakari Ailus sakari.ai...@linux.intel.com ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH v9 04/13] media: staging/imx7: add MIPI CSI-2 receiver subdev for i.MX7

2018-12-03 Thread Sakari Ailus
y_pads_init(>mipi_sd.entity, CSIS_PADS_NUM, > + state->pads); > + if (ret < 0) > + goto unregister_subdev; > + > + memcpy(state->events, mipi_csis_events, sizeof(state->events)); > + > + pm_runtim

Re: [PATCH v8 03/12] media: staging/imx7: add imx7 CSI subdev driver

2018-11-21 Thread Sakari Ailus
struct device *dev = csi->dev; > + > + csi->clk_disp_axi = devm_clk_get(dev, "axi"); > + if (IS_ERR(csi->clk_disp_axi)) { > + dev_err(dev, "Could not get csi axi clock\n"); > + return -ENODEV; > + } >

Re: [PATCH v8 05/12] media: dt-bindings: add bindings for i.MX7 media driver

2018-11-21 Thread Sakari Ailus
Hi Rui, On Wed, Nov 21, 2018 at 11:15:51AM +, Rui Miguel Silva wrote: > Add bindings documentation for i.MX7 media drivers. > The imx7 MIPI CSI2 and imx7 CMOS Sensor Interface. > > Signed-off-by: Rui Miguel Silva > Reviewed-by: Rob Herring > Acked-by: Sakari Ailus >

Re: [PATCH v7 05/12] media: dt-bindings: add bindings for i.MX7 media driver

2018-11-07 Thread Sakari Ailus
On Fri, Aug 10, 2018 at 03:20:38PM +0100, Rui Miguel Silva wrote: > Add bindings documentation for i.MX7 media drivers. > The imx7 MIPI CSI2 and imx7 CMOS Sensor Interface. > > Reviewed-by: Rob Herring > Signed-off-by: Rui Miguel Silva Acked-by: Sakari Ailus - -- Sakari

Re: [PATCH v6 07/13] media: dt-bindings: add bindings for i.MX7 media driver

2018-08-02 Thread Sakari Ailus
-names = "pclk", "wrap", "phy"; > +clock-frequency = <16600>; > +power-domains = <_mipi_phy>; > +phy-supply = <_1p0d>; > +resets = < IMX7_RESET_MIPI_PHY_MRST>; > +

Re: [PATCH 0/6] Fix issues reported by static analysis tool.

2018-05-23 Thread Sakari Ailus
ipe_binarydesc.c | 3 ++- > .../staging/media/atomisp/pci/atomisp2/css2400/sh_css.c| 7 +-- > 5 files changed, 7 insertions(+), 27 deletions(-) > I'm sorry to tell you that the atomisp driver was removed from the staging tree some time

Re: [PATCH v4 06/12] media: dt-bindings: add bindings for i.MX7 media driver

2018-05-22 Thread Sakari Ailus
On Tue, May 22, 2018 at 02:19:21PM +0100, Rui Miguel Silva wrote: > Hi Sakari, > On Fri 18 May 2018 at 22:13, Sakari Ailus wrote: > > On Fri, May 18, 2018 at 09:27:58AM +0100, Rui Miguel Silva wrote: > > > > > +endpoint node > > > > > +---

Re: [PATCH v4 06/12] media: dt-bindings: add bindings for i.MX7 media driver

2018-05-18 Thread Sakari Ailus
> table in [0], can you point me out the formula for imx7 in the > documentation? I don't know imx7 but the other CSI-2 drivers need no such system specific configuration. -- Sakari Ailus sakari.ai...@linux.intel.com ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH v5 06/12] media: dt-bindings: add bindings for i.MX7 media driver

2018-05-18 Thread Sakari Ailus
#address-cells = <1>; > +#size-cells = <0>; > + > + compatible = "fsl,imx7-csi"; > +reg = <0x3071 0x1>; > +interrupts = ; > +clocks = < IMX7D_CLK_DUMMY>, > +< IMX7D_CSI_MCLK_ROOT_CLK>, > +< IMX7D_CLK_DUMMY>; > +clock-names = "axi", "mclk", "dcic"; > + > +port { > +csi_from_csi_mux: endpoint { > +remote-endpoint = <_mux_to_csi>; > +}; > +}; > +}; > -- > 2.17.0 > -- Sakari Ailus sakari.ai...@linux.intel.com ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH v4 06/12] media: dt-bindings: add bindings for i.MX7 media driver

2018-05-18 Thread Sakari Ailus
contain "axi", "mclk" and "dcic" entries, matching > + entries in the clock property; > + > +example: > + > +csi: csi@3071 { > +#address-cells = <1>; > +

Re: [PATCH] media: staging: atomisp: fix a potential missing-check bug

2018-05-08 Thread Sakari Ailus
lity or static checker fix so that's > > fine. > > Thanks for your response. From the performance perspective, this bug > should also be fixed, as the second invocation is redundant if it is > expected to return a same pointer as the first one. The arg

Re: [PATCH 0/9] Do some atomisp cleanups

2018-04-26 Thread Sakari Ailus
m, one should start > getting rid of the several abstraction layers at the driver and have > hardware for test. > > As I don't have any hardware to test, nor any reason why > dedicating myself to such task, I'll just leave this task for others > to do. Thanks. Feel free to add

Re: [PATCH 02/18] media: staging: atomisp: do some coding style improvements

2018-04-04 Thread Sakari Ailus
please add: Acked-by: Sakari Ailus <sakari.ai...@linux.intel.com> -- Sakari Ailus sakari.ai...@linux.intel.com ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH v1 05/10] staging: atomisp: Remove non-ACPI leftovers

2017-12-21 Thread Sakari Ailus
rstand Andy's patches address problems with functionality, let's make error handling fixes separately. So I'm applying these now. Thanks! -- Kind regards, Sakari Ailus sakari.ai...@linux.intel.com ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [-next PATCH 3/4] treewide: Use DEVICE_ATTR_RO

2017-12-21 Thread Sakari Ailus
DEVICE_ATTR_RO(dynamic_pool); > > static struct attribute *sysfs_attrs_ctrl[] = { > _attr_active_bo.attr, I have the exact same changes queued up in my tree. As there seem to be no dependencies to other patches in your set, how about dropping this c

Re: [PATCH v4 3/3] media: atomisp: delete empty default struct values.

2017-12-19 Thread Sakari Ailus
On Sat, Dec 02, 2017 at 10:12:01PM +, Jeremy Sowden wrote: > Removing zero-valued struct-members left a number of the default > struct-values empty. These values have now been removed. > > Signed-off-by: Jeremy Sowden <jer...@azazel.net> This one should be squashed as

Re: [PATCH v4 1/3] media: atomisp: convert default struct values to use compound-literals with designated initializers.

2017-12-19 Thread Sakari Ailus
in an assignment expression. > > Signed-off-by: Jeremy Sowden <jer...@azazel.net> I don't think it's useful to change the struct definition macros only to remove a large number of assigned fields in the next patch. How about merging the two patches? Please also start a new thread when re-post

Re: [PATCH 3/8] media: v4l2-async: simplify v4l2_async_subdev structure

2017-12-19 Thread Sakari Ailus
rocki <s.nawro...@samsung.com> > Signed-off-by: Mauro Carvalho Chehab <mche...@s-opensource.com> I'm not sure this is needed but it doesn't break anything either. Feel free to add: Acked-by: Sakari Ailus <sakari.ai...@linux.intel.com> -- Sakari Ailus e-mail: sakari.ai...@

Re: [PATCH 1/7] media: atomisp: stop producing hundreds of kernel-doc warnings

2017-11-29 Thread Sakari Ailus
On Wed, Nov 29, 2017 at 10:28:26AM -0200, Mauro Carvalho Chehab wrote: > Em Wed, 29 Nov 2017 10:24:57 -0200 > Mauro Carvalho Chehab <mche...@s-opensource.com> escreveu: > > > Em Wed, 29 Nov 2017 14:14:54 +0200 > > Sakari Ailus <sakari.ai...@linux.intel.com&

Re: [PATCH 1/7] media: atomisp: stop producing hundreds of kernel-doc warnings

2017-11-29 Thread Sakari Ailus
moving lesser than-characaters. It'd be good to mention how it's been generated. -- Kind regards, Sakari Ailus sakari.ai...@linux.intel.com ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH 2/3] media: staging: atomisp: defined as static some const arrays which don't need external linkage.

2017-11-29 Thread Sakari Ailus
On Wed, Nov 29, 2017 at 10:15:06AM +0100, Greg KH wrote: > On Wed, Nov 29, 2017 at 11:08:17AM +0200, Sakari Ailus wrote: > > Hi Greg, > > > > On Mon, Nov 27, 2017 at 01:21:25PM +0100, Greg KH wrote: > > > On Mon, Nov 27, 2017 at 11:30:53AM +, Jeremy Sowden wrote:

Re: [PATCH 2/3] media: staging: atomisp: defined as static some const arrays which don't need external linkage.

2017-11-29 Thread Sakari Ailus
merged via the media tree. To avoid conflicts, I suggest to avoid merging them via the staging tree. Thanks. -- Kind regards, Sakari Ailus e-mail: sakari.ai...@iki.fi ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH v2 0/3] Sparse fixes for the Atom ISP Staging Driver

2017-11-29 Thread Sakari Ailus
> .../isp/kernels/eed1_8/ia_css_eed1_8.host.c| 24 > +++--- > .../isp_param/interface/ia_css_isp_param_types.h | 2 +- > 2 files changed, 13 insertions(+), 13 deletions(-) Thanks, applied! -- Sakari Ailus e-mail: sakari.ai...@iki.fi

Re: [PATCH 3/3] media: staging: atomisp: prefer s16 to int16_t.

2017-11-29 Thread Sakari Ailus
On Mon, Nov 27, 2017 at 11:30:54AM +, Jeremy Sowden wrote: > Signed-off-by: Jeremy Sowden <jer...@azazel.net> I'd just leave it as-is, int16_t is a standard type. The commit message would be needed, too. -- Sakari Ailus e-mail: sakari.ai.

Re: [PATCH V3 22/29] [media] atomisp: deprecate pci_get_bus_and_slot()

2017-11-29 Thread Sakari Ailus
lying the rest of the patch. Please use the media tree as the base in the future. Thanks. -- Sakari Ailus e-mail: sakari.ai...@iki.fi ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH] staging/atomisp: Convert timers to use timer_setup()

2017-10-17 Thread Sakari Ailus
On Tue, Oct 17, 2017 at 08:16:03AM -0700, Kees Cook wrote: > On Tue, Oct 17, 2017 at 1:23 AM, Sakari Ailus <sakari.ai...@iki.fi> wrote: > > On Mon, Oct 16, 2017 at 04:24:56PM -0700, Kees Cook wrote: > >> In preparation for unconditionally passing the struct timer_list p

Re: [PATCH v2 0/2] staging: atomisp: memory allocation cleanups

2017-10-17 Thread Sakari Ailus
e branch. Could you rebase your patches on this branch, please? <URL:https://git.linuxtv.org/sailus/media_tree.git/log/?h=atomisp-next> Normally it'll be "atomisp". -- Kind regards, Sakari Ailus e-mail: sakari.ai...@iki.fi ___ deve

Re: [PATCH] stagin: atomisp: Fix oops by unbalanced clk enable/disable call

2017-10-17 Thread Sakari Ailus
> > + > > if (on) { > > ret = clk_set_rate(gs->pmc_clk, gs->clock_src); > > Which tree [and branch] are you working off please? In the staging-next > branch of Greg's staging > tree this function does not appear as it is in this patch. Media

Re: [PATCH] staging/atomisp: Convert timers to use timer_setup()

2017-10-17 Thread Sakari Ailus
ev.osuosl.org > Signed-off-by: Kees Cook <keesc...@chromium.org> This appears to be the same as the patch I've applied previously. -- Sakari Ailus e-mail: sakari.ai...@iki.fi ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH 0/2] staginng: atomisp: memory allocation cleanups

2017-10-13 Thread Sakari Ailus
?h=atomisp> -- Kind regards, Sakari Ailus e-mail: sakari.ai...@iki.fi ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH v4] staging: atomisp: add a driver for ov5648 camera sensor

2017-10-10 Thread Sakari Ailus
mework or sensor driver changes to support atomisp, which currently is a staging driver. -- Sakari Ailus sakari.ai...@linux.intel.com ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH v4] staging: atomisp: add a driver for ov5648 camera sensor

2017-10-06 Thread Sakari Ailus
g this patch at least until the other drivers are available. Andy, Alan; any opinion? -- Kind regards, Sakari Ailus sakari.ai...@linux.intel.com ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH v2 13/17] media: v4l2-async: simplify v4l2_async_subdev structure

2017-09-29 Thread Sakari Ailus
Hi Mauro, (Removing the non-list recipients.) On Fri, Sep 29, 2017 at 06:27:13AM -0300, Mauro Carvalho Chehab wrote: > Em Thu, 28 Sep 2017 15:09:21 +0300 > Sakari Ailus <sakari.ai...@iki.fi> escreveu: > > > Hi Mauro, > > > > On Wed, Sep 27, 2017 at 06:46:56PM -

Re: [RESEND PATCH v2 13/17] media: v4l2-async: simplify v4l2_async_subdev structure

2017-09-28 Thread Sakari Ailus
roperty API is just an API. -- Kind regards, Sakari Ailus e-mail: sakari.ai...@iki.fi ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [RESEND PATCH v2 13/17] media: v4l2-async: simplify v4l2_async_subdev structure

2017-09-28 Thread Sakari Ailus
roperty API is just an API. -- Kind regards, Sakari Ailus e-mail: sakari.ai...@iki.fi ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH v2 13/17] media: v4l2-async: simplify v4l2_async_subdev structure

2017-09-28 Thread Sakari Ailus
roperty API is just an API. -- Kind regards, Sakari Ailus e-mail: sakari.ai...@iki.fi ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH v2] [media] staging: atomisp: use clock framework for camera clocks

2017-09-22 Thread Sakari Ailus
.intel.com> > Signed-off-by: Pierre-Louis Bossart <pierre-louis.boss...@linux.intel.com> I've applied the patch with small changes, there were other patches changing the deleted files. The tree is here: <URL:https://git.linuxtv.org/sailus/media_tree.git/log/?h=atomi

Re: [PATCH] Staging: media: atomisp: Merge assignment with return

2017-09-18 Thread Sakari Ailus
ommit message (subject line) at least. This case is a bit special because the other driver is also specific to the atomisp staging driver. Thanks. -- Sakari Ailus e-mail: sakari.ai...@iki.fi ___ devel mailing list de...@linuxdriverproject.org http://d

Re: [PATCH] Staging: atomisp: fix alloc_cast.cocci warnings

2017-09-11 Thread Sakari Ailus
GFP_KERNEL); > if (parambuf == NULL) > return IA_CSS_ERR_CANNOT_ALLOCATE_MEMORY; -- Sakari Ailus e-mail: sakari.ai...@iki.fi ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH] staging: atomisp: add a driver for ov5648 camera sensor

2017-09-11 Thread Sakari Ailus
Hi Devid, Please see my comments below. Andy: please look for "INT5648". On Sun, Sep 10, 2017 at 02:23:07PM +0200, Devid Antonio Floni wrote: > The ov5680 5-megapixel camera sensor from OmniVision supports up to 2592x1944 > resolution and MIPI CSI-2 interface. Output format is raw sRGB/Bayer

Re: [PATCH] staging: atomisp: constify v4l2_subdev_sensor_ops

2017-08-27 Thread Sakari Ailus
;julia.law...@lip6.fr> Signed-off-by: Mauro Carvalho Chehab <mche...@s-opensource.com> -- Sakari Ailus e-mail: sakari.ai...@iki.fi ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[PATCH v3.2 2/3] v4l2-flash-led-class: Create separate sub-devices for indicators

2017-08-15 Thread Sakari Ailus
driver chip that drives a single flash LED and an indicator LED is no longer valid. Address the matter by registering one sub-device per LED. Signed-off-by: Sakari Ailus <sakari.ai...@linux.intel.com> Reviewed-by: Jacek Anaszewski <jacek.anaszew...@gmail.com> Acked-by: Pavel Machek &

[PATCH v3.1 2/3] v4l2-flash-led-class: Create separate sub-devices for indicators

2017-08-15 Thread Sakari Ailus
driver chip that drives a single flash LED and an indicator LED is no longer valid. Address the matter by registering one sub-device per LED. Signed-off-by: Sakari Ailus <sakari.ai...@linux.intel.com> Reviewed-by: Jacek Anaszewski <jacek.anaszew...@gmail.com> Acked-by: Pavel Machek &

[PATCH v3 1/3] staging: greybus: light: fix memory leak in v4l2 register

2017-08-10 Thread Sakari Ailus
e from v4l2_flash_init() for it never returns NULL. Fixes: 2870b52bae4c ("greybus: lights: add lights implementation") Reported-by: Sakari Ailus <sakari.ai...@linux.intel.com> Signed-off-by: Rui Miguel Silva <rmf...@gmail.com> Reviewed-by: Viresh Kumar <viresh.ku...@linaro.o

[PATCH v3 0/3] Create sub-device per LED

2017-08-10 Thread Sakari Ailus
tor" already in mediatree. - Add "v4l2-flash-led-class: Document v4l2_flash_init() references" to the set. Rui Miguel Silva (1): staging: greybus: light: fix memory leak in v4l2 register Sakari Ailus (2): v4l2-flash-led-class: Create separate sub-devices for indicators

[PATCH v3 3/3] v4l2-flash-led-class: Document v4l2_flash_init() references

2017-08-10 Thread Sakari Ailus
The v4l2_flash_init() keeps a reference to the ops struct but not to the config struct (nor anything it contains). Document this. Signed-off-by: Sakari Ailus <sakari.ai...@linux.intel.com> Acked-by: Pavel Machek <pa...@ucw.cz> Acked-by: Hans Verkuil <hans.verk...@cisco.com>

[PATCH v3 2/3] v4l2-flash-led-class: Create separate sub-devices for indicators

2017-08-10 Thread Sakari Ailus
driver chip that drives a single flash LED and an indicator LED is no longer valid. Address the matter by registering one sub-device per LED. Signed-off-by: Sakari Ailus <sakari.ai...@linux.intel.com> Reviewed-by: Jacek Anaszewski <jacek.anaszew...@gmail.com> Acked-by: Pavel Machek &

Re: [PATCH v2 1/3] staging: greybus: light: fix memory leak in v4l2 register

2017-08-10 Thread Sakari Ailus
_flash_ops, _cfg); > > + if (IS_ERR_OR_NULL(light->v4l2_flash)) > > Just IS_ERR since v4l2_flash_init() never returns NULL. Will fix. > > > + return PTR_ERR(light->v4l2_flash); > > > > - return ret; > >

Re: [PATCH] Subject:staging:media:atomisp:ap1302: fix comments style

2017-08-10 Thread Sakari Ailus
ver, please submit them as a single patch instead. And do continue paying attention to commit message subject and body. Thanks. -- Sakari Ailus e-mail: sakari.ai...@iki.fi XMPP: sai...@retiisi.org.uk ___ devel mailing list de...@linuxdriv

Re: [PATCH] Subject:drivers:staging:media:atomisp:

2017-08-10 Thread Sakari Ailus
* The metadata contains exposure settings and face > + * detection results. > + */ /* * Multi-line comments * look like this. */ > static u16 ap1302_ss_list[] = { > 0xb01c, /* From 0x0186 with size 0x1C are exposure settings. */ > 0x0186, > -- >

Re: [PATCH] Subject: drivers:staging:media:atomisp:12c:ab1302.c fix CHECK

2017-08-10 Thread Sakari Ailus
ady includes a copy of the GPL. Applied, with the subject line changed to "staging: media: atomisp: ap1302: Remove FSF postal address" and "CHECK: " removed. Please look e.g. git log on the atomisp driver for subject examples in the future. Thanks. -- Sakari Ailus e-mail: s

Re: [PATCH v2 1/3] staging: greybus: light: fix memory leak in v4l2 register

2017-08-09 Thread Sakari Ailus
Hi Rui, On Wed, Aug 09, 2017 at 02:20:02PM +0100, Rui Miguel Silva wrote: > Hi Sakari, > On Wed, Aug 09, 2017 at 02:15:53PM +0300, Sakari Ailus wrote: > > From: Rui Miguel Silva <rmf...@gmail.com> > > > > We are allocating memory for the v4l2 flash config

[PATCH v2 0/3] Create sub-device per LED

2017-08-09 Thread Sakari Ailus
4l2-flash-led-class: Document v4l2_flash_init() references" to the set. Rui Miguel Silva (1): staging: greybus: light: fix memory leak in v4l2 register Sakari Ailus (2): v4l2-flash-led-class: Create separate sub-devices for indicators v4l2-flash-led-class: Document v4l2_fla

[PATCH v2 1/3] staging: greybus: light: fix memory leak in v4l2 register

2017-08-09 Thread Sakari Ailus
") Reported-by: Sakari Ailus <sakari.ai...@linux.intel.com> Signed-off-by: Rui Miguel Silva <rmf...@gmail.com> Reviewed-by: Viresh Kumar <viresh.ku...@linaro.org> --- drivers/staging/greybus/light.c | 29 + 1 file changed, 9 insertions(+), 20 deletion

[PATCH v2 3/3] v4l2-flash-led-class: Document v4l2_flash_init() references

2017-08-09 Thread Sakari Ailus
The v4l2_flash_init() keeps a reference to the ops struct but not to the config struct (nor anything it contains). Document this. Signed-off-by: Sakari Ailus <sakari.ai...@linux.intel.com> Acked-by: Pavel Machek <pa...@ucw.cz> --- include/media/v4l2-flash-led-class.h | 6 ++ 1

Re: [PATCH] staging: greybus: light: fix memory leak in v4l2 register

2017-08-09 Thread Sakari Ailus
: lights: add lights implementation") > Reported-by: Sakari Ailus <sakari.ai...@linux.intel.com> > Signed-off-by: Rui Miguel Silva <rmf...@gmail.com> My apologies for missing sending the original patch to the appropriate recipients the first time. Could I take t

  1   2   >