Re: [PATCH v2 30/30] rcar-csi2: expose the subdevice internal routing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Nikita,

Thanks for your feedback.

On 2018-11-14 16:10:37 +0300, Nikita Yushchenko wrote:
> > +	for (i = 0; i < fd.num_entries; i++) {
> > +		struct v4l2_mbus_frame_desc_entry *entry = &fd.entry[i];
> > +		int source_pad;
> > +
> > +		source_pad = rcsi2_vc_to_pad(entry->bus.csi2.channel);
> > +		if (source_pad < 0) {
> > +			dev_err(priv->dev, "Virtual Channel out of range: %u\n",
> > +				entry->bus.csi2.channel);
> > +			return -ENOSPC;
> 
> Why -ENOSPC here?
> 
> AFAIU negative source_pad here means driver internal error (frame desc
> returned from rcsi2_get_remote_frame_desc() is invalid).  Then I think
> error return should be -EIO.

Wops, I agree with you this should not be -ENOSPC. Looking at the code 
this seems I just reused the same error code as if there is no space in 
the routes array check above this chunk, my bad. I will fix this for the 
next version.

-- 
Regards,
Niklas Söderlund



[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux