From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 68D25C433E0 for ; Tue, 2 Feb 2021 11:14:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 122DC64E31 for ; Tue, 2 Feb 2021 11:14:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230369AbhBBLOj (ORCPT ); Tue, 2 Feb 2021 06:14:39 -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