Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp3313566ybk; Tue, 19 May 2020 01:14:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwg11iGNNTpOabZ8gg262cwJ6rH9a8l5vM1zcqZOiVJUonHnsyeqhgCWH4MDEMATQHoAOjI X-Received: by 2002:a17:906:4d0d:: with SMTP id r13mr18566670eju.282.1589876064319; Tue, 19 May 2020 01:14:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589876064; cv=none; d=google.com; s=arc-20160816; b=fc8PNiLW4dGA2MHKbKk6xtLJxYIMwGkXO7crYYvwKrWRENz/jYafBs1QkRSBZmpoHW O+Xl7ULx9B/Bvp+9FNTQyMuak09J20l+j9/9H34X3uarlwNMlwV8EPoGI2eLHbxQbKhz m7YCfoOFuaAh89xSuWh/fGcE4doEBzuFAEk3g8UTpXLIh+5tjto4n0ik7O19BXhHAMbU svpNrNeTaNfoLcqR3LWEMXqlZFRJbE1Xdf6sI//zyetPaFyB/1nHYAEALCu/BnMMtFmq LmYFcYUGaNvErNYRDiCCejbDoIDyqJwyXW9X6Uv0D89PV9Sz0wL3UXDXi7FO8xZ3RWtl XfQQ== 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=twQnndCWP6l71LnTeTecHw7l/TOlqTGxlKcdw+gUTWM=; b=h/PUnAbtTO/BSBo/PVX1pxePh0b8wJf5uTzVoR2WXgNvWlcj0ulSZYyHSg8n7l8MTu HkLJyTrUB2Y4HWSSPyxDVu2GFifxrTUJufiW2J46ft41VntmZgq3H1dUvm5Q91ru59Uq WOWjOzqKwM+eNJKuGjhssljHgEWNTn3lHc+RINR0TZ86A/GVPKw8Qgz91F3z2In1ww23 gILTa/cNMcTGE8ZbM/C3U1e8tkp+btF9EjdbS+w0ZrP66IofLuPZDV4IhTgV3scDGroa 6RnSwTXW/rJB/5sy4P79wqlNZvNs4Gck3uTQIHcayHMSzQcyfgT/C+5X9RiwmmsE9ntC nepA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bo6si7236018edb.586.2020.05.19.01.14.01; Tue, 19 May 2020 01:14:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728510AbgESIKi (ORCPT + 99 others); Tue, 19 May 2020 04:10:38 -0400 Received: from retiisi.org.uk ([95.216.213.190]:46684 "EHLO hillosipuli.retiisi.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726892AbgESIKh (ORCPT ); Tue, 19 May 2020 04:10:37 -0400 Received: from valkosipuli.localdomain (valkosipuli.retiisi.org.uk [IPv6:2a01:4f9:c010:4572::80:2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by hillosipuli.retiisi.org.uk (Postfix) with ESMTPS id 45B65634C87; Tue, 19 May 2020 11:10:19 +0300 (EEST) Received: from sailus by valkosipuli.localdomain with local (Exim 4.92) (envelope-from ) id 1jaxKN-000167-9K; Tue, 19 May 2020 11:10:19 +0300 Date: Tue, 19 May 2020 11:10:19 +0300 From: Sakari Ailus To: Kieran Bingham Cc: linux-renesas-soc@vger.kernel.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Mauro Carvalho Chehab , Kieran Bingham , Laurent Pinchart , Jacopo Mondi , Niklas =?iso-8859-1?Q?S=F6derlund?= , Hans Verkuil , Hyun Kwon , Manivannan Sadhasivam , Rob Herring , Jacopo Mondi , Laurent Pinchart , Niklas =?iso-8859-1?Q?S=F6derlund?= Subject: Re: [PATCH v9 2/4] media: i2c: Add MAX9286 driver Message-ID: <20200519081019.GB3877@valkosipuli.retiisi.org.uk> References: <20200512155105.1068064-1-kieran.bingham+renesas@ideasonboard.com> <20200512155105.1068064-3-kieran.bingham+renesas@ideasonboard.com> <20200516215103.GA857@valkosipuli.retiisi.org.uk> <930009cd-d887-752a-4f1f-567c795101ee@ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <930009cd-d887-752a-4f1f-567c795101ee@ideasonboard.com> 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 Kieran, On Mon, May 18, 2020 at 12:45:18PM +0100, Kieran Bingham wrote: > Hi Sakari, > > There are only fairly minor comments here, fix ups will be included in a > v10. > > Is there anything major blocking integration? Not that I can see. But please see my comments below. > > Regards > > Kieran > > > > On 16/05/2020 22:51, Sakari Ailus wrote: > > Hi Kieran, > > > > Thanks for the update. > > > > On Tue, May 12, 2020 at 04:51:03PM +0100, Kieran Bingham wrote: > > > > ... > > > >> +static int max9286_enum_mbus_code(struct v4l2_subdev *sd, > >> + struct v4l2_subdev_pad_config *cfg, > >> + struct v4l2_subdev_mbus_code_enum *code) > >> +{ > >> + if (code->pad || code->index > 0) > >> + return -EINVAL; > >> + > >> + code->code = MEDIA_BUS_FMT_UYVY8_2X8; > > > > Why UYVY8_2X8 and not UYVY8_1X16? In general, the single sample / pixel > > variant of the format is generally used on the serial busses. This choice > > was made when serial busses were introduced. > > Ok - I presume this doesn't really have much effect anyway, they just > have to match for the transmitter/receiver? In this case, yes. But it's harder to change later, so let's indeed do that now. > > But it makes sense to me, so I'll update to the 1x16 variant. ... > > > And as you don't, you also won't know which frequencies are known to be > > safe to use. That said, perhaps where this device is used having a random > > frequency on that bus could not be an issue. Perhaps. > > Does this generate a range? or a list of static supported frequencies? > > We configure the pixel clock based upon the number of cameras connected, > and their pixel rates etc ... > > Are you saying that the frequency of this clock should be validated to > be a specific range? or are you talking about a different frequency? It depends on the system. In general, only frequencies known to be safe should be used. If this one has enough shielding to guarantee there won't be problems in using a random frequency in the entire range, is there a guarantee that will be the case for all systems with this chip? -- Kind regards, Sakari Ailus