From patchwork Tue May 17 12:55:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Smitha T Murthy X-Patchwork-Id: 12852482 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 E57B8C433EF for ; Tue, 17 May 2022 13:13:39 +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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: 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: List-Owner; bh=5q8lSaE5osU0vZmBxRPR8ScbRNlwefotitBt6AdxNIM=; b=B2I8yrYlYi0ECi kkiBAEhmSy2++XhGkTRpnWFAs9onkhcIlEZdCr7FW1ZVe293YTuoQJuPrn2GfUKIyc/scHIMHf7Vu vMmSJ9jdIcYw7tGwZ3aW++QZKd2hzJRwWh55l5FxFsWMfWYvrseunuF7GG1cOoz0hKXTdpiD2HQcu QxVSI/UYmCQuA8Uncvv/1bpEJpjbh3k+8x1T43sigUFlj0luD5ueb4IkRVlpLvINinT48D3lhGEwy 0YDCr8i4eFS2bzNGkH0Xo6FX2RgwDLRWjbvB/rHcw600mTIveBObizXvFOwFBouBkO/RmrUZ5GKa+ piQ1nzzwE55LA1g8zrGQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nqwzS-00Dokm-43; Tue, 17 May 2022 13:11:55 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nqwmy-00DjVG-Jl for linux-arm-kernel@lists.infradead.org; Tue, 17 May 2022 12:59:02 +0000 Received: from epcas5p2.samsung.com (unknown [182.195.41.40]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20220517125858epoutp03836d0f6031e0dcf1e00c0da8a01e976f~v5eACq_QL0631206312epoutp03i for ; Tue, 17 May 2022 12:58:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20220517125858epoutp03836d0f6031e0dcf1e00c0da8a01e976f~v5eACq_QL0631206312epoutp03i DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1652792338; bh=9Ulim04NqlgqsmgMTHqB534xiBBhfbB8/nQ94NlQwb0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UQhxWTTA3raNc+594kG6ikhudZPGMD2FXCTXxMoj6iuvdb+FCTmn4UJ5waNxRLy9k EGgAqydQ32DLuJD+ElEybLTNP5THR+GY556ti3fiSdZbdE9psoCj4tXWtbkQqfABUB pVtg9rNAc+WLRrdBJtk38dRgXk+oGTYs5nWSMRRs= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas5p3.samsung.com (KnoxPortal) with ESMTP id 20220517125857epcas5p3757082fc392a5a4a2ed28fb8329b4cd6~v5d_16IU60661806618epcas5p3C; Tue, 17 May 2022 12:58:57 +0000 (GMT) Received: from epsmges5p2new.samsung.com (unknown [182.195.38.181]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4L2blw31Fzz4x9Pv; Tue, 17 May 2022 12:58:52 +0000 (GMT) Received: from epcas5p2.samsung.com ( [182.195.41.40]) by epsmges5p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 67.EE.09827.C0C93826; Tue, 17 May 2022 21:58:52 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p4.samsung.com (KnoxPortal) with ESMTPA id 20220517125637epcas5p4f691d6c9011d3e82f2d776c440816d98~v5b81l8nN1555515555epcas5p4W; Tue, 17 May 2022 12:56:37 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20220517125637epsmtrp2bbb20df07685bf9a3975a37f233a0b42~v5b80tQ3N0914309143epsmtrp2P; Tue, 17 May 2022 12:56:37 +0000 (GMT) X-AuditID: b6c32a4a-b51ff70000002663-4c-62839c0cde5d Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 39.AA.11276.58B93826; Tue, 17 May 2022 21:56:37 +0900 (KST) Received: from Jaguar.sa.corp.samsungelectronics.net (unknown [107.108.73.139]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20220517125634epsmtip1e2e3c8187ec18205f042d059132649b4~v5b5y6ngP2352323523epsmtip1i; Tue, 17 May 2022 12:56:34 +0000 (GMT) From: Smitha T Murthy To: linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: m.szyprowski@samsung.com, andrzej.hajda@intel.com, mchehab@kernel.org, hverkuil-cisco@xs4all.nl, ezequiel@vanguardiasur.com.ar, jernej.skrabec@gmail.com, benjamin.gaignard@collabora.com, stanimir.varbanov@linaro.org, dillon.minfei@gmail.com, david.plowman@raspberrypi.com, mark.rutland@arm.com, robh+dt@kernel.org, krzk+dt@kernel.org, andi@etezian.org, alim.akhtar@samsung.com, aswani.reddy@samsung.com, pankaj.dubey@samsung.com, Smitha T Murthy , linux-fsd@tesla.com Subject: [PATCH 14/20] media: s5p-mfc: Load firmware for each run in MFCv12. Date: Tue, 17 May 2022 18:25:42 +0530 Message-Id: <20220517125548.14746-15-smitha.t@samsung.com> X-Mailer: git-send-email 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WpBbBZJk4OKUamMK3SfucyTC/IWn9hU+lUT7U wtXslYBukHUX7/vajIvLOlzmCfIH/L7ovHTP7U/R15tcZCRO92VvSVu+oaDYliertZLzJPOl mSsNrn9m4ml/8TS08MD9aVyHWhvczBT3TD7kaRP3MGTjfK/Ch2fj920UlOLecE87f8UMVvXH nXPD9/07LD9b/WnVfcOXbG/Kkg4ZXuJ86MC9ktE19+r8G5PTQo097weoGgtk2/CLaKz/5Mm+ QmZf1smv7bbr2UJ+N5+u0w9lljLn27v3vdzxl+/4Zv6+bVeTvvxFwcX/xcXRCkHVKV8OsEis kCh9Kahy2fKIvO7djqjoZEmj/p6Ln+b2bqnvVVml/JbDQ7VUiaU4I9FQi7moOBEAtHl3tyQD AAA= X-CMS-MailID: 20220517125637epcas5p4f691d6c9011d3e82f2d776c440816d98 X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220517125637epcas5p4f691d6c9011d3e82f2d776c440816d98 References: <20220517125548.14746-1-smitha.t@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220517_055901_216230_47C8D048 X-CRM114-Status: GOOD ( 15.47 ) 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: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org In MFCv12, some section of firmware gets updated at each MFC run. Hence we need to reload original firmware for each run at the start. Cc: linux-fsd@tesla.com Signed-off-by: Smitha T Murthy --- drivers/media/platform/samsung/s5p-mfc/s5p_mfc_ctrl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/samsung/s5p-mfc/s5p_mfc_ctrl.c b/drivers/media/platform/samsung/s5p-mfc/s5p_mfc_ctrl.c index 877e5bceb75b..a70283d4c519 100644 --- a/drivers/media/platform/samsung/s5p-mfc/s5p_mfc_ctrl.c +++ b/drivers/media/platform/samsung/s5p-mfc/s5p_mfc_ctrl.c @@ -51,8 +51,9 @@ int s5p_mfc_load_firmware(struct s5p_mfc_dev *dev) * into kernel. */ mfc_debug_enter(); - if (dev->fw_get_done) - return 0; + if (!IS_MFCV12(dev)) + if (dev->fw_get_done) + return 0; for (i = MFC_FW_MAX_VERSIONS - 1; i >= 0; i--) { if (!dev->variant->fw_name[i])