Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp433344imm; Wed, 26 Sep 2018 00:55:00 -0700 (PDT) X-Google-Smtp-Source: ACcGV616uewDUVhRIMeuBkenv1FWYgniXJpoHMufHooTP8Pz2f1j3Ivx6Q5q1eKbgTZtDs/70J2a X-Received: by 2002:a62:571b:: with SMTP id l27-v6mr4954172pfb.29.1537948500516; Wed, 26 Sep 2018 00:55:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537948500; cv=none; d=google.com; s=arc-20160816; b=gp/OPiBEJ+6PUUYhdUpmsIA8F/d/53pvmuAtOc2DaBSobO3l810w1PtPgObghRof4O ttNW2QLaSvYBSJHNfXW8z+a0Zak/IPN2MGbUVbycRen5Uzxg9ooNzSNBAQbmqkqMU7hn IMdYPcP6bnmKB4fMsvwz8RzWp/iJzNjaIASS9n4aAEfDezRC8aOgYV0V01f236WLJJhL q2ooqv+jxZd+XuuSCpZ83k4u43Qi2n9ZFZJKmMlx9U+r9kPZuSUv9yEIjYXABvoT+G4x jHfpmj/l1SkcRGA9fl3KYGHJEaz2PswOA2Xvcazp0u0UoQrL4vuNqfBZT/zcSoqKKeW3 4TsQ== 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=A702FZLr63dYXGKnvB3PJ4UWNfBMikezOH/xripPPYw=; b=q2kXRibC78tFEmWoeTmnYaziLZMCpb10JWm7M0f9kATwuGJTklEVb2J7Qy/pIPwnx2 zpl0F/1ZHU2FanNKihn+g7K6Iv7Aj5DDYut/HiqAbm9b9VAodEYYDaLIJPIsXAyrAY4X uxYwhMvUfs1P7CqMIHsojemiFzATMn1cLL3ajtLwsjWIxwFK0L3jZQ07G2ZVu8My0FtU h2GRZ1wOOHfhkF6lTIgmKkGLqJAF1RDmeG7heGaPgBzzkkQjEm1vi0scp8VAiX4NzwR+ SH0btA2PKQ7qIDzZUnMqPT12I0U+kESAkhWyhzL+9oL4b0B/h237h6sLAEo08cqwisO3 v3xw== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q4-v6si4665132pgj.417.2018.09.26.00.54.44; Wed, 26 Sep 2018 00:55:00 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727482AbeIZOFw (ORCPT + 99 others); Wed, 26 Sep 2018 10:05:52 -0400 Received: from mga04.intel.com ([192.55.52.120]:38217 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727055AbeIZOFw (ORCPT ); Wed, 26 Sep 2018 10:05:52 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Sep 2018 00:54:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,305,1534834800"; d="scan'208";a="72957639" Received: from jmoran2-mobl2.ger.corp.intel.com (HELO kekkonen.fi.intel.com) ([10.252.26.29]) by fmsmga007.fm.intel.com with ESMTP; 26 Sep 2018 00:54:07 -0700 Received: by kekkonen.fi.intel.com (Postfix, from userid 1000) id AF10921E18; Wed, 26 Sep 2018 10:54:06 +0300 (EEST) Date: Wed, 26 Sep 2018 10:54:06 +0300 From: Sakari Ailus To: Ricardo Ribalda Delgado Cc: Hans Verkuil , Laurent Pinchart , Mauro Carvalho Chehab , LKML , linux-media Subject: Re: [PATCH 1/2] [media] imx214: Add imx214 camera sensor driver Message-ID: <20180926075406.2rvwaxmdk6jsluas@kekkonen.localdomain> References: <20180921085450.19224-1-ricardo.ribalda@gmail.com> <20180921092833.c3bznrhc3yyarmq4@kekkonen.localdomain> <20180924203252.wxeclgjc7zvepyhb@kekkonen.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Ricardo! On Wed, Sep 26, 2018 at 08:06:55AM +0200, Ricardo Ribalda Delgado wrote: > Hi Sakari > On Wed, Sep 26, 2018 at 7:26 AM Ricardo Ribalda Delgado > wrote: > > > > Hello Sakari > > On Mon, Sep 24, 2018 at 10:32 PM Sakari Ailus > > wrote: > > > > > > Hi Ricardo, > > > > > > On Fri, Sep 21, 2018 at 12:15:55PM +0200, Ricardo Ribalda Delgado wrote: > > > ... > > > > > > +static struct reg_8 mode_1920x1080[]; > > > > > > +static struct reg_8 mode_4096x2304[]; > > > > > > > > > > Const. Could you rearrange the bits to avoid the forward declarations? > > > > Const done, but I prefer to keep the forward declaration. Otherwise > > > > the long tables will "hide" the mode declaration. > > > > > > Well, I guess the long tables do "hide" a bunch of other stuff, too. :-) > > > But... I agree there's no trivial way around those tables either. > > > > > > It appears I'm not the only one who's commented on the matter of the > > > forward declaration. > > > > Ok, I will change it, Eppur si muove ;) > > > > > > ... > > > > > > > > > +static int imx214_probe(struct i2c_client *client) > > > > > > +{ > > > > > > + struct device *dev = &client->dev; > > > > > > + struct imx214 *imx214; > > > > > > + struct fwnode_handle *endpoint; > > > > > > + int ret; > > > > > > + static const s64 link_freq[] = { > > > > > > + (IMX214_DEFAULT_PIXEL_RATE * 10LL) / 8, > > > > > > > > > > You should check the link frequency matches with that from the firmware. > > > > > > > > I am not sure what you mean here sorry. > > > > > > The system firmware holds safe frequencies for the CSI-2 bus on that > > > particular system; you should check that the register lists are valid for > > > that frequency. > > > > > Can you point me to a driver that does this? Just for the example. Thanks The imx319 driver: > > I am with you here. The i2c controller is a different driver but is > > integrated with camss. Checkout > > https://patchwork.kernel.org/patch/10569961/ I am interacting with > > Todor and Vinod to enable the i2c port indepently with camss. At least > > now it does not kill the port after an i2c timeout :) Nice!! -- Cheers, Sakari Ailus sakari.ailus@linux.intel.com