From patchwork Tue Jun 6 11:32:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?V2VuYmluIE1laSAo5qKF5paH5b2sKQ==?= X-Patchwork-Id: 13268995 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 45E86C77B7A for ; Tue, 6 Jun 2023 11:53:58 +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=hJ+uIOY7L1m/OuMJR78lU1v+zgKdiw50lowKBk96eY8=; b=i2wMy7XIonT02b UCGBB5j6JiJb65Hb2Nh4oF3sUanayDADV5kpFnbWn6IcB3+Dopi8CKBCaEMSVJbQSexu+5Vit8M2j f/0gkuG9+eEbj0AAuZG3lhEpUI/bhwV16nmQBtIrLL1SmKDDsV0fHcjCimRfzslU0A1UUQ5gLXz1U jhKwaeI8BfHb4uhCbiOukA7o7Fvm+e6+K+2X82PPH/urx6Hljp5XaN94xRm1dRaXHFoi50HQZzY69 CKQz+6a54rU+TuEhtvVPBs+wmcs5OK76kx1A78ciWab3ZCDlbihEdbI5fhgK2qG0oFzelrA56rTDC FVUOj9ylmTAlCiFgB4SA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q6VFp-001VVe-1c; Tue, 06 Jun 2023 11:53:37 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q6VFl-001VUl-1T; Tue, 06 Jun 2023 11:53:35 +0000 X-UUID: c0b81022046011ee83ed1395ce914268-20230606 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=hWQ30+yCMXmpdnJYjYXC6Zz/30400LVyGU7/esOpB1E=; b=n/muHkqkya99BTkfAEyjor+ub8p4W+Ac2J3KnTJ5j/tSyArqEFJa7825LxSCuw0LK8aTrheZxraZngs4x3qrMtQNIdiGBBIyZ23Flpc6+K2uWdhNmWRBvh9oxrXxkXlADDHAkmyTzzPJIqSq0DacGNhIQVrPvZmQn9ou+ayGnxs=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.25,REQID:732c6a9d-1705-4d51-84d2-3780f9d63bae,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:d5b0ae3,CLOUDID:5b8ebe3d-7aa7-41f3-a6bd-0433bee822f3,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0 X-CID-BVR: 0,NGT X-CID-BAS: 0,NGT,0,_ X-UUID: c0b81022046011ee83ed1395ce914268-20230606 Received: from mtkmbs11n1.mediatek.inc [(172.21.101.185)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 2017013463; Tue, 06 Jun 2023 04:53:29 -0700 Received: from mtkmbs11n1.mediatek.inc (172.21.101.186) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Tue, 6 Jun 2023 19:32:51 +0800 Received: from mhfsdcap04.gcn.mediatek.inc (10.17.3.154) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Tue, 6 Jun 2023 19:32:50 +0800 From: Wenbin Mei To: Ulf Hansson CC: Chaotian Jing , Matthias Brugger , AngeloGioacchino Del Regno , Adrian Hunter , Ritesh Harjani , "Asutosh Das" , , , , , Wenbin Mei Subject: [PATCH v5 0/1] mmc: mtk-sd: reduce CIT for better performance Date: Tue, 6 Jun 2023 19:32:48 +0800 Message-ID: <20230606113249.28057-1-wenbin.mei@mediatek.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230606_045334_110273_659A0409 X-CRM114-Status: UNSURE ( 6.49 ) 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 change v5: 1. add version change log and the previous patch link 2. change comment in msdc_cqe_cit_cal() to increase readability. 3. change the type of hclk_freq from "u64" to "unsigned long". 4. don't open code FIELD_GET. change v4: 1. remove else case in msdc_cqe_cit_cal() function due to it doesn't need. 2. fix build error. change v3: 1. add msdc_cqe_cit_cal() function to calculate the CIT value. change v2: 1. add more comments.