Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp865178pxu; Fri, 4 Dec 2020 18:43:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJwiGlht+ywnc28aOZbqpepIglgmAl3HDl6BaURpOyPwO6sQ+jwFSpxdT/KhBhZ1vLyUaahE X-Received: by 2002:a17:906:cd06:: with SMTP id oz6mr10017443ejb.25.1607136201182; Fri, 04 Dec 2020 18:43:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607136201; cv=none; d=google.com; s=arc-20160816; b=dcwqzPPTNTeaINrCl+M+yt3gF6N499J9kfeer/3lmeFhy36fMYgxVAKa5e4hpZ56aY eYkpTuqWzKI8lGDyVy7OC4yUsYwzfkG3cOAUIstHwIn7GPr6WU2Onv8Shk1pqAOInlEK P7HuN3gN9Y1sm/TcbHFOr1q8MiGnMzpiAQxaiDCEAdtjmjRh3Mg8fKoal9KLv6zf8CoI 6vKjuT2NCUsoQ5vI8fwIWx1lruytJc5r5oPwsA4faLA2MhtLj7lwYXVLxAQozr8GIqQf Ls8+BTe0b75wgYlGZWcbIgT1OOhoaJKzCK/0ChL08XkYgqzfw4Nin2EEZWjxx8n3mt9/ YJ0w== 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=aYe2gWa8XrvaDe6SJ+idBOopvfCob+d3WNUwXwoZHWE=; b=gepYrKQM98VwGcz+kXaIV/X7NswFXX3MUrpBHBsbg5ZBi8aLJmrkxQBblQmUzGrF0v 04t1ROFMrNxLxWmqQCVS/uu8ZMlQFC8IPUctq7hmakBNpiWnRCkuTf8vM3ZPqUsU5G35 /87zMzX6Pvya73BoxMjV3PZEI7/80tIfYJX69NnTP9m5DStFKL0r9bmSWuVw8JO7aAZU RqT23+DYMu/iTVhb/pG1zUx4F1Z6VAHJ3QgOenCk5rqE1VB/n+6VAI0GxT4o0rlxS1yQ 3iU40ZFAk7fOhPZBOjA8o4EOc/xqScRX3K46cTV29LoK8JcaoNkvONA/spB8FkOKPO77 Tcmw== 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 t11si4180833edt.200.2020.12.04.18.42.58; Fri, 04 Dec 2020 18:43:21 -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 S1726667AbgLECkZ (ORCPT + 99 others); Fri, 4 Dec 2020 21:40:25 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:43884 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725300AbgLECkZ (ORCPT ); Fri, 4 Dec 2020 21:40:25 -0500 X-UUID: 8326d93ad3b14e61b07423c6dd9aac20-20201205 X-UUID: 8326d93ad3b14e61b07423c6dd9aac20-20201205 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] 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 125656486; Sat, 05 Dec 2020 10:39:41 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 5 Dec 2020 10:39:36 +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:35 +0800 From: Stanley Chu To: , , , , CC: , , , , , , , , , , , , , , , , , Stanley Chu Subject: [PATCH v4 2/8] scsi: ufs: Introduce phy_initialization helper Date: Sat, 5 Dec 2020 10:39:32 +0800 Message-ID: <20201205023938.13848-3-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 Introduce phy_initialization helper since this is the only one variant function without helper. 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