Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp154400pxa; Wed, 26 Aug 2020 07:16:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBaFcXLkU8Q3LhnfxeBjnNFZI74dFJq+dWkNj2Hzot++cdc2+EyTzP17mhRRGDBnKO7+B5 X-Received: by 2002:a17:906:5205:: with SMTP id g5mr15548859ejm.488.1598451386632; Wed, 26 Aug 2020 07:16:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598451386; cv=none; d=google.com; s=arc-20160816; b=rQMVdm96UACElyr0DFvyLwJUZOmMulAOLUeiqncBPBUvW/2COLJKPCB/aE6vQLgwsa cOk6iDhH1GkC3e0osQT9qJ+ppPEynTURqa9YoKAuJ9EExEkCb9qN7MEel/QIQJkr0Wig 5ClzYd2J+2b8vIyBpRPVjofWSaodHnzAhl0krfV4YOfyHDhquidAi7/zGRZBajQPlz3w 5rnQ7if1iVVxnIVCRUF6nBRns3p4firMcRw4aUzkG4VEddYkt633Ktpwam6PziBUxMqV ugEA2J8mLQ3NO1hVS6v08nwQYBF/vQNEsSpX8E81tlMGFJvY9CMutmhs7wdhwucnikKX CPMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=e/i0ljnxVjO6vg4XRXozHmOOOvkSTIZFv+xfo+mEBKU=; b=fGqC2ggrMEAAIV0V9fAv7ZbYmHBYPcEkfzdrOVVCDHXj452/0jtvOi09Geu3A0rpxh S5e5KWdzUfP2zwtYSDAtn7yIQZANEuMGKOiGKl5+BhV0N1Tt9R0ZTAwVvuF8lg+e1Sy8 Wl3Wru+dM5OIT6k14lxQE1z+q9NI3zg0AD4OcP5Q+xnYYx3mwE5DfLr0U9caYB3gVuEN bTg7ffy8EkKa46OdBIFd86Wd+bMTfUbpQfwJk5i9qO5HXOPPHcaADQ2urjqXXnoaseTX zVaA9PNgGMgBu7tf/u9IzFZYR/+02UumVecHYOMp2Kssyuxjb9M0II/xJrvVu7F12P6k PNPg== 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 f9si1863276ejl.424.2020.08.26.07.16.03; Wed, 26 Aug 2020 07:16:26 -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 S1727875AbgHZJS7 convert rfc822-to-8bit (ORCPT + 99 others); Wed, 26 Aug 2020 05:18:59 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:44529 "EHLO relay7-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727793AbgHZJS6 (ORCPT ); Wed, 26 Aug 2020 05:18:58 -0400 X-Originating-IP: 90.89.180.255 Received: from lhopital-XPS-13-9360 (lfbn-tou-1-1372-bdcst.w90-89.abo.wanadoo.fr [90.89.180.255]) (Authenticated sender: kevin.lhopital@bootlin.com) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 02DA62001E; Wed, 26 Aug 2020 09:18:50 +0000 (UTC) Date: Wed, 26 Aug 2020 11:18:50 +0200 From: =?UTF-8?B?S8OpdmluIEwnaMO0cGl0YWw=?= To: Chen-Yu Tsai Cc: Linux Media Mailing List , Mauro Carvalho Chehab , Rob Herring , Mark Rutland , Maxime Ripard , Yong Deng , Philipp Zabel , devicetree , linux-kernel , linux-arm-kernel , Paul Kocialkowski , Thomas Petazzoni Subject: Re: [PATCH 1/7] media: sun6i-csi: Fix the bpp for 10-bit bayer formats Message-ID: <20200826111850.06cbe400@lhopital-XPS-13-9360> In-Reply-To: References: <20200821145935.20346-1-kevin.lhopital@bootlin.com> <20200821145935.20346-2-kevin.lhopital@bootlin.com> Organization: bootlin X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Le Tue, 25 Aug 2020 23:50:30 +0800, Chen-Yu Tsai a écrit : > On Fri, Aug 21, 2020 at 11:00 PM Kévin L'hôpital > wrote: > > > > 10-bit bayer formats are aligned to 16 bits in memory, so this is > > what needs to be used as bpp for calculating the size of the > > buffers to allocate. > > > > Signed-off-by: Kévin L'hôpital > > Please add: > > Fixes: 5cc7522d8965 ("media: sun6i: Add support for Allwinner CSI > V3s") > > I will add this, thank you very much for the review. Kévin > > > --- > > drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.h | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.h > > b/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.h index > > c626821aaedb..8b83d15de0d0 100644 --- > > a/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.h +++ > > b/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.h @@ -100,7 > > +100,7 @@ static inline int sun6i_csi_get_bpp(unsigned int > > pixformat) case V4L2_PIX_FMT_SGBRG10: case V4L2_PIX_FMT_SGRBG10: > > case V4L2_PIX_FMT_SRGGB10: > > - return 10; > > + return 16; > > case V4L2_PIX_FMT_SBGGR12: > > case V4L2_PIX_FMT_SGBRG12: > > case V4L2_PIX_FMT_SGRBG12: > > -- > > 2.17.1 > > -- Kevin L'Hopital, Bootlin Embedded Linux and kernel engineering https://bootlin.com