From patchwork Fri Jun 9 10:13:54 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: 13273650 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 E5E7BC7EE29 for ; Fri, 9 Jun 2023 10:14:59 +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=+FNqNtRQm7tXtPsCJJpburUnLe3IQd3b8IcmAiO1CWc=; b=Jm4sBQ9y1EC2mP YtLchjjkrGes2Z5vbLpkvDkTsrKu/LxWfoFE8jZKqzPvLXEfEm+73a/AfyAPUK5fz5Y1C4Sr/U2ig eTvI9hXga1ttanD6Kt6+8Ez+4AiBasDO72uxCmi4FXgqYJFnJCqO6XHEk1LuwuftrGC/4J2Y4ZBYR QYTNp1+doAXz00UWcniGhhTRoL6cj9USFDkownqpvwDj3TdfTz8NwMMp/CWK4L/wY0SmmgZFN+Zcv m7FXoyaA0D1wk34g5aIwDSNK6KlZDf6ZtI5ecnei3d4A/BonTVCZ20le4GWvDQkMTRXtvK/KJ0C7Y N6y9M6YxHoe13w9fFo3A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q7Z8b-00CWhv-18; Fri, 09 Jun 2023 10:14:33 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q7Z8X-00CWgM-39; Fri, 09 Jun 2023 10:14:31 +0000 X-UUID: 69121bd806ae11ee912e1518a6540028-20230609 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=l42hKMMDIs9Eyk2A0BXNEZnxcBa9exqXBo/kbVdtD3k=; b=cd3knRzoJMCD1AGww/RgEMrthSoYcddrlrJnuWt19u2J8QGmRyZXY5iFU1lRXJO7l1YfxG/6iH2Qj7Nvc9gshmX+q0Y4wSHIB8cmsdbpjAGeOzLlXmxT0F5yfAMrDSDzgmv79IxpMA7/2bM2zP7PGbx3oWbxm9d6Nx9Kscws8WE=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.26,REQID:950201a1-b863-4f63-85b8-11d6347879e5,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:100,FILE:0,BULK:0,RULE:Release_Ham,ACTIO N:release,TS:100 X-CID-INFO: VERSION:1.1.26,REQID:950201a1-b863-4f63-85b8-11d6347879e5,IP:0,URL :0,TC:0,Content:0,EDM:0,RT:0,SF:100,FILE:0,BULK:0,RULE:Spam_GS981B3D,ACTIO N:quarantine,TS:100 X-CID-META: VersionHash:cb9a4e1,CLOUDID:ed39926e-2f20-4998-991c-3b78627e4938,B ulkID:2306091814039X4UYKXR,BulkQuantity:1,Recheck:0,SF:28|17|19|48|29,TC:n il,Content:0,EDM:-3,IP:nil,URL:0,File:nil,Bulk:40,QS:nil,BEC:nil,COL:0,OSI :0,OSA:0,AV:0,LES:1,SPR:NO X-CID-BVR: 0,NGT X-CID-BAS: 0,NGT,0,_ X-CID-FACTOR: TF_CID_SPAM_ASC,TF_CID_SPAM_FAS,TF_CID_SPAM_FSD,TF_CID_SPAM_SNR, TF_CID_SPAM_SDM X-UUID: 69121bd806ae11ee912e1518a6540028-20230609 Received: from mtkmbs13n1.mediatek.inc [(172.21.101.193)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 234389061; Fri, 09 Jun 2023 03:14:25 -0700 Received: from mtkmbs13n1.mediatek.inc (172.21.101.193) by mtkmbs11n1.mediatek.inc (172.21.101.185) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Fri, 9 Jun 2023 18:13:59 +0800 Received: from mhfsdcap04.gcn.mediatek.inc (10.17.3.154) by mtkmbs13n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Fri, 9 Jun 2023 18:13:58 +0800 From: Wenbin Mei To: Ulf Hansson CC: Adrian Hunter , Ritesh Harjani , Asutosh Das , Chaotian Jing , Matthias Brugger , AngeloGioacchino Del Regno , Alexandre Mergnat , Wenbin Mei , , , , Subject: [PATCH v6 0/1] mmc: mtk-sd: reduce CIT for better performance Date: Fri, 9 Jun 2023 18:13:54 +0800 Message-ID: <20230609101355.5220-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-20230609_031430_156796_8903B30B X-CRM114-Status: UNSURE ( 6.51 ) 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 v6: 1. include bitfield header and fix incompatible pointer types 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.