From patchwork Mon May 30 07:47:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Qian X-Patchwork-Id: 12864362 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4207AC433F5 for ; Mon, 30 May 2022 07:49:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=IJNMz8+y14D/EMV9Pm+29E4qeT/wxO2mnwL4fEJ//fk=; b=sHWrmAXGoIfSW5 VhhC8qgoe6r8JAp4mIyx4sOUYOJ6L0vVrGP5UhXpV9++0rP9uumwp7yqidb6EcAsy3FZGCNTLkmLe 9YNX2CU/tQBUYEnRncqNpGYQsR9iQu94+MMd5Fm+X7yvS4G1pA//7zNbb6gFNOyOjyY/vKyRCYOrS GQhSS0crz5ivBmT/aUQ9DIRpE7KkSeiM0Y/WgmYNzZiFmSf23D/1yqi5EwiIMpdjHJTHZ4fZ+bhVd 8oReYs/HTpmDlPdpJxIkLy/pIirXCuHaE2OY/33qWXpzfZqueMn4p/vjk1G/Ali1+2s5cQedCR90E ZelrE2Fjqztu1tuFKzRA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nva86-005kdS-Ao; Mon, 30 May 2022 07:47:58 +0000 Received: from mail-ve1eur01on062d.outbound.protection.outlook.com ([2a01:111:f400:fe1f::62d] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nva82-005kbG-Nk for linux-arm-kernel@lists.infradead.org; Mon, 30 May 2022 07:47:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Pb29acZbulvMjKui5bGFMBpx7r5XvUHVR+Mp1d2EZ6i4BjlxqElOvweL9Wq94FBqzCZvGLiSdpo6jyBEXRIYFKPT5WjecwkaWTQIzrJ5a0pk9X8U4wd/kIhuUrTIvz3gygjsLAKkVIW2uKL7wiiz8AUzfQjXLPxxZZ8r1MnKhO7viiEKhNc/AoOKb5Fj5Jae1KxuIj7oAOxx2O4kUL95wt1qPZbBQ61xGT5JjRNeyS887d7E0EbeFQ8HG4tV4Kg3wP9TY+G47YS+xseyeZbo2OU4QojQ161LPgRqyInF4unMduuMt8lz4wDWlMaGiJGh4EsPHiih5wZJZ5tSUmHpLw== 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=qxqRgKoyfAgcmGGEkUFvd31VaN2xxPXhmqHvjq7X/Ac=; b=cqf+deBUnOc/TXVnsOhsEjvuhVzUcCHle67nKoO3lQd0CCgPpmglNVYKc7fCG1lVI3d4j472Sv56ubwRshBdlODu4lq1F+my6XMZuutd+pSiP6uUfAO/AYSVxTET1d1eydBH6h5qt9ZPXXzsIB9r0z8UiE0bnMmYTPf/Khp150YpJk+jqc15HUFUwKdvHvLNauqjqIM4xYYgymdchSCkPNAFtFJSPMInV44+mwjUvP1X/30gRV2wIMPuEAPw7PIqt/mkuNjvQKwdA3K58PmYcY2Fpdc88T6EGVqRok9fCqe9hvsh1xTOAC9WQycI8UrGYq/BhbtsGTA6sttv9zPFvg== 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=qxqRgKoyfAgcmGGEkUFvd31VaN2xxPXhmqHvjq7X/Ac=; b=tENpPTciMMP4NbA6dd8rPASLKlXkauSwPz90gqdaAP1aSUxlnxVlcg3Tv6Acqv9ZgIcnOYlD/ggXQYxQIQA3kiNlZLXMTqwCJsRH8Giqw/eb5KO21BKRV2X9YY48M3WW5w70UN6nCn20TDynM8ifDdOCOQ12RSzLSEgbKQBzJdo= 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 DB8PR04MB6908.eurprd04.prod.outlook.com (2603:10a6:10:116::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5293.19; Mon, 30 May 2022 07:47:48 +0000 Received: from AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::bc48:7565:c619:62c3]) by AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::bc48:7565:c619:62c3%7]) with mapi id 15.20.5293.018; Mon, 30 May 2022 07:47:48 +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, linux-imx@nxp.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2] media: imx-jpeg: Correct some definition according specification Date: Mon, 30 May 2022 15:47:31 +0800 Message-Id: <20220530074731.14252-1-ming.qian@nxp.com> X-Mailer: git-send-email 2.36.1 X-ClientProxiedBy: SGAP274CA0005.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b6::17) To AM6PR04MB6341.eurprd04.prod.outlook.com (2603:10a6:20b:d8::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2bc29ab2-52cc-4380-0ded-08da4210b0f2 X-MS-TrafficTypeDiagnostic: DB8PR04MB6908:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zqXMHkHLUb+PsOZvwavhvufo2pQgQTZR6HBsF/7EOuEe/MpPcGf/4cFbbstuRaVCX+NF//HFGxErnviv+pkwEsB0rmbI5WXuCvvZHrWKX1wBhE3MampQMS68DrVtfgMIFqUFczIyQi2S44duyHBOE3US07evHbDkUUqgxPjGOfm4VohJbOUJMwa4Ifm24YBSvjL/klldM1CgsZuvkWFAySLgEJiaBCKlWlKX7TIuDWiSjtfVzGyeonLsTGKfzm/qoEddNzXgJZy3qTTAyvD+6EsHdf4BbE8YQdedtqzC29Ps+FcVpCVbeu1R7NLqpVt2Rtau3ctrPbirKtqHXLhLQJAxQTGbzzECcXcAr7ArLSKaS7qegY8AawSh5GWez0rpKKkPv2vpU2/vYb4DbwcoEUL5sQhcAJqcgys3pUa05KBf8yjsWwrBbuzaVaDDzp1USbEOR8mA+MJH9QtiHyrelkZ0VF1ppUXN/kEnz/7x7RcK/M2+Z/NZV+QcuCyQKSeoenzHE7g+XCBa0XMlDChVkoiV5NocjvaEvO+ly1aZaOBlYIhGcYSbBfqp35feKtDKOsOt+AE7+yE/S8GHK2WleoEex17/HY7jypmUoAXzKTfqF8fxAdRhCICvytIxJFe3ChqD8w7OfarQ8OUuYrvGg4B0JXwjQZIMUZJ3JMRLUn80/A7URDPf4BZ3vrGFmVUYPi7HRddEE7QrbnPe9etzvQ== 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:(13230001)(4636009)(366004)(5660300002)(83380400001)(7416002)(44832011)(508600001)(8676002)(6506007)(38100700002)(66556008)(66476007)(66946007)(4326008)(36756003)(2616005)(8936002)(6666004)(2906002)(186003)(52116002)(316002)(86362001)(38350700002)(26005)(6486002)(6512007)(1076003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: OUGRynSIDJLPsW09v/TcxCrnmf9j1lvpJVLLDvDqU000FRdofxKu2JBQ5M2y3zpVgv+FOqXjYQa84+vssyE4JaQ5AaFunlIA3pops6QWT1w2XmGwxUl6hlntqGICykm5hWIIO11GI0+/NGAd2b2jRkzwCRCRoh5kpOIdijuKRuw17zaUr5fae+hXo5u9RgiMNcjwFS3UxH4B0xAGU3ANzav0fqsyVRWRLYGQnC2w/nUyLbWIx69Abumu0lJiILdW3iIrzNTPvRoaE4H/p1GQ8d+Ov0IdwzKbHbznnF52y+TPfuFVeaoeDlSxEyKhabeae/JK0iTzDjv4JG/qxQH6ehwZs+7uypl/jB5x1TRBkQ3G8WA97XJzFGuBtQSHLuKda/ZqJXKPfsh07W90sR9W6sjo96dMrAGniayJQwZGH33oKxUr6uOR7vw1A8MCXN6XAnry4ihF0xLyUEPBWRR2VpdRnlEdZoRcuZd+9uLGSE0iGMKkjR/27yuC345OKvLJh1pFIOECLN2IRyzgk6ZfO3z7HPsjBj3bcd0aRU+V8I55SXI55JhoGwavs1aTZmP0KF9vkePPvTyqeMB0/sI8MZCXHpPyGsh9Y8JVnsxkLuTmYrBai/bpVH/WGX5ME05pstT8fF+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FI7fieYmnzTMjqLTXtbjw+qfECtdfQiSw== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2bc29ab2-52cc-4380-0ded-08da4210b0f2 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6341.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 May 2022 07:47:48.5659 (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: ip/XsY3vK7B29mmkfmJc38CW7rTTHI/2XQ7i25+eC5u4FnmsS478AXThN8ertGfbqHzTsr4w8rcvb/rs6TrMjA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB6908 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220530_004754_815622_709A72FF X-CRM114-Status: UNSURE ( 9.24 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org the register CAST_NOMFRSIZE_LO should be equal to CAST_STATUS16 the register CAST_NOMFRSIZE_HI should be equal to CAST_STATUS17 the register CAST_OFBSIZE_LO should be equal to CAST_STATUS18 the register CAST_OFBSIZE_HI should be equal to CAST_STATUS19 Fixes: 2db16c6ed72ce ("media: imx-jpeg: Add V4L2 driver for i.MX8 JPEG Encoder/Decoder") Signed-off-by: Ming Qian Reviewed-by: Mirela Rabulea --- v2 - add Fixes tag drivers/media/platform/nxp/imx-jpeg/mxc-jpeg-hw.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/media/platform/nxp/imx-jpeg/mxc-jpeg-hw.h b/drivers/media/platform/nxp/imx-jpeg/mxc-jpeg-hw.h index e7e8954754b1..07655502f4bd 100644 --- a/drivers/media/platform/nxp/imx-jpeg/mxc-jpeg-hw.h +++ b/drivers/media/platform/nxp/imx-jpeg/mxc-jpeg-hw.h @@ -53,10 +53,10 @@ #define CAST_REC_REGS_SEL CAST_STATUS4 #define CAST_LUMTH CAST_STATUS5 #define CAST_CHRTH CAST_STATUS6 -#define CAST_NOMFRSIZE_LO CAST_STATUS7 -#define CAST_NOMFRSIZE_HI CAST_STATUS8 -#define CAST_OFBSIZE_LO CAST_STATUS9 -#define CAST_OFBSIZE_HI CAST_STATUS10 +#define CAST_NOMFRSIZE_LO CAST_STATUS16 +#define CAST_NOMFRSIZE_HI CAST_STATUS17 +#define CAST_OFBSIZE_LO CAST_STATUS18 +#define CAST_OFBSIZE_HI CAST_STATUS19 #define MXC_MAX_SLOTS 1 /* TODO use all 4 slots*/ /* JPEG-Decoder Wrapper Slot Registers 0..3 */