Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp236764pxu; Fri, 4 Dec 2020 01:54:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJxaTlmZe2aOLz42Fuul5X24lEtrMcDgzTl0wVM2R6SbZrhQvoQCM3uI49JpFUZwzRAaEIH4 X-Received: by 2002:a50:e68b:: with SMTP id z11mr7036080edm.25.1607075662600; Fri, 04 Dec 2020 01:54:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607075662; cv=none; d=google.com; s=arc-20160816; b=YytGW4qizUe3vPszUdX6tVqbl5nFGrZsLgcBJIyWzxZ1oXgrYENip5m+s48lhqNiTB OghbACCSHI6oQVxV1E8SbvPVf9+pfUhMkSpFjaLamrFo62kb97arm3bDldHKUCyA+m84 WrAvf0Zg4OLV2RaI3QU/vYMxlsMk/JZvXyJSoZO2WxUD/HyKYT/KflIzVR9BR0Ipmx/y VU+msWO1JcvPEd/a1M8WKU2Rz1b76M1GVkChGrwDgnMbmt2xAHjFiXAcpxOaqM5zg8E+ QXuMZQgTlIcwmQi+XIGXS8mxJY/S12+VEGKe9w/MDZrjcUTJ8t9X0iQfp/oPi9x4bqN5 YNsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=c9kYrmw7QtDGWhRvR0l0e8BZKnzLsjUotVQFIXF0c1o=; b=Y/fNTc2v2D1cURGcrt6438DcmWhhiXmY9RPjR5qg7bOgeyDOh2SFdo+erUhDyNoUxk eoS3CUQrTC1vyb7QZU1EVayFWS3coOLT83+5A2GSRG31+ypsFHU43/MpzU2CbZpRaob4 szVDQrlfe/iWT6FoBCfPtcE48UE2P6BlvPcOwup1EQLaWGSRuCqNRABREzjWi8KFOcOv bbMub8M3Yg+3g0u1sBI8nwDQPFJrTUmBm7peUt2qQlJN5zXw/FNGEP/Jpztx9PG3TFUp nc3BrYKw8gIWvJ4DNwUvkYJTq2qwf35IDd7dq9RBP3rmNW+TRy3iiSNHhL8JVdfGEqDR 1fZg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nw24si1029493ejb.647.2020.12.04.01.53.59; Fri, 04 Dec 2020 01:54:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387910AbgLDJvU (ORCPT + 99 others); Fri, 4 Dec 2020 04:51:20 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:37623 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2387656AbgLDJvM (ORCPT ); Fri, 4 Dec 2020 04:51:12 -0500 X-UUID: a7aac038871341fdb3f00d6541372d54-20201204 X-UUID: a7aac038871341fdb3f00d6541372d54-20201204 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 935237692; Fri, 04 Dec 2020 17:50:09 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 4 Dec 2020 17:50:06 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 4 Dec 2020 17:50:06 +0800 From: Stanley Chu To: , , , , CC: , , , , , , , , , , , , , , , , , Stanley Chu Subject: [PATCH v3 4/8] scsi: ufs-dwc: Use phy_initialization helper Date: Fri, 4 Dec 2020 17:50:03 +0800 Message-ID: <20201204095007.20639-5-stanley.chu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20201204095007.20639-1-stanley.chu@mediatek.com> References: <20201204095007.20639-1-stanley.chu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use phy_initialization helper instead of direct invoking. Signed-off-by: Stanley Chu --- drivers/scsi/ufs/ufshcd-dwc.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/scsi/ufs/ufshcd-dwc.c b/drivers/scsi/ufs/ufshcd-dwc.c index 6a901da2d15a..5bb9d3a88795 100644 --- a/drivers/scsi/ufs/ufshcd-dwc.c +++ b/drivers/scsi/ufs/ufshcd-dwc.c @@ -120,13 +120,10 @@ int ufshcd_dwc_link_startup_notify(struct ufs_hba *hba, if (status == PRE_CHANGE) { ufshcd_dwc_program_clk_div(hba, DWC_UFS_REG_HCLKDIV_DIV_125); - if (hba->vops->phy_initialization) { - err = hba->vops->phy_initialization(hba); - if (err) { - dev_err(hba->dev, "Phy setup failed (%d)\n", - err); - goto out; - } + err = ufshcd_vops_phy_initialization(hba); + if (err) { + dev_err(hba->dev, "Phy setup failed (%d)\n", err); + goto out; } } else { /* POST_CHANGE */ err = ufshcd_dwc_link_is_up(hba); -- 2.18.0