Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp590120pxb; Wed, 27 Jan 2021 16:03:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJwArhgyUPvcJDvx5snt64nleb/EqpPqTMYSYn+md4inAdQUtCyOlvlG4SQfP7c3ez0i5PBz X-Received: by 2002:a05:6402:1398:: with SMTP id b24mr10805622edv.108.1611792180214; Wed, 27 Jan 2021 16:03:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611792180; cv=none; d=google.com; s=arc-20160816; b=KA0KfsJXxbIgnFjWIWGddWrrHD73wnZm+q2/PcXmVPq1nH6b0jkuTSpi6yevxU7dGP 8sqJma2bYcEBEoc97Mv4lV8R/3ndALv5DgsR5ckrvTqNNCUxvgnNwOesY9SXBTxfx/NU T47ZxU2elo5dkhW+hgiOa0emud+Tg6+uT+n+Yi/J9pEHzCBRpUrhGTOfuttgiVci/tLB AhehN2ydFbk/WH/dtSZtM88+RH9auRNTqXTvsX7qgeBhL18ddiRpxHtSRFjXW4rJzM0D P5eAnmX8w227FHCKBdGHBtaDccHtLxLl1IHdAIxbWHJcnE7RvFuM5OlOQnJtYDi6RqYi tXvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=tt/K8Uf0CejgH/oOV4/JvGmjnT08gCyOVpR3Yxx8HHg=; b=c/WsC8x2vh43lr6AEIygxCfa5WW5VftlTucTOkqCijfxaZlDaes6PxtIvP2HBoI6XH wn57+uJ/HenSfSqC+CETS6yAv065ggBzUQdDRBApaqnXw6gxNvB12mtaglrNpPY5ergB oZ8+sF3Hkf0YYksiz3O4yIsf57QFoogAGH0Y7N04L7cpq9bJk/8eH/RRhKky6H5O5NQK B12T2n7BdliAm7wCFN4xoqaj0yeNCGRVtWk0VG3nGROfpdYuXKBLDw9ntg+XPelRZtHQ d1AIduc8QTVlbqctsG/SDhwv25Xv1OgAazv/kXo2ZqwxCpPnKaKyKH03U2pEo5FFMMbR C+wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eww1VXmf; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q18si1455051ejt.469.2021.01.27.16.02.36; Wed, 27 Jan 2021 16:03: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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eww1VXmf; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235405AbhA0PY2 (ORCPT + 99 others); Wed, 27 Jan 2021 10:24:28 -0500 Received: from mail.kernel.org ([198.145.29.99]:60320 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343804AbhA0PUT (ORCPT ); Wed, 27 Jan 2021 10:20:19 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 15E77207DE; Wed, 27 Jan 2021 15:19:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1611760777; bh=RA9rQ2xvdGOXteA6WC38jMW+W5EiTIher3eJGUoXFGo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eww1VXmficGkOu+NTZPjeWxDouV9+uM9TJD/LHYCXyDE6v2YkA9cle4ruggIWAI7A Gr2i0PfLPm3ISme1vpjnkoCLqKMq8O0ri5dHz2mHwrorHiMufGMU0V2fw6wgteYfX9 +R9O+mo8wNUSBWhuq0UPx8SDQeAmrhnaPnxc9+/o= Date: Wed, 27 Jan 2021 16:19:35 +0100 From: Greg KH To: Avri Altman Cc: "James E . J . Bottomley" , "Martin K . Petersen" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.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 Subject: Re: [PATCH 1/8] scsi: ufshpb: Cache HPB Control mode on init Message-ID: References: <20210127151217.24760-1-avri.altman@wdc.com> <20210127151217.24760-2-avri.altman@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210127151217.24760-2-avri.altman@wdc.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 27, 2021 at 05:12:10PM +0200, Avri Altman wrote: > We will use it later, when we'll need to differentiate between device > and host control modes. > > Signed-off-by: Avri Altman > --- > drivers/scsi/ufs/ufshpb.c | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/drivers/scsi/ufs/ufshpb.c b/drivers/scsi/ufs/ufshpb.c > index d3e6c5b32328..183bdf35f2d0 100644 > --- a/drivers/scsi/ufs/ufshpb.c > +++ b/drivers/scsi/ufs/ufshpb.c > @@ -26,6 +26,8 @@ static int tot_active_srgn_pages; > > static struct workqueue_struct *ufshpb_wq; > > +static enum UFSHPB_MODE ufshpb_mode; How are you allowed to have a single variable for a device-specific thing? What happens when you have two controllers or disks or whatever you are binding to here? How does this work at all? This should be per-device, right? thanks, greg k-h