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: 13273658 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8D9AEC7EE29 for ; Fri, 9 Jun 2023 10:23:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240024AbjFIKXB (ORCPT ); Fri, 9 Jun 2023 06:23:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240134AbjFIKWj (ORCPT ); Fri, 9 Jun 2023 06:22:39 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19DDF7D9D; Fri, 9 Jun 2023 03:14:07 -0700 (PDT) X-UUID: 5a8953f606ae11eeb20a276fd37b9834-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:022e0129-69eb-4c7b-b481-fd28aa9ba658,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:95 X-CID-INFO: VERSION:1.1.26,REQID:022e0129-69eb-4c7b-b481-fd28aa9ba658,IP:0,URL :0,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Spam_GS981B3D,ACTION :quarantine,TS:95 X-CID-META: VersionHash:cb9a4e1,CLOUDID:f737926e-2f20-4998-991c-3b78627e4938,B ulkID:2306091814039X4UYKXR,BulkQuantity:0,Recheck:0,SF:19|48|29|28|17,TC:n il,Content:0,EDM:-3,IP:nil,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OS I: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_SDM,TF_CID_SPAM_ASC,TF_CID_SPAM_FAS,TF_CID_SPAM_FSD, TF_CID_SPAM_SNR X-UUID: 5a8953f606ae11eeb20a276fd37b9834-20230609 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1209214270; Fri, 09 Jun 2023 18:14:00 +0800 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 Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.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.