Hi, Tomasz,

Thanks for the code review.

> -----Original Message-----
> From: Tomasz Figa [mailto:tf...@chromium.org]
> Sent: Thursday, April 26, 2018 12:12 AM
> To: Zhi, Yong <yong....@intel.com>
> Cc: Linux Media Mailing List <linux-media@vger.kernel.org>; Sakari Ailus
> <sakari.ai...@linux.intel.com>; Mani, Rajmohan
> <rajmohan.m...@intel.com>; Toivonen, Tuukka
> <tuukka.toivo...@intel.com>; Hu, Jerry W <jerry.w...@intel.com>; Zheng,
> Jian Xu <jian.xu.zh...@intel.com>
> Subject: Re: [PATCH v6 10/12] intel-ipu3: Add css pipeline programming
> 
> Hi Yong,
> 
> On Fri, Mar 30, 2018 at 11:15 AM Yong Zhi <yong....@intel.com> wrote:
> [snip]
> > +int ipu3_css_init(struct device *dev, struct ipu3_css *css,
> > +                 void __iomem *base, int length) {
> > +       int r, p, q, i;
> > +
> > +       /* Initialize main data structure */
> > +       css->dev = dev;
> > +       css->base = base;
> > +       css->iomem_length = length;
> > +       css->current_binary = IPU3_CSS_DEFAULT_BINARY;
> > +       css->pipe_id = IPU3_CSS_PIPE_ID_NUM;
> > +       css->vf_output_en = IPU3_NODE_VF_DISABLED;
> > +       spin_lock_init(&css->qlock);
> > +
> > +       for (q = 0; q < IPU3_CSS_QUEUES; q++) {
> > +               r = ipu3_css_queue_init(&css->queue[q], NULL, 0);
> > +               if (r)
> > +                       return r;
> > +       }
> > +
> > +       r = ipu3_css_fw_init(css);
> > +       if (r)
> > +               return r;
> > +
> > +       /* Allocate and map common structures with imgu hardware */
> > +
> > +       for (p = 0; p < IPU3_CSS_PIPE_ID_NUM; p++)
> > +               for (i = 0; i < IMGU_ABI_MAX_STAGES; i++) {
> > +                       if (!ipu3_dmamap_alloc(dev,
> > +
>   &css->xmem_sp_stage_ptrs[p][i],
> > +                                              sizeof(struct
> imgu_abi_sp_stage)))
> 
> checkpatch reports line over 80 characters here.

Ack, I opted for alignment over line limit here , will fix in v7.
> 
> > +                               goto error_no_memory;
> > +                       if (!ipu3_dmamap_alloc(dev,
> > +
>   &css->xmem_isp_stage_ptrs[p][i],
> > +                                              sizeof(struct
> imgu_abi_isp_stage)))
> 
> Ditto.

Sure, thanks!!
> 
> > +                               goto error_no_memory;
> > +               }
> 
> Best regards,
> Tomasz

Reply via email to