Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp209448pxb; Tue, 2 Feb 2021 03:15:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJxC9OUhY76iNA7XIQ3ZD0HNKPqpmIBqDTUc1gPefipK26AZSToo1wNOMBNYZ/mFaZmizcFV X-Received: by 2002:a05:6402:11d3:: with SMTP id j19mr23120356edw.314.1612264549131; Tue, 02 Feb 2021 03:15:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612264549; cv=none; d=google.com; s=arc-20160816; b=hoQaXpTEVb45+22lGJxRoMFyJyHlMhwB88csvspj7j5VrWSfefc8acJoSExs4QBNrb ZXvSWNobXX3WBCLKpPHeiqzZ6QTixriyCr2GjDVvA6cOtzkB5+prNP8BATDBPEyhLBXh OsdhV/QRaSm3aEBFqE6DQvJT49j1ME7+sWVM3UFGCnNZ5PWEQZzL90DcNflYiNJHy/hv SWmwCrCwlCmkb1s0u8b4LCb6U6khT615TzNLB20MekF+6CJ80kPZcq6sXurLWa66ro0r VNaCG73nOcFAuIaZP5X3RlBQLBNYzZ7w5lE8MphzxTYMbE+6Ws88OtRu8bID8eB5Y/eY kCHg== 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=k5cLE0ueNWcsmBEOFqnqduCB6Z/g3IR2KOnyQTx1Fl0=; b=RHV+SRWPR1eSmYVGVn/lOQnH5/DSc5Lty0Rp738bva7TAy9kmW30ISQOZ/KA2jD15J 0Um2jGWyi+HcI/mXBqCP4VW1ofz2kYUDf74ISlOniHhtftQEYgeIPLDTwXLZlo3BqfIn pU1XBs+suyf9HNPeDTMKHOydTvt+HUF1Lc6tQQYPOzOdZ+chJEJdvCmI4ny2vQ/5YLZO 2EcG9bxZFV6idSiaVtZseJy+jRoZx7e+2Sz5qnG5cNXnkIInx134VhYuaCvIQkTiMdbj PuwDmvxh+zZuc90+gmpzON/YiWeGteMFSY2S1tLu1DjG8cGsyq+PxG9Y3qu+593d1TS3 2d8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IBCd6nSa; 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 u20si12221640edv.129.2021.02.02.03.15.25; Tue, 02 Feb 2021 03:15:49 -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=IBCd6nSa; 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 S230304AbhBBLOh (ORCPT + 99 others); Tue, 2 Feb 2021 06:14:37 -0500 Received: from mail.kernel.org ([198.145.29.99]:56286 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229590AbhBBLOg (ORCPT ); Tue, 2 Feb 2021 06:14:36 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8401964E4C; Tue, 2 Feb 2021 11:13:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1612264436; bh=swdRn14Q1D74Pi+r45gEuFtE2AA6kUL0/PhdXDBX7aY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IBCd6nSauf4BF/B+0l4xVaIQ8GEUEMRdw5q3sokGu4kSqZRfg+7n7ARxPZPm0BR/t HFOgXed63ix4o9zGJQZCjzXgTyUUGYJhkxfqz6AezegqNlBVK54Lkorj1DoqH+AlVZ JZSgDkDKFKPkM79+hE/XPnCAWqKVg0qAPB+Ag+Us= Date: Tue, 2 Feb 2021 12:13:50 +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 v2 2/9] scsi: ufshpb: Add host control mode support to rsp_upiu Message-ID: References: <20210202083007.104050-1-avri.altman@wdc.com> <20210202083007.104050-3-avri.altman@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210202083007.104050-3-avri.altman@wdc.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 02, 2021 at 10:30:00AM +0200, Avri Altman wrote: > diff --git a/drivers/scsi/ufs/ufshpb.h b/drivers/scsi/ufs/ufshpb.h > index afeb6365daf8..5ec4023db74d 100644 > --- a/drivers/scsi/ufs/ufshpb.h > +++ b/drivers/scsi/ufs/ufshpb.h > @@ -48,6 +48,11 @@ enum UFSHPB_MODE { > HPB_DEVICE_CONTROL, > }; > > +enum HPB_RGN_FLAGS { > + RGN_FLAG_UPDATE = 0, > + RGN_FLAG_DIRTY, > +}; > + > enum UFSHPB_STATE { > HPB_PRESENT = 1, > HPB_SUSPEND, > @@ -109,6 +114,7 @@ struct ufshpb_region { > > /* below information is used by lru */ > struct list_head list_lru_rgn; > + unsigned long rgn_flags; Why an unsigned long for a simple enumerated type? And why not make this "type safe" by explicitly saying this is an enumerated type variable? thanks, greg k-h