From patchwork Thu Oct 19 08:37:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Qian X-Patchwork-Id: 155377 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2010:b0:403:3b70:6f57 with SMTP id fe16csp239889vqb; Thu, 19 Oct 2023 01:38:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFBai+NtMRgOwf9ddK6OiyAXqxEyyYOzjaUnzDeaO37YXvLyYDheChDy4D+REmDCbxja3UM X-Received: by 2002:a17:903:744:b0:1c9:dc52:9d67 with SMTP id kl4-20020a170903074400b001c9dc529d67mr1258414plb.39.1697704687367; Thu, 19 Oct 2023 01:38:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697704687; cv=pass; d=google.com; s=arc-20160816; b=o2BjqL3FBeAngzIO0kDThQbP59e4sT7BGtNSfkzehgK3Q9GEePhOID2yXg+6yUlS07 Ib+yXr6y5Pc7rUWHLv+FiawzF5NTTxKM71zxvkhJOZDSE6uoiQTJCnNFHnM5fV1wPUJ4 e/Jv+k7kiK4s6ZAN1lzmzvmpIX7AeJIDwrLbpeqF5bp1X6FZHFGH6ivjNcnEQcYLVMDy 9osNsV+h181XR5whh+TIk4q0Xl1T5fuYHP+bxv2/+cYr2B6tosdjqMXb2HuzQ8TUOA6u To3BhZV2ukk6ZXAiWuvWfg59Or9VfcwipUzqQzyQtbFB9z23EqcB9s1LoK+ieeVi5yX1 77CA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=NB247QE3/hrm6hnTc1gGfSBroLRmuEETe6HECkNCIgg=; fh=jHoa7ohAdc4I1E1g0YioNHe/I/s0e2GUxRSPWJZB+k4=; b=sL7pzO9XfCnw/vnCAdhoUxhsSqVH8uVYvGkC7oAwlmTdlBFxsPg/9Tx4mQ5cO9rJd5 n1+as9aCcp+pc4v83ev9AChW8SaqYmPeCgvuhiMUMP7v2eTkcFDqH3lR+RgncGvzrWA5 h0/1sjGvlqF9iaB4GpsziVWD5vldjtELOy0oO+oxrHcPtKa8csWYcPD6UmfSZ/n5KlNS bPMOUEmof6qMtw9U8a+npBzrWXkxdc+jb3fEjsengaHiHVzXdduNg6ejKSw8kjcZ2KyJ UX9bFtLNLdab5zDaqmB892iB3rcqYAlj0OisSj9bQ/Ygow8Q5YliQIqi6ltvOmGkfviu nG6Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="gN/UkIjQ"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id c15-20020a170903234f00b001c9b258508dsi1807334plh.248.2023.10.19.01.38.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 01:38:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="gN/UkIjQ"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 5F6F0818FBF4; Thu, 19 Oct 2023 01:38:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344919AbjJSIhw (ORCPT + 24 others); Thu, 19 Oct 2023 04:37:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235146AbjJSIhu (ORCPT ); Thu, 19 Oct 2023 04:37:50 -0400 Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2072.outbound.protection.outlook.com [40.107.241.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A85A129; Thu, 19 Oct 2023 01:37:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TAYuyyqQJ/oZ9wcC70z19P41z3e82bLCwXrNu7DrAvEBumTDEMBRCg8VhdQhJ9mPuStiff1mnEHk306ZmPzVh/gUQ0iY3yzfiHsUYTWFP9RbptN07xLYGq6GDLPS1tZi1hzCHr7aM2HJ5VNDaByOTmuROaqkm+uarWaXwiQMc/z1I6G70mYpHCup0gR11Y3+wfdmy4PyNJPhxKlbesK3qENWL6rKt/p7w62CWrsIyD1p3XbrNP3K9Qk/ZwhOPPWSCPWlTmvVz5xZY+FWrbupli2szPZclSIOMOB5No7f2iaV65Qup7RqOytlmTiEFpJXI+40eKrC7MkYEmd9o6kTLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=NB247QE3/hrm6hnTc1gGfSBroLRmuEETe6HECkNCIgg=; b=lauPAFB19xf8XSr4Z+cnUgEGmDLmS/PNyi17tGbT/dcN4IFMF+325cgGcB8c0MERC9V8/Nq4QNaR8hbBr0IS8CS27sLsnernIGE6MxO24TPhFGID+SzP/gHfDrgRnT4AjeCo0GZbp/HhSf7tJDNNPUppNOKb2U7CgxbeE6t1F6MiLFklmGKqiirKOu6a8CMi2wtVG8ckvWtpIpoXt8lJzlBz4gag+p3F5Y9zRwRoE1RkRX98FMb4KvJRu1Kme2P9bbjN0s5523BK6QQZ68Y9WrYu2IMca4h6u7foHUPLBrm3wdYKVMnavx1y5t7M0ek9hthTDehQcw/pGqWxguFfwA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NB247QE3/hrm6hnTc1gGfSBroLRmuEETe6HECkNCIgg=; b=gN/UkIjQtk0mnBLFcbbgIbKxs2/WdmUZnNCnzZTlCPc7+6euL85o7vwE5nWRswFpDYqFI7e4e0a6a/0OnHGDt6lrrWyGICk5C/zbbVoGrx6GmUBXph+v9NQ7WQviSw0EpabgjNNBAq5sHvZ9o9vhXGbaH6Gh34NVfTluCKwRT68= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB6341.eurprd04.prod.outlook.com (2603:10a6:20b:d8::14) by AS8PR04MB8724.eurprd04.prod.outlook.com (2603:10a6:20b:42b::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.7; Thu, 19 Oct 2023 08:37:45 +0000 Received: from AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::6e53:39fc:f010:30d5]) by AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::6e53:39fc:f010:30d5%4]) with mapi id 15.20.6907.021; Thu, 19 Oct 2023 08:37:45 +0000 From: Ming Qian To: mchehab@kernel.org, mirela.rabulea@oss.nxp.com, hverkuil-cisco@xs4all.nl Cc: shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, xiahong.bao@nxp.com, eagle.zhou@nxp.com, tao.jiang_2@nxp.com, ming.qian@oss.nxp.com, linux-imx@nxp.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] media: imx-jpeg: Remove some redundant error logs Date: Thu, 19 Oct 2023 16:37:35 +0800 Message-Id: <20231019083735.10876-1-ming.qian@nxp.com> X-Mailer: git-send-email 2.38.1 X-ClientProxiedBy: SG2PR02CA0132.apcprd02.prod.outlook.com (2603:1096:4:188::15) To AM6PR04MB6341.eurprd04.prod.outlook.com (2603:10a6:20b:d8::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB6341:EE_|AS8PR04MB8724:EE_ X-MS-Office365-Filtering-Correlation-Id: e871eb35-4d76-4199-48b4-08dbd07eaaca X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: k4St3Wg4o5vaholA/JzWRQUsKJxy6TffB6K4Gu0WJ5y2a3JoX4tvuoB2dLlOdPknawtOXVJcCJp9bQzkZ5xnR3ZW2EJyrTXx5bWg2d8L55l/+MGJzq6MCyqV/MEPjeVIyu+vCtb58MUjRPK+7+Q5hCCIdgPf0sjVCLuYlsy7dTBLKRDxJ8li7+ZJCxs7hYJqnu1RkAgPbCX/Dr4FYnRxe7fwblFyXp23Dauu8we6hqL+T3K8cN0UhK7T4Qqm9tMYn9Sw2VHBMEYaxtx8CpcY4a53BEcNjAldcX2+NkvVKlB/V76kxdFig7HpqYuOmLE7MDwR/FmPahkxwp2p81d9vgn1mlozbKjZZ4IsXyoJTOJo2A4C6FfrBXeIlABjqfxRfjEV2g88jrdHYWdrRJdlwAzerd4+ctwAuuOI6ck/Xzs9pmxnGbtpfwN7Vfeb1TAQaHFJFGtsBJ3TRjmP0TeS2Ue40vt4uPEAZtNcULeBZcRhLr/UDyntOQWd/vSW2z2EVn0Fgr0f2LKPUepJptezbBZIi/9MpGa5LPTuIsx6vqdu6gQ6gYgk3vIhdJxhg2ZqZvFwoaH6bMs6knZpTddDiPnK5RqE2rqI1J+1tjt9iffj0gipcwLjMxI/oSSEk4be X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB6341.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366004)(346002)(376002)(39860400002)(396003)(136003)(230922051799003)(64100799003)(1800799009)(451199024)(186009)(38350700005)(6506007)(86362001)(41300700001)(4326008)(36756003)(2906002)(38100700002)(1076003)(83380400001)(6512007)(26005)(2616005)(52116002)(44832011)(5660300002)(8676002)(6666004)(478600001)(6486002)(8936002)(66556008)(66476007)(316002)(66946007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ZT8OsLAhhLfdcx2dgk7aN++773y+Svp1G0HBs+5bdcjijfcBMrVT5kAbMZ7E6wdHDiv0tNqGmdrfo4ed8NPQSmzz2nj4ALKud+0QT6BsnYfl9THq6QT8bWaltvKts7vREl9tqJ2U2bbdckfV4gdkfJN1YVdxmOk6YGKZy7PMs12axWt9Tq5oWDKkuQb762KeoBj34Ugbesi80McdGvwb+qsoTmWhxVe7GwUwojBhLB/zHNXT19OdA88xMUL25+ayDKP7nnYxPrWXvxBhCX1+W3LWjUI8MR8+UEnUxj5NuBCbZolgPHHqsxSeY/UNaZAHn4nPXGUV5H4Dxu+qlqivfgr1lcz7p9ZKaQRw9J1jnIFx4vXj2wO/r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wGrm99s9WvpBSrjtVLfWAIWvCBVuxtv2msG6cmepXxiB+/zB/EOfDGGHCOm/GNIg1dJKJGXn69du+BocLjV8+XmwpWbhAKiT0xiCO/NgZUrG99cBkBwS7HKw8VwDWo7uzr9SEMZ36yqD X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e871eb35-4d76-4199-48b4-08dbd07eaaca X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6341.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Oct 2023 08:37:45.5587 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Vdq8+ZBdLJUbSret7HtkzpuFEGAgWubybUe0MQCN5vRGky2dMp2hdqbKQBxQPW8NlTt/VoFmeGSgDyi65bjMlA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8724 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 19 Oct 2023 01:38:04 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780172390128764845 X-GMAIL-MSGID: 1780172390128764845 If the picture size parsed by decoder is different from those previously established, it's a normal flow of dynamic resolution change, not an error case, the log may mislead that some error occurs in decoding, so remove the error log in this case. Fixes: 2db16c6ed72c ("media: imx-jpeg: Add V4L2 driver for i.MX8 JPEG Encoder/Decoder") Signed-off-by: Ming Qian --- drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c b/drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c index c87603cb4a6f..9fe6424758f8 100644 --- a/drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c +++ b/drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c @@ -1827,17 +1827,6 @@ static int mxc_jpeg_parse(struct mxc_jpeg_ctx *ctx, struct vb2_buffer *vb) q_data_out = mxc_jpeg_get_q_data(ctx, V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE); - if (q_data_out->w == 0 && q_data_out->h == 0) { - dev_warn(dev, "Invalid user resolution 0x0"); - dev_warn(dev, "Keeping resolution from JPEG: %dx%d", - header.frame.width, header.frame.height); - } else if (header.frame.width != q_data_out->w || - header.frame.height != q_data_out->h) { - dev_err(dev, - "Resolution mismatch: %dx%d (JPEG) versus %dx%d(user)", - header.frame.width, header.frame.height, - q_data_out->w, q_data_out->h); - } q_data_out->w = header.frame.width; q_data_out->h = header.frame.height; if (header.frame.width > MXC_JPEG_MAX_WIDTH ||