Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1228637ybi; Tue, 16 Jul 2019 11:34:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqyfLofkfIgmtADs4PC4xtK8sgXdyHh3VGWHxonMaV2Dlh69FLUp81sKQ13w9oeMxfoA5wl8 X-Received: by 2002:a65:6709:: with SMTP id u9mr7823494pgf.58.1563302048297; Tue, 16 Jul 2019 11:34:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563302048; cv=none; d=google.com; s=arc-20160816; b=KuEelpFAI7p0VBoUPlG/orHVzXeFfYgc214cp/e8mWj4h6yxtkPf34xc5Nn4ZsliYm spyUPuNJyLH/1Gn/y9D8/uQSsXtdLb7FmIxjA7aAlDcytD4BkxSlEPOoLwiLjlXa2DDA HK5rEYtqT5k2MRcCXy/9CRcibdgHM2sIzBTWZWFIS+m+zYjtK8E7hGItKMjCdqf22sHi vGnL5LCAKSoPbDLEm7XVGWmxhj5gwF2kpSGKhHdF3avUG3vlDM0eIFWxCYVahE0FBUqJ 1q+rR2aOhMR+VUgLS+DurPZA1RXXe2yqHETlTQ3HCP3mRqXmILnMk/UK4DZ6m3MzY3mq 14jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Mqlk6KI8243/wcoBuSJsLtXYkKQsHLZUv2l0fZhNMiA=; b=GvjanSOBEO/vYC1Dt0iNtvHqaLXaePoVoH+ID/6EcQBjw0VgKiz2vkC/RyAfYvYbNr zIzNRJs5lYrpYdBa4kAGOQClX7Z+35KyhUwcinaZABzXZ0vKtYpYZctCdWWPJBtY1Xch xl/Nb2XHNr+syzgyZP1HXbVH5cnDNIil8zC5YDOA3ufZ4oFHXT0WIAS8oRyzIMqUztIY KDX1oZDFLTZVcwPcwqi0gUmN1a742w/hJ5ugOXQKCKvEGZyNx0ldTa9C0ddAGTznbGwD mRSshleuzDPHFLpOb8omd8cWkPCN/uwkbsL70D/R4FPtIqaFNYu1blt7v6KPuqLxZTTL 1cBA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=iki.fi Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cp2si20210919plb.437.2019.07.16.11.33.52; Tue, 16 Jul 2019 11:34:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=iki.fi Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388311AbfGPSdd (ORCPT + 99 others); Tue, 16 Jul 2019 14:33:33 -0400 Received: from retiisi.org.uk ([95.216.213.190]:40158 "EHLO hillosipuli.retiisi.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725926AbfGPSdc (ORCPT ); Tue, 16 Jul 2019 14:33:32 -0400 Received: from valkosipuli.localdomain (valkosipuli.retiisi.org.uk [IPv6:2a01:4f9:c010:4572::80:2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by hillosipuli.retiisi.org.uk (Postfix) with ESMTPS id 67A7A634C85; Tue, 16 Jul 2019 21:31:59 +0300 (EEST) Received: from sailus by valkosipuli.localdomain with local (Exim 4.92) (envelope-from ) id 1hnSGM-0000b1-5d; Tue, 16 Jul 2019 21:33:18 +0300 Date: Tue, 16 Jul 2019 21:33:18 +0300 From: Sakari Ailus To: Vishal Sagar Cc: Vishal Sagar , Hyun Kwon , "laurent.pinchart@ideasonboard.com" , "mchehab@kernel.org" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , Michal Simek , "linux-media@vger.kernel.org" , "devicetree@vger.kernel.org" , "hans.verkuil@cisco.com" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Dinesh Kumar , Sandip Kothari , Luca Ceresoli , Jacopo Mondi Subject: Re: [PATCH v9 2/2] media: v4l: xilinx: Add Xilinx MIPI CSI-2 Rx Subsystem driver Message-ID: <20190716183318.GE850@valkosipuli.retiisi.org.uk> References: <1560247809-117978-1-git-send-email-vishal.sagar@xilinx.com> <1560247809-117978-3-git-send-email-vishal.sagar@xilinx.com> <20190618151933.zqepfqdjjjlhea7h@valkosipuli.retiisi.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Vishal, On Thu, Jul 11, 2019 at 09:09:37AM +0000, Vishal Sagar wrote: ... > > > +static int xcsi2rxss_subscribe_event(struct v4l2_subdev *sd, > > > + struct v4l2_fh *fh, > > > + struct v4l2_event_subscription *sub) > > > +{ > > > + struct xcsi2rxss_state *xcsi2rxss = to_xcsi2rxssstate(sd); > > > + int ret; > > > + > > > + mutex_lock(&xcsi2rxss->lock); > > > + > > > + switch (sub->type) { > > > + case V4L2_EVENT_XILINX_CSI2RX_SLBF: > > > + ret = v4l2_event_subscribe(fh, sub, XCSI_MAX_EVENT, NULL); > > > > Please either use dev_dbg() or propose an API for conveying this > > information downstream in the pipeline. > > > > I will use a dev_alert() in the irq handler for this for now and remove this event. dev_dbg(), please, as this is certainly not fatal. We should probably have an API to tell this to the downstream sub-device driver in the pipeline if the hardware has no way to detect this independently. -- Regards, Sakari Ailus