From patchwork Thu Mar 12 13:23:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanley Chu X-Patchwork-Id: 11434171 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B142D14E5 for ; Thu, 12 Mar 2020 13:24:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 902A6206BE for ; Thu, 12 Mar 2020 13:24:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="q3LRGMRZ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727390AbgCLNYA (ORCPT ); Thu, 12 Mar 2020 09:24:00 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:10187 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727265AbgCLNX7 (ORCPT ); Thu, 12 Mar 2020 09:23:59 -0400 X-UUID: 2621844fb62f432a80e24fde63098402-20200312 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=xm/G1sO3I7PlDO358ySrPxlME2LXeXXiVUP6BCRqWHY=; b=q3LRGMRZNttz4bHsILjWOhiv3NrBp0OFYacdYFpCeKXJw1Ghn+0EFMj6OO0eEHoK9Cq+08f7xig/jaLLU2/xwrnq2hhGoF5i5DcVnjBk3j+qh6cRYwMz8nn1Os2tb0w5JEngKHXP5zKNW66Rv0hdeqm7fAe4bP4VT7CWn8WkjHc=; X-UUID: 2621844fb62f432a80e24fde63098402-20200312 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 2042295203; Thu, 12 Mar 2020 21:23:52 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 12 Mar 2020 21:22:37 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 12 Mar 2020 21:21:02 +0800 From: Stanley Chu To: , , , , CC: , , , , , , , , , , , , Stanley Chu Subject: [PATCH v3 0/8] scsi: ufs: some cleanups and make the delay for host enabling customizable Date: Thu, 12 Mar 2020 21:23:42 +0800 Message-ID: <20200312132350.18061-1-stanley.chu@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-MTK: N Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Hi, This patchset applies some driver cleanups and performance improvement in ufs host drivers by making the delay for host enabling customizable according to vendors' requirements. v2 -> v3 - Remove /arch/arm64/configs/defconfig chnage because it is for local test only v1 -> v2 - Add patch #1 "scsi: ufs: fix uninitialized tx_lanes in ufshcd_disable_tx_lcc" - Remove struct ufs_init_prefetch in patch #2 - Introduce common delay function in patch #4 - Replace all delay places by common delay function in ufs-mediatek in patch #5 - Use common delay function instead for host enabling delay in patch #6 - Add patch #7 "scsi: ufs: make HCE polling more compact to improve initializatoin latency" - In patch #8, customize the delay in ufs_mtk_hce_enable_notify callback instead of ufs_mtk_init (Avri) Stanley Chu (8): scsi: ufs: fix uninitialized tx_lanes in ufshcd_disable_tx_lcc() scsi: ufs: remove init_prefetch_data in struct ufs_hba scsi: ufs: use an enum for host capabilities scsi: ufs: introduce common delay function scsi: ufs-mediatek: replace all delay places by common delay function scsi: ufs: allow customized delay for host enabling scsi: ufs: make HCE polling more compact to improve initializatoin latency scsi: ufs-mediatek: customize the delay for host enabling drivers/scsi/ufs/ufs-mediatek.c | 35 ++++++++------- drivers/scsi/ufs/ufshcd.c | 47 +++++++++++--------- drivers/scsi/ufs/ufshcd.h | 78 ++++++++++++++++----------------- 3 files changed, 85 insertions(+), 75 deletions(-)