Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1588524pxb; Thu, 4 Nov 2021 05:10:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhKzzkZtSZab+bkmKSOGP3ZFfoChoJzZe71JGHKMR4oEOn0Z+f7TNrvfSbat08WGNF4h8e X-Received: by 2002:a05:6402:520b:: with SMTP id s11mr30476933edd.213.1636027828952; Thu, 04 Nov 2021 05:10:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636027828; cv=none; d=google.com; s=arc-20160816; b=qH10GCyX5tzZ5lCYOENnns2G+mViajVGAK6XpDTiq13EqFS7bN4/Ig0kOFOflolVaX 01IzDDG3+bKNeAcmaND8/IPiO+AO7ic07gMAvuHbFJVJUyIEgRT7BahqtmzGUm3OM48j CNlBaGJs6E+bDgbga8qzNCW/msBIMSKs6Y3um1tn72urZtcBL+QS1+pTDs/iOx6ehSk7 eiDxmau1+uOqqVrzuZNFIwEX7X3xqXm3hSqt8pGlZZD4HjoZppDSLFw88iBobN6NVXRl T3v2pxhAXzipyRnzZ/fklulnkWr5onCe8ZzfEw+Rygp6rFDM6p7L+lsLf2tJTq6Ww1X/ 9smA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=5vArgZYNRl9c5esAEQTx5/Fxqqv4DhPi1c/kMlueXug=; b=l+8BLiGD1PdqmW++pt2FgkW/9fD24B4UgCswOFdXx0HW/FhKXIg7L0c5cEwQTSYjO5 wpKmXx+ayp44DDWYnT4fMWFESchvMiwiKJMv+D9x1RjCeKqMfRH1Ed0OZEkR6aUwGrBn xeEpMUs9S6pmtWc88Qfst8MA0lF0gLof140nhSNqcbza1UxUkw+jKEK+hVJHV4PMEeWy s22K9Ju2wyEWCWLMJgbPiFpBNkcMuv+IGB9Pq6DnT6yRAj58GLjI56LBv13K+A0iiqHl MLhMkNF7GdiZQqx6AjKFLTD1O+f3ghLxH4YUzOdsOxUwJwR8lECs/TDe43YTkHl01AdF /boA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=N3yNWtDZ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b13si532094edd.257.2021.11.04.05.10.00; Thu, 04 Nov 2021 05:10:28 -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; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=N3yNWtDZ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231587AbhKDMIw (ORCPT + 99 others); Thu, 4 Nov 2021 08:08:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:37176 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231340AbhKDMIj (ORCPT ); Thu, 4 Nov 2021 08:08:39 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B371861246; Thu, 4 Nov 2021 12:06:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1636027560; bh=2T0ZwNsJcy30Fl7Ibrebx0nzNGLAhY58MGxL/A03P6c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=N3yNWtDZFdq0nWqZA6s/lgz4Rw4jC6r1hRfe1qcRFKFqgaz+FehNRNvfxrMmB3rQx KJWNtLLO03ojZk5XJBjBAxIcGruw9OUL31oAWpLxukRsYJx/Fa7xyLiPB1yYcfjM+f ibBSIWd/r8mAXExyni7mSmmQiehHCdN6x5bOWH6QAAgnRPAkdtVVexLbfz+Ll/WecJ g/wteL9UyYBE6MXBfqLkxjk9FWDNZjfiJyN1QyvQQuFZTMv0zDlti8NJdhRABGJPpo UWk5IouZFr9oRuLl2JsLHIf9R8Y0sxMIZvFjzZwzeo95IpBZ/1nhD09uPpyNpZ9GZi oUgEFC9hUpvzQ== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1mibVG-005nHh-5q; Thu, 04 Nov 2021 12:05:58 +0000 From: Mauro Carvalho Chehab Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Mauro Carvalho Chehab , Alex Dewar , Aline Santana Cordeiro , Arnd Bergmann , Greg Kroah-Hartman , Hans Verkuil , Laurent Pinchart , Mauro Carvalho Chehab , Sakari Ailus , Tomi Valkeinen , Tsuchiya Yuto , Yang Li , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-staging@lists.linux.dev Subject: [PATCH 2/7] media: atomisp: move a debug printf to a better place Date: Thu, 4 Nov 2021 12:05:51 +0000 Message-Id: X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Mauro Carvalho Chehab To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The sensor width/height report is alread being printed after its calculus. The only reason for an extra debug printk is when dis is used. So, change its message to reflect and move it to be inside the if checks. Signed-off-by: Mauro Carvalho Chehab --- To mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH 0/7] at: https://lore.kernel.org/all/cover.1636026959.git.mchehab+huawei@kernel.org/ drivers/staging/media/atomisp/pci/atomisp_cmd.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/staging/media/atomisp/pci/atomisp_cmd.c b/drivers/staging/media/atomisp/pci/atomisp_cmd.c index feb75491a273..76c9e89afb48 100644 --- a/drivers/staging/media/atomisp/pci/atomisp_cmd.c +++ b/drivers/staging/media/atomisp/pci/atomisp_cmd.c @@ -5583,6 +5583,10 @@ static int atomisp_set_fmt_to_snr(struct video_device *vdev, pad, set_fmt, &pad_state, &vformat); if (ret) return ret; + + dev_dbg(isp->dev, "video dis: sensor width: %d, height: %d\n", + ffmt->width, ffmt->height); + if (ffmt->width < req_ffmt->width || ffmt->height < req_ffmt->height) { req_ffmt->height -= dvs_env_h; @@ -5593,8 +5597,6 @@ static int atomisp_set_fmt_to_snr(struct video_device *vdev, asd->params.video_dis_en = false; } } - dev_dbg(isp->dev, "sensor width: %d, height: %d\n", - ffmt->width, ffmt->height); vformat.which = V4L2_SUBDEV_FORMAT_ACTIVE; ret = v4l2_subdev_call(isp->inputs[asd->input_curr].camera, pad, set_fmt, NULL, &vformat); -- 2.31.1