Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3333333pxj; Mon, 24 May 2021 04:26:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyOTBSOv4O4MyXszSKgDn8oty5A3dQXVwo8sXBK7JnMqH7MLGaokqV3h8BrmF6vq8hh9qF X-Received: by 2002:a17:906:fcb4:: with SMTP id qw20mr23048485ejb.216.1621855587037; Mon, 24 May 2021 04:26:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621855587; cv=none; d=google.com; s=arc-20160816; b=Czq3f6Nqp9gbmsPApTqFmcObmkRGkxp2Hs5S2os6JxcUl1uoSESIKrkN4/DXS3T+7B CWyZO8aSVRzmDgRqrucxCz15rXHfrDUWpcBYUeG6IPqNpLlff9iA/O14wr4n0CGZFVHm M2RZdG3rAOQEF1Ugmg09ZFKK4hijKyXDzuuZi8MI3Po2ypAEI9VonrRnr6uLR7PRc1uG HpJ3iwVCLxb+fdWizcIc+urEeDuHoKtWY825I0NAGKWJRND1z64hy+W6E4EJ4f14o14n yKVyy9uU5cf2yszFipoelCbCcGcdRTV/9kz4EnkKamXTVsbS23mSSoruD2df1dt7gH5H xKww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :wdcironportexception:ironport-sdr:ironport-sdr:ironport-sdr :dkim-signature; bh=f9UWFsDUYbgn7XdCRCDCTyWL+yt25PhHsQLYoc/YrHs=; b=GGpsyTvj9oja4tLYLJ5FE2GQkSq4UL9/U4DKgBlFj+wb6lb4yBy0bMYNaXVX/O5ua7 r3yXVrbnDQseQzbMEyYnPqnmxge2OXlYnbxEdLbmI8n250p33UckWJ4aZHaUqvw4m/SQ eBrCSwk7ySMCDGyrF6RBhvksnTQkxAcZkYtfINu3Yg/BHIWd21dRcSitVOpkDScQGE7E bl41PKNG4R2NH7yM1mjpGvWt54qjJkOU6Wj68ve2wE4ODpfys1dDQfPP1QAX/tsrhbff dAJQQTPNgAGWRYhRo73KMsP4b7+cfns7BQ5rzwol5s4f+7uflM325evkQCJGhR+bX7wX bjkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=q76xaTlp; 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=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x8si12737335ejw.54.2021.05.24.04.26.04; Mon, 24 May 2021 04:26:27 -0700 (PDT) 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; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=q76xaTlp; 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=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232862AbhEXLZ5 (ORCPT + 99 others); Mon, 24 May 2021 07:25:57 -0400 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:25937 "EHLO esa1.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232861AbhEXLZ3 (ORCPT ); Mon, 24 May 2021 07:25:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1621855441; x=1653391441; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=qWReMlBu2pEz10hW6XZxbX0QXg7/bMn3wao9J0zFBXg=; b=q76xaTlpJuj8CFagYJYkSLzuqrk39QPiAPrXwq9Lffk13Eq9x6aJj6gw tdtjyxyw1u4kso2hr276pwvJSYSVNf9D3c6okJ8hloVuunKjaz2QLnCZk 1W10RJe2hAo679yRZEs7Iq8sb4tkiHZt4p9dUVWV54uOaam1cglm3wqzH 4gGZjPuDOJeJqu9R3RL5GGNAJvfBsiQster+7XtZsv6HTzrOwagGxxavF IYz0olI7/OBlX0kYouBC1x8hfaBWZz1G45YatoddgXyntbRsnDT8De9pO 71q7Om0hCU7Ctb8FEUcOKrELBfFV3M1M2k1i2t6sRfiggdSE4YX8YtD1A g==; IronPort-SDR: ZzLmolHE0y5zV8eMYZ25UTlJESVkLZuWi+SEW186avRKd0nq1nSWSUeHnPBRzXaot+GvPUrf9N Ogv1ipR6u6ZGe6j2NjmM+qEkvyqUDC2WvIVRgTHMXREwSTzK9v7Q0U2FFcbHd+YtoESKI6eHyb QsgI1z44UfPWsoI+8u8od6ZNn33qSVzH+h1yKrDV5Ci1V0EzIbuqjuy2DKKlNljB16UVjmwCEd M3meAY+k/Lf+Nxd2U8yfOVxnwHnpk2m5zNtLRpzo0H4/CZnc+jeH4DF82VNST/1PfNkSs868Ui GzM= X-IronPort-AV: E=Sophos;i="5.82,319,1613404800"; d="scan'208";a="280526068" Received: from uls-op-cesaip01.wdc.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 24 May 2021 19:24:01 +0800 IronPort-SDR: YdjGZdPdgSf7cFguNJvbFo80HILysLB+ATbaM3M9iOOwD19DG3LKpZu7DcbfgjQt61Lpl5YKkd IVldb1CKYM0UJ5RLN2YNiYg0HH1Y3lceFYKtUCh6zjrQA5Pru1Uc52WbJ7JUgTz5Gzw8jXZJoA +3wa8E0eU3ukLqesrX4PYe7gqGbb9IgXqeN+2l+6G5Jk9Zwenb4ty15Fp1a+gsoq0PasPx38V4 Gtyaz5u+Ljf9XJsxe/7/ghxUCOWs++NTlwYaOI3k6oqcJchvq8mHY1p8rSZMVuIiElOlGqJZml pfhWev87no4XMzkwmP5viqbx Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep01.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 May 2021 04:03:31 -0700 IronPort-SDR: 5EoQycSBlssjux3NqiqqvxE4o6WRLgYUCzH3z5m+/oUpfYXoZzW2IfIU269MxytWUX1vwlsttc 9Sko7/og+oMP4Wgzg1ECw/phQstiMMGQIdq/eN3LilizG1wpXXr5LqwmLBivEeR4zfoDFhOatX kobqI0Adi8SenFc+93+It08zsWntc6weX/CBJfxN5sSvNPgTNCGsmWNFoFr9ku++ZC1q8G/ulq PmOK0kFAWFNlLkfiSw/SIjd1AvOrUT6WilWX8WkHHpcbTjIZ8olyMByTtH+WixN5QDbHNFJ2q1 hsU= WDCIronportException: Internal Received: from bxygm33.sdcorp.global.sandisk.com ([10.0.231.247]) by uls-op-cesaip01.wdc.com with ESMTP; 24 May 2021 04:23:57 -0700 From: Avri Altman To: "James E . J . Bottomley" , "Martin K . Petersen" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: gregkh@linuxfoundation.org, Bart Van Assche , yongmyung lee , Daejun Park , alim.akhtar@samsung.com, asutoshd@codeaurora.org, Zang Leigang , Avi Shchislowski , Bean Huo , cang@codeaurora.org, stanley.chu@mediatek.com, Avri Altman Subject: [PATCH v9 11/12] scsi: ufshpb: Add support for host control mode Date: Mon, 24 May 2021 14:19:12 +0300 Message-Id: <20210524111913.61303-12-avri.altman@wdc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210524111913.61303-1-avri.altman@wdc.com> References: <20210524111913.61303-1-avri.altman@wdc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Support devices that report they are using host control mode. Signed-off-by: Avri Altman Reviewed-by: Daejun Park --- drivers/scsi/ufs/ufshpb.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/scsi/ufs/ufshpb.c b/drivers/scsi/ufs/ufshpb.c index 585515c560a4..f52942cbf3b3 100644 --- a/drivers/scsi/ufs/ufshpb.c +++ b/drivers/scsi/ufs/ufshpb.c @@ -2583,12 +2583,6 @@ void ufshpb_get_dev_info(struct ufs_hba *hba, u8 *desc_buf) u32 max_hpb_single_cmd = HPB_MULTI_CHUNK_LOW; hpb_dev_info->control_mode = desc_buf[DEVICE_DESC_PARAM_HPB_CONTROL]; - if (hpb_dev_info->control_mode == HPB_HOST_CONTROL) { - dev_err(hba->dev, "%s: host control mode is not supported.\n", - __func__); - hpb_dev_info->hpb_disabled = true; - return; - } version = get_unaligned_be16(desc_buf + DEVICE_DESC_PARAM_HPB_VER); if ((version != HPB_SUPPORT_VERSION) && -- 2.25.1