Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp618961imm; Fri, 14 Sep 2018 03:52:10 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZfD64Jfwqjb5t8CxOTWxHWMEtRJ4cPTVaBcOduvpcAdKtoxsBNhvCkWbU71+/KPQSKQsCx X-Received: by 2002:a17:902:3041:: with SMTP id u59-v6mr11398056plb.99.1536922330261; Fri, 14 Sep 2018 03:52:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536922330; cv=none; d=google.com; s=arc-20160816; b=qTGpmQHOH3wPfZbCY/nqxaWQz57IgU08x4QrswyB1EqSJ4Npt42J+JFFqJny3fU3Z8 +YH5zBoIDRlRbfki3odEbIat4phbjd37tqKhRUi1RNxRcdIHlIL3vw+o4bg8e/OOb4+x vPnZZvB39dbMzOxJGk6Ragyd5ApPQos71qttGAnMfP0Ll+LSz7yWeeGFH37q6tIzSpA/ lEeOG06Sl05goI6390jcMC0lPv6y7LqrR5XHvC4y6IOMqztqLQH0EUBfvcqF9fIS/LRQ TGiQ6yP8VCx+9tG9yeleR1iyUTAjLP9lzEegB2pW5SYlEd+UvEzB3sPQDribr/mcyt4t pAIw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject:reply-to :dkim-signature; bh=mlXGjJzO3km7lhK+9ultNkNgIgYdRmMgnw+kispfN7U=; b=i/6mgJUdGtl3qt5MEBYasgrPxwEUFi1jv0bWdTOVFTt5TrQKfQFgd8nmN3o3qpKK6O qWlJG2ZoQyLVg0P44e3HlYCavE9QGmnqgn1c6ZJkh4l799iXbS2k2yqXza6lqY2SkPKS TwBB9j0eiLBnaOzZHAZqrv2G10LiPQeHhJW4dkTfub9IADjUZE/mKyIQ8MquIOhLOEMV 0t5ErUn/j8Cp4YHsVYjd2QlFVODvcQXBbUebTHLTyIeQYvhkTHmrPK457+Y6qiIg8Rk2 w6wLVY4F9qKkkG2NGtxYNpl2avGKELKURcpIHyORebGw5lqin+MIfdc/wexRxsymcrkp roWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=FDWJEjDf; 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 q26-v6si7002148pgl.556.2018.09.14.03.51.54; Fri, 14 Sep 2018 03:52: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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=FDWJEjDf; 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 S1728282AbeINQFp (ORCPT + 99 others); Fri, 14 Sep 2018 12:05:45 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:34598 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727839AbeINQFp (ORCPT ); Fri, 14 Sep 2018 12:05:45 -0400 Received: from [192.168.0.23] (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id EBE33CE; Fri, 14 Sep 2018 12:51:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1536922307; bh=0BAjtTmzkTbxhKPfW67FyIEXq8rqcz+B9c9rwrSMhXI=; h=Reply-To:Subject:To:Cc:References:From:Date:In-Reply-To:From; b=FDWJEjDffEBuE/LUQiBJ0mQTNTNzkQ3H+PQQcVEt3eAMX3Ycc8ALLJo8NLt6qK9h7 tbrR/auaag/IokEQAegsEHwWoiCZK1MZAPwFS8IFqRDCtEl1UE6ZYjrTIsNRC0Nt9Z MUgu1X1wWMQb0+sqoPXOijmFITuoUVVAIedQFbM0= Reply-To: kieran.bingham+renesas@ideasonboard.com Subject: Re: [PATCH 1/6] media: vsp1: Remove artificial pixel limitation To: Laurent Pinchart Cc: mchehab@kernel.org, linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180831144044.31713-1-kieran.bingham+renesas@ideasonboard.com> <20180831144044.31713-2-kieran.bingham+renesas@ideasonboard.com> <3874771.GdJIGdZf8f@avalon> <30741876.5p2uMOrImx@avalon> From: Kieran Bingham Organization: Ideas on Board Message-ID: <332b6954-4188-4bdb-f38f-46b2c0e5a763@ideasonboard.com> Date: Fri, 14 Sep 2018 11:51:44 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <30741876.5p2uMOrImx@avalon> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14/09/18 11:47, Laurent Pinchart wrote: > Hi Kieran, > > Would you mind changing the patch subject to "Remove artificial minimum width/ > height limitation" ? Not at all. > > On Friday, 14 September 2018 13:23:04 EEST Laurent Pinchart wrote: >> On Friday, 31 August 2018 17:40:39 EEST Kieran Bingham wrote: >>> The VSP1 has a minimum width and height of a single pixel, with the >>> exception of pixel formats with sub-sampling. >>> >>> Remove the artificial minimum width and minimum height limitation, and >>> instead clamp the minimum dimensions based upon the sub-sampling >>> parameter of that dimension. >>> >>> Signed-off-by: Kieran Bingham >> >> Reviewed-by: Laurent Pinchart >> >> and applied to my tree. Would you like me to resend the patch ? -- Regards Kieran >> >>> --- >>> >>> drivers/media/platform/vsp1/vsp1_video.c | 7 ++----- >>> 1 file changed, 2 insertions(+), 5 deletions(-) >>> >>> diff --git a/drivers/media/platform/vsp1/vsp1_video.c >>> b/drivers/media/platform/vsp1/vsp1_video.c index >>> 81d47a09d7bc..e78eadd0295b >>> 100644 >>> --- a/drivers/media/platform/vsp1/vsp1_video.c >>> +++ b/drivers/media/platform/vsp1/vsp1_video.c >>> @@ -38,9 +38,7 @@ >>> >>> #define VSP1_VIDEO_DEF_WIDTH 1024 >>> #define VSP1_VIDEO_DEF_HEIGHT 768 >>> >>> -#define VSP1_VIDEO_MIN_WIDTH 2U >>> >>> #define VSP1_VIDEO_MAX_WIDTH 8190U >>> >>> -#define VSP1_VIDEO_MIN_HEIGHT 2U >>> >>> #define VSP1_VIDEO_MAX_HEIGHT 8190U >>> >>> /* >>> >>> -------------------------------------------------------------------------- >>> - >>> -- @@ -136,9 +134,8 @@ static int __vsp1_video_try_format(struct >>> vsp1_video >>> *video, height = round_down(height, info->vsub); >>> >>> /* Clamp the width and height. */ >>> >>> - pix->width = clamp(width, VSP1_VIDEO_MIN_WIDTH, VSP1_VIDEO_MAX_WIDTH); >>> - pix->height = clamp(height, VSP1_VIDEO_MIN_HEIGHT, >>> - VSP1_VIDEO_MAX_HEIGHT); >>> + pix->width = clamp(width, info->hsub, VSP1_VIDEO_MAX_WIDTH); >>> + pix->height = clamp(height, info->vsub, VSP1_VIDEO_MAX_HEIGHT); >>> >>> /* >>> >>> * Compute and clamp the stride and image size. While not documented in > >