Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4223467img; Tue, 26 Mar 2019 05:35:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqyXcuvKVuAKI4vv9DipHqbMB3fmwdeelk+ETwc+MIfKPao6iYLlLp+4TaxJ9kJgreqVyc+S X-Received: by 2002:a17:902:6b47:: with SMTP id g7mr31758875plt.100.1553603710315; Tue, 26 Mar 2019 05:35:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553603710; cv=none; d=google.com; s=arc-20160816; b=kyxo/zPUXneUeD+wNQet/hY1NJHIFAmK6211U2fFew0uTShkEKgv3VNua2GDfE1maU v3mSfcOUPTfdLRYwlXpLMk+4gpTp03tUhtPlUlwqWOEW8yWgPWpgrn+v2rlBtflvJ6D2 YFfypnUCXSXPPZVXHCw5Nh+J1I71UyfshfKzqVG4U/k/j5+56Q11N9trIY2WSEv7CtbI zlzPtDKw+79bvec/bMbH/oRCeDdjAExM6CyuBwIh1qZ3bqdVMtu8oJtVVRBMC4GwJ8O9 ugZfLTFPMBrgDh2CMjjqeU1kQIWv60Px9L3cItmhc6K8277iCfMrW2UyzgQhAyy5OZcw 2jNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:user-agent:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from; bh=t6FccoinWoQpgd9TgmH1cQmATrhTHkFBXdAKl1BDpsI=; b=nS9iRPcBHG+4m6sXWqE2TzFrBDheuZmqxUbC/E79ghpL5Y2bSeJyHjnui+FMZuQaag qCi1KFpBz4LTgtiJv1L66+ra3C9j3qMUnhg4/pEWWzpyZCjgequgymJWDAoIiZ4BQWxf oe2isCtrpL9Ens2G9vd65tQeX5SEvyMvkfT4io00gGb+E2EwGbIDB6KoS/mgyDcf/eNi qgqTkWHBlqObvARO0ZYi6Mf5r8OZ9QBBcySP4pt6/Z4WfnE47+cLppwp6ZOdOZ/d1tKn +M5AodeDlm8Db9RrePOTebTlCVvpQswZp4I5TPq0IRYG6PyhJlhHmGhx0BJ8FlW+T5RJ CRPw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v35si18118240plg.382.2019.03.26.05.34.55; Tue, 26 Mar 2019 05:35:10 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731545AbfCZMck convert rfc822-to-8bit (ORCPT + 99 others); Tue, 26 Mar 2019 08:32:40 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:58005 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726307AbfCZMck (ORCPT ); Tue, 26 Mar 2019 08:32:40 -0400 Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x2QCLkFv018781; Tue, 26 Mar 2019 13:32:12 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2rddh7hf8t-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 26 Mar 2019 13:32:12 +0100 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id ADB4C38; Tue, 26 Mar 2019 12:32:11 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag5node3.st.com [10.75.127.15]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 70DD5579A; Tue, 26 Mar 2019 12:32:11 +0000 (GMT) Received: from SFHDAG5NODE3.st.com (10.75.127.15) by SFHDAG5NODE3.st.com (10.75.127.15) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Tue, 26 Mar 2019 13:32:11 +0100 Received: from SFHDAG5NODE3.st.com ([fe80::7c09:5d6b:d2c7:5f47]) by SFHDAG5NODE3.st.com ([fe80::7c09:5d6b:d2c7:5f47%20]) with mapi id 15.00.1347.000; Tue, 26 Mar 2019 13:32:11 +0100 From: Mickael GUENE To: Sakari Ailus CC: "linux-media@vger.kernel.org" , "Hugues FRUCHET" , Mauro Carvalho Chehab , Arnd Bergmann , Matt Ranostay , Akinobu Mita , "linux-kernel@vger.kernel.org" , "David S. Miller" , "Ben Kao" , Nicolas Ferre , "Todor Tomov" , Rui Miguel Silva , "Greg Kroah-Hartman" , Hans Verkuil , Ricardo Ribalda Delgado , "Jacopo Mondi" , Tianshu Qiu , Bingbu Cao Subject: Re: [PATCH v2 2/2] media:st-mipid02: MIPID02 CSI-2 to PARALLEL bridge driver Thread-Topic: [PATCH v2 2/2] media:st-mipid02: MIPID02 CSI-2 to PARALLEL bridge driver Thread-Index: AQHU4uAlvGbuxz1KVk27cUbYXXfNhaYcKbSAgAAKjACAAYUEgIAAEBSA Date: Tue, 26 Mar 2019 12:32:11 +0000 Message-ID: <231c710f-5a16-29bb-020c-644d88063f53@st.com> References: <1552373045-134493-1-git-send-email-mickael.guene@st.com> <1553500510-153260-1-git-send-email-mickael.guene@st.com> <1553500510-153260-3-git-send-email-mickael.guene@st.com> <20190325114430.zot5tbiczqrhpskl@kekkonen.localdomain> <20190326113437.bpebmfs7mipsg24y@paasikivi.fi.intel.com> In-Reply-To: <20190326113437.bpebmfs7mipsg24y@paasikivi.fi.intel.com> Accept-Language: fr-FR, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.75.127.47] Content-Type: text/plain; charset="Windows-1252" Content-ID: <1073218CE527574D96DF8B0C8BB66382@st.com> Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-03-26_09:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sakari, On 3/26/19 12:34, Sakari Ailus wrote: > Hi Mickael, > > On Mon, Mar 25, 2019 at 12:22:17PM +0000, Mickael GUENE wrote: > ... >>>> + /* register it for later use */ >>>> + bridge->rx = ep; >>>> + bridge->rx.link_frequencies = ep.nr_of_link_frequencies == 1 ? >>>> + &bridge->link_frequency : NULL; >>> >>> I think you need to simply ignore the link frequencies here. The >>> transmitting device can tell the frequency based on its configuration >>> (based on the link frequencies). You seem to have implemented that already. >>> >> Idea of this was to allow some support for sensor that doesn't implement >> V4L2_CID_PIXEL_RATE. Do you think it's useless ? > > Sensor drivers need to be amended with support for that control. > Ok. I will drop mipid02_get_link_freq_from_rx_ep and mipid02_get_link_freq_from_cid_link_freq and only use V4L2_CID_PIXEL_RATE to compute link speed.