Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3001875pxa; Tue, 25 Aug 2020 08:51:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxB0tsgg3ZqcNV25eB2kiTbv36KKtPHBIRIIhivryzO8YErhgzLueWdRN6UAGpGGdVO5a0o X-Received: by 2002:a17:906:38c7:: with SMTP id r7mr11550974ejd.118.1598370708702; Tue, 25 Aug 2020 08:51:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598370708; cv=none; d=google.com; s=arc-20160816; b=mcCuW1eMTFB7DWA0Nr9uZiQDA/Xj7b/YuzYsxOdb6frxVZ2JoWVEuZyACCIbEoMvKZ 2WlRldAEnSayQFz/RcVbHmKIoiPiNp0fwapEg2X1kk0k/zXdlbs9vt0XjyaVUy2gdoOC pIHsycbObye4x6KhoYYc58CsvZeIg74ZnKcR0R9P4QXyHEFlIHeZzpccNURNzlIjW/i1 r91A+zKE4IimBtwZbPxUUY4iLIaKS6DCEGqdW8p9JnifIxoRQpJlKJngmREzsPZLaoGy X2b5qbrIL/mUw92QM3+PTLTkV8mwmSqf2buix4cZZ2Px5fC/ZfIwmz8kFLht70/HfsUb 1G7Q== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=syhxO2w3ItndECPvCwC1i8aUydh/Q+p91397sI8oDZc=; b=cqDYP+SSFGe9uObN4Brb8Ylg/HtMjtCyS06hGbhLYpFhF6ZzREZPb2FQgRvXUX5HvJ odE9tImWIi8QSHZTzUu9XmMq7Uq3HAH/eZ7vAe7GcvsCEc582SDVWsfhDXwofBqhRagZ j1W7zogR+rI4ZIFT+ILMgnRWO8fvy8UmwElZCcn/KD878/3dbR/7p44W5tEINPukLkYT 3I1XOk37xC4LOVu7u4ZleeoYPpi99sjo1xCc01Y8J0iFH1XzOfI0i1EAu6OrSQv68wjF OflsrQudekSxcKRaIW1+t3R8qW/gE3vz+zxufKbuTksT5Ar/8tXvnflGboeoHiyc1EtJ hpng== 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 i20si9001636edx.426.2020.08.25.08.51.26; Tue, 25 Aug 2020 08:51:48 -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 S1726871AbgHYPus convert rfc822-to-8bit (ORCPT + 99 others); Tue, 25 Aug 2020 11:50:48 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:37452 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726610AbgHYPuq (ORCPT ); Tue, 25 Aug 2020 11:50:46 -0400 Received: by mail-lj1-f195.google.com with SMTP id w14so14391751ljj.4; Tue, 25 Aug 2020 08:50:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=uxFnQngY1sbC1vkgUVU9ZThc1q84F2BALBF2JF4Hio4=; b=ssM2w+s0v92K52IKPVBHowKRPuW3t1OoO1Xdd6V75ln2hOYz2Mum5KRBkefPa87c5E h42QPyZeRFqNC0NddtnXZcFIKlzyXMW/naS3qx4x6s/CMblHEE1ALW6e3TT5ALwgrXRe Rf/4Prffuu/x8SPy9TfH3pTQW2jXzUAyCmxJvjPP4GBnvcO7kXUGq35K+zfyQY2I+Gjx TOszehTsEvqmSamOuuLlpWcA9XGtapLchIMxFYwPC+lhhXEYWlbfBsqWG4Fo762PEvMT Z85Fas15Uu5rXBIESItBLlI2oVUupywMAN3CR0wLPDk/2N5uXLU/E/j9YIaHidWo0sKP JWqA== X-Gm-Message-State: AOAM5300WoFDoIjfCzh5l+G+Wnr7paDsS20HnSQnExeQlkmacJGXSVq6 Iu6BHLcoMpHFww715dnAFkY/kRXx19ZFGg== X-Received: by 2002:a2e:a28d:: with SMTP id k13mr5040448lja.11.1598370643927; Tue, 25 Aug 2020 08:50:43 -0700 (PDT) Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com. [209.85.208.178]) by smtp.gmail.com with ESMTPSA id e25sm2907268ljj.130.2020.08.25.08.50.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 25 Aug 2020 08:50:43 -0700 (PDT) Received: by mail-lj1-f178.google.com with SMTP id v4so14410865ljd.0; Tue, 25 Aug 2020 08:50:43 -0700 (PDT) X-Received: by 2002:a2e:9b8e:: with SMTP id z14mr5274009lji.47.1598370643108; Tue, 25 Aug 2020 08:50:43 -0700 (PDT) MIME-Version: 1.0 References: <20200821145935.20346-1-kevin.lhopital@bootlin.com> <20200821145935.20346-2-kevin.lhopital@bootlin.com> In-Reply-To: <20200821145935.20346-2-kevin.lhopital@bootlin.com> From: Chen-Yu Tsai Date: Tue, 25 Aug 2020 23:50:30 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/7] media: sun6i-csi: Fix the bpp for 10-bit bayer formats To: =?UTF-8?B?S8OpdmluIEwnaMO0cGl0YWw=?= 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 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 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") > --- > 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 >