Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2975735pxb; Sat, 30 Jan 2021 23:36:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJxYNXN15d9i+X5yMHx+pgq+ah3hDOlEFrhE05O6EFsW8bJpT4gr50rmUzCZ+PxXi+iG7RVo X-Received: by 2002:a05:6402:254b:: with SMTP id l11mr13039816edb.202.1612078574791; Sat, 30 Jan 2021 23:36:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612078574; cv=none; d=google.com; s=arc-20160816; b=Iy80+pXF9oR/eKHPph9fEgC6foCD9ihWqEbkpjTwJH4tQgN0z3ptEAeR/4v4ka6br8 8Irca4ltXz2C9zPv2oBd2wCIt1X1JoPOGczp97pZHubAVZFVuPYa6qG1Slr4ClRSid2z c3kjj8ljmO6A4PnnUtSdR/A3gSgFdKMnroBenpqusl+MoLN2Q71lghlTenht1u+fa7JP 5kBzSe8vSoXdlnRYixmDMX+ZyTb22nNaBkudC9N6jcJ15pUvnx5rQvNxFbkPqUoOOsue EoFEdb0uWXet0FktCTX9rGqhBRWldFxni+5SS2VNQHuFFBycwkuPhDkUhc61MCNBsfxJ /cFw== 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=12kPPTb0wFx6GE2qiVSsqj8X1GM/F3UQtqMVreRrldQ=; b=p8Iziiis+DPAF1lGCg/jAeICilGqXMSBQt4GAXlbrX6A7w+sGnpIZReFm0Tn34FBXQ 6Kw+idFLxRexOCo3Bj8LxSBtM3XGOJ1E0yMn7D/FdrB9BymxOR1bfTg9z9x9GS/OVuLU UJwGphYmauldOxau5OT2m4GxvdVP1dOprjBRXWr/xZOoQMq0GNTEMqupVukvCkF+2RMh hNKC5slQQ+IUR6VrTO0i6otFqWmMwiUOhuvdJfjJCjIiX71j6eCIz2NUMpLcNIr5Doon 1GaT4C1Juf4EOWQIEeB5c9FwASJwswG6diwA9bWUz3Okt3Kf2u2xKGCtCVpVfpp0QIAA afDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=WF0vRmaC; 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 x21si8035396ejy.280.2021.01.30.23.35.50; Sat, 30 Jan 2021 23:36:14 -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=WF0vRmaC; 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 S229707AbhAaHO3 (ORCPT + 99 others); Sun, 31 Jan 2021 02:14:29 -0500 Received: from mail.kernel.org ([198.145.29.99]:46436 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbhAaHN4 (ORCPT ); Sun, 31 Jan 2021 02:13:56 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id CF29D64DD6; Sun, 31 Jan 2021 07:13:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1612077184; bh=FglZW/uYov0LpG0zR76gqAa9DRbX9rNVlulWVTKIC7U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WF0vRmaCjBNOdB2iPWQIOOJuJPfNUFboj5VI3QPNa3MXHVXAJkLjY3qGf4eS9Vcmv rvReKrCPnYTuFL1JAe4Uit2zFX7yiMVAqgVnK8wIdsNFwLdIMGtE0EVx4o0qOinpEZ nVDSYs3IHSBtNZz1Ritu11qNt0aEFJYfxjj83lf8= Date: Sun, 31 Jan 2021 08:13:00 +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: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jan 31, 2021 at 07:08:00AM +0000, Avri Altman wrote: > > > > > > +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? > Right. Done. > > Not being bickering, AFAIK, there aren't, nor will be in the foreseen future, any multi-ufs-hosts designs. Why not? What prevents someone from putting 2 PCI ufs host controllers in a system tomorrow? > There were some talks in the past about ufs cards, but this is officially off the table. Never say never :) Seriously, how can you somehow ensure that a random manufacturer will not do this? thanks, greg k-h