Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1173790pxu; Sat, 5 Dec 2020 06:26:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJwRcK2uySm/2knQchsFjxCKDj1JT0gf51cf4hwnGi8xWTmA0whfEI/fRe5Vc4GAKqN1OqlA X-Received: by 2002:a17:906:fc4:: with SMTP id c4mr11831142ejk.490.1607178394650; Sat, 05 Dec 2020 06:26:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607178394; cv=none; d=google.com; s=arc-20160816; b=D+ROQ9uXXx4cx5fZRMdRiC/beBClX5+paw/Dqk5mlLshSjzdH8dTIhfENyDP5W0+uu QfBUXFHFhF7t8xHru779L/A/z1c/Jvz7eKIln5IQu2mT8/8hV1WG84n4lGUYsuA9/bht 5PyWp39tljHQaaNRR7CIAv/N1fISJWeenJ2yPiCm7viqERqHKSOp9pqW+qMbjWaGquB6 8LjqrPG+6o7chn8hqdgkFkGu1ISwKLpPZlpJNvlMxMDDW1tzF6R9JpBEyz9bcXOhDId4 uWCawCUBFoUeKSRLlSgH7oP7lAy8SYeXQwHzjnwt7I1qYW79ClmGy8JigBdU8eLAZRBb tDgA== 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=opsQwEmQN9V9JRqoPTxJhTZokoCaVlZaMvWkfPuU5D8=; b=V5MeCek5LiIxD6uxDtA6B7syvTh0bZdo8dYLvscIY83GyDYpYNOqGryEoKuDhz7Ero 0urhX1jaoSkOFThE1GYzFqOd3uoyFlslU198rzv2FDIPCVBzUTIZk54YOmmqnDPtTTag qOczbeUOYQNKMjfdXJlIAxfm+9iw9EHpsvQJVx7Nl8BqkSF1uuAh2wVWBoWpVVpWaZYS hAIDBjaxJ96f2bEjtHgkSNkVzhoMniSq1ppiih+g9ruqjNC44a2uY7GmODZw/d9kJ6fa hG/Je5jeoUafh0OF+VZkWhyiHhETsF7jveg2d1XCpByzz7bBXoBTGkLI2IW8fl86ey/E yiHg== 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 x31si4833386ede.198.2020.12.05.06.26.11; Sat, 05 Dec 2020 06:26:34 -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 S1726160AbgLEOVV (ORCPT + 99 others); Sat, 5 Dec 2020 09:21:21 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:41504 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726478AbgLEM6x (ORCPT ); Sat, 5 Dec 2020 07:58:53 -0500 X-UUID: ce64551989a84f0f91ef6dfe1777c8b2-20201205 X-UUID: ce64551989a84f0f91ef6dfe1777c8b2-20201205 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] 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 183301001; Sat, 05 Dec 2020 20:01:05 +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 20:00:39 +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 20:00:42 +0800 From: Stanley Chu To: , , , , CC: , , , , , , , , , , , , , , , , Stanley Chu Subject: [PATCH v1 2/4] scsi: ufs: Introduce phy_initialization helper Date: Sat, 5 Dec 2020 20:00:39 +0800 Message-ID: <20201205120041.26869-3-stanley.chu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20201205120041.26869-1-stanley.chu@mediatek.com> References: <20201205120041.26869-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 Introduce phy_initialization helper since this is the only one variant function without helper. Reviewed-by: Avri Altman Signed-off-by: Stanley Chu --- drivers/scsi/ufs/ufshcd.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/scsi/ufs/ufshcd.h b/drivers/scsi/ufs/ufshcd.h index 21de7607611f..384a042ccb46 100644 --- a/drivers/scsi/ufs/ufshcd.h +++ b/drivers/scsi/ufs/ufshcd.h @@ -1134,6 +1134,14 @@ static inline int ufshcd_vops_link_startup_notify(struct ufs_hba *hba, return 0; } +static inline int ufshcd_vops_phy_initialization(struct ufs_hba *hba) +{ + if (hba->vops && hba->vops->phy_initialization) + return hba->vops->phy_initialization(hba); + + return 0; +} + static inline int ufshcd_vops_pwr_change_notify(struct ufs_hba *hba, bool status, struct ufs_pa_layer_attr *dev_max_params, -- 2.18.0