From patchwork Fri Jun 30 14:06:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Po-Wen Kao X-Patchwork-Id: 698279 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 56FCAEB64D7 for ; Fri, 30 Jun 2023 14:08:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232494AbjF3OIx (ORCPT ); Fri, 30 Jun 2023 10:08:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232466AbjF3OIw (ORCPT ); Fri, 30 Jun 2023 10:08:52 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EC922680; Fri, 30 Jun 2023 07:08:50 -0700 (PDT) X-UUID: 9fff7ef4174f11eeb20a276fd37b9834-20230630 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=rqt1KJ+yqUVKyHKhni/Ik7xfINlFW2iSreRBLnxj6hk=; b=h2+eUDdLfY/u020X9axOqrHp4VLagIt66tjctDhKYjRWMn1/wgjX3yKEUCioa2wuVWBukb5yToOqQpooLMnHJ9tPc+lpgpBFDV4nNR/pBOZRe7s/CeLXhOuJV4LHEtlpknqzmq+WNvaMnFodDY5V9RpZt7LcUyK64+GQZz6YSOY=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.27, REQID:dec8c3af-e94e-4ef8-8136-a65e9829c020, 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:01c9525, CLOUDID:d7746c0d-26a8-467f-b838-f99719a9c083, 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,LES:1,SPR:NO X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: 9fff7ef4174f11eeb20a276fd37b9834-20230630 Received: from mtkmbs11n2.mediatek.inc [(172.21.101.187)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 975202326; Fri, 30 Jun 2023 22:08:44 +0800 Received: from mtkmbs13n1.mediatek.inc (172.21.101.193) 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; Fri, 30 Jun 2023 22:08:43 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Fri, 30 Jun 2023 22:08:43 +0800 From: Po-Wen Kao To: , , , , Matthias Brugger , AngeloGioacchino Del Regno CC: , , , , , , , , Subject: [PATCH v4 0/2] Add MCQ support for MTK platform Date: Fri, 30 Jun 2023 22:06:20 +0800 Message-ID: <20230630140624.21739-1-powen.kao@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org v3 -> v4 Address AngeloGioacchino's comments. v2 -> v3 - Drop SQ to CQ mapping vops introduced in v2 - Refactor commit message - Update export symbols v1 -> v2 - Introduce MCQ SQ to CQ mapping vops and provide MTK implementation. - Update export symbol patch v1 - Separated from topic "[PATCH v4 0/5] Several UFS MCQ Code Changes". Here are some changes since last upload - Store irq in per host array - Symbol rename - Use ufshcd_mcq_poll_cqe_lock() instead of ufshcd_mcq_poll_cqe_nolock() - Handle invalid irq dts property - Remove ufshcd_disable_intr(hba, MCQ_CQ_EVENT_STATUS) in MCQ mode. This will become host quirk later. Po-Wen Kao (2): scsi: ufs: core: Export symbols for MTK driver module scsi: ufs: ufs-mediatek: Add MCQ support for MTK platform drivers/ufs/core/ufs-mcq.c | 3 + drivers/ufs/host/ufs-mediatek.c | 168 +++++++++++++++++++++++++++++++- drivers/ufs/host/ufs-mediatek.h | 34 +++++++ include/ufs/ufshcd.h | 3 + 4 files changed, 206 insertions(+), 2 deletions(-) --- 2.18.0