Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4340731img; Tue, 26 Mar 2019 07:38:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqwfYNMtswIT9jDWQy3ibQh88lbJtyICCmcA2TMl0gIrrFA7pvOO35on7eEiIgAz18wc7SKh X-Received: by 2002:a63:6841:: with SMTP id d62mr29610940pgc.133.1553611112507; Tue, 26 Mar 2019 07:38:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553611112; cv=none; d=google.com; s=arc-20160816; b=PDdi3muDVwDvTWnOglV1TZFLjoHORwwshqxW1LnyqYzIukJeinf/ldYteraF3JSKAl COAmO9rN7QXGBD1pSe4kaIOfw56JEREmWsBt3DOup9klC7lmHyXp/OeOdc9Dhvbhl4LG Xu+1f8HVKQOkLmBAUnbM49j7es0gEx4fhdYFBb+jyeC1mfHe+4u6MepvTloaWgigFO4F /5dTvDsGjq1Wl6mpfkqa17SCVtraBu7DpPXsZIdFxi2F0G5hfM9wIzrP7ZK2NVNIPIoe SGh3i0uEmnNUBOboqTFYNOe1qcROpJMSDAI9vbqewSqcZYjNcXeVUtAgotlVMrj7hKFO tz0g== 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=WeXuFwvU9X0AioXcqFk/d/WbR0UbFZHh1Beh36NH+sk=; b=HUf/06QQK1boxOyGEG61xDNwVNNX6kZKvAdfzW3NRdsWdWVz1HnenBv0y/LA2aJwvv MOMgwwFmDIrb2kRNB3LpRZ6YTK4j9bBWKXD9GEG8gBUL9WgqNiDHfB4hbSd/nHJi5r50 853XMh9oPzA7xycRHZYBZTfAR2lg6UpU/YrZSROof7RYB6tp6irBaMaGOhmylpT5LHwh z999jRKrQLs9dMfLgbj4LqgTbbURFLn4t2FzZOw8yT1CdN87gXce7WL3/eNB+2MkICcw OdEfFEK7A8RTtVXvyBLn8L7Dfq0ig7q8J6/7rmlLdzjn59DFDxES3xg4xpbM96D/wn29 SHdw== 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 a64si2565956pge.592.2019.03.26.07.38.17; Tue, 26 Mar 2019 07:38:32 -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 S1731786AbfCZOh1 convert rfc822-to-8bit (ORCPT + 99 others); Tue, 26 Mar 2019 10:37:27 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:28869 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731491AbfCZOh0 (ORCPT ); Tue, 26 Mar 2019 10:37:26 -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 x2QEaqHK025210; Tue, 26 Mar 2019 15:36:52 +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 2rddh7j3dp-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 26 Mar 2019 15:36:52 +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 F386938; Tue, 26 Mar 2019 14:36:42 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag5node2.st.com [10.75.127.14]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 611D4A574; Tue, 26 Mar 2019 14:36:42 +0000 (GMT) Received: from SFHDAG5NODE3.st.com (10.75.127.15) by SFHDAG5NODE2.st.com (10.75.127.14) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Tue, 26 Mar 2019 15:36:41 +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 15:36:42 +0100 From: Mickael GUENE To: Sakari Ailus CC: "linux-media@vger.kernel.org" , "Hugues FRUCHET" , Mauro Carvalho Chehab , Matt Ranostay , Petr Cvek , 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 v3 2/2] media:st-mipid02: MIPID02 CSI-2 to PARALLEL bridge driver Thread-Topic: [PATCH v3 2/2] media:st-mipid02: MIPID02 CSI-2 to PARALLEL bridge driver Thread-Index: AQHU47s4T23daefrHk6Z36vjlaOK2qYdtyWAgAAzRAA= Date: Tue, 26 Mar 2019 14:36:41 +0000 Message-ID: References: <1552373045-134493-1-git-send-email-mickael.guene@st.com> <1553594620-88280-1-git-send-email-mickael.guene@st.com> <1553594620-88280-3-git-send-email-mickael.guene@st.com> <20190326113308.mp5hqdw3ktbpcawu@paasikivi.fi.intel.com> In-Reply-To: <20190326113308.mp5hqdw3ktbpcawu@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.49] Content-Type: text/plain; charset="Windows-1252" Content-ID: Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-03-26_10:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sakari, >> +static int bpp_from_code(__u32 code) >> +{ >> + switch (code) { >> + case MEDIA_BUS_FMT_SBGGR8_1X8: >> + case MEDIA_BUS_FMT_SGBRG8_1X8: >> + case MEDIA_BUS_FMT_SGRBG8_1X8: >> + case MEDIA_BUS_FMT_SRGGB8_1X8: >> + return 8; >> + case MEDIA_BUS_FMT_SBGGR10_1X10: >> + case MEDIA_BUS_FMT_SGBRG10_1X10: >> + case MEDIA_BUS_FMT_SGRBG10_1X10: >> + case MEDIA_BUS_FMT_SRGGB10_1X10: >> + return 10; >> + case MEDIA_BUS_FMT_SBGGR12_1X12: >> + case MEDIA_BUS_FMT_SGBRG12_1X12: >> + case MEDIA_BUS_FMT_SGRBG12_1X12: >> + case MEDIA_BUS_FMT_SRGGB12_1X12: >> + return 12; >> + case MEDIA_BUS_FMT_UYVY8_2X8: > > This is good for the parallel bus, but on CSI-2 side you should have > MEDIA_BUS_FMT_UYVY8_1X16 instead. This isn't technically correct for a > serial bus, but the custom is to use the one sample / pixel formats on the > serial busses. > Should MEDIA_BUS_FMT_BGR888_1X24 be something like MEDIA_BUS_FMT_BGR888_3X8 for parallel output bus ? Rgs Mickael