Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp865000pxu; Fri, 4 Dec 2020 18:43:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJxQVlgrsUHkhcFDO6ePJzQaVHWSWRDi8GUi1GCiSEIwWenubSaujbqKYuelnoEWBVYpnjIx X-Received: by 2002:a17:906:5e0f:: with SMTP id n15mr9859228eju.459.1607136180788; Fri, 04 Dec 2020 18:43:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607136180; cv=none; d=google.com; s=arc-20160816; b=C3Nw8tw265J7fQexBSHqlbGjKW1OUCA9QRhpDZC5FIL1QOJSUXf4ZkjRMuuHSqigF+ O5lvb39yDqUa40t+2e/0Qqod25oEyP280jgv+Kt4h4cDU8bpkrYxOTc+1orIbASABny2 QOCSmLqKNgqtUg5mN2my4pRjNk8638Q8j4V913YACT1r4Jhek3aBe8+MQUu/xbiMcS1k gvhI6khTYEqQqCOJO4TxtQP9W4Bn+wEcgaEw9lDw+z4nROrJZ1LQF2iBDEImoY+BK57v hEov/BJ2vnPv8kDb/6wr1o9QyJY56dsSOPlkPIEy+rFkdyCqGgQ9dAxwyWE9zunnRPJQ GWkg== 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=wr2tmYgzxeuTRpdlU00XFwEJp7l6QcxhO+d5io47XmMfS/vp0+DSbDUdjBHQ9pVI6i urTBkiIIhpTnbf3b1eJGwlzNR25+1hjH43mE41vk5slfdYXiofFN8UV85ZhNGf7ACyd6 Inv20OsQfn+tIod3AqGX8aGLcMM75xqGcyVkGN6pIxHq2hyiYBokhJO7DqvqLsKjmdhu Cqus5+BExstgvpd5wq9uoytKCER+x9Ohi92WxZhejDxXG1bAK2JmFwXEDbT2Tu4dXu96 q0XTXA8efP/QOpB4U+HXzg+8dmF1CJ5xLBb1nsDp57l/ThqiIUInR4A1TRVbeOwAppWh ix7Q== 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 y10si2398005ejh.425.2020.12.04.18.42.36; Fri, 04 Dec 2020 18:43:00 -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 S1728544AbgLECko (ORCPT + 99 others); Fri, 4 Dec 2020 21:40:44 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:43895 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728234AbgLECkn (ORCPT ); Fri, 4 Dec 2020 21:40:43 -0500 X-UUID: e161a0b7e0cd44a1b36dd5b3f52031c4-20201205 X-UUID: e161a0b7e0cd44a1b36dd5b3f52031c4-20201205 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.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 1541445786; Sat, 05 Dec 2020 10:39:40 +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; Sat, 5 Dec 2020 10:39:37 +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; Sat, 5 Dec 2020 10:39:36 +0800 From: Stanley Chu To: , , , , CC: , , , , , , , , , , , , , , , , , Stanley Chu Subject: [PATCH v4 4/8] scsi: ufs-dwc: Use phy_initialization helper Date: Sat, 5 Dec 2020 10:39:34 +0800 Message-ID: <20201205023938.13848-5-stanley.chu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20201205023938.13848-1-stanley.chu@mediatek.com> References: <20201205023938.13848-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