Re: [PATCH v3 5/8] PCI: vmd: Replace hardcoded values with enum and defines

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Nov 22, 2024 at 09:52:12AM +0100, Szymon Durawa wrote:
> Add enum vmd_resource type to replace hardcoded values. Add defines for
> vmd bus start number based on VMD restriction value. No functional
> changes.
> 
> Suggested-by: Nirmal Patel <nirmal.patel@xxxxxxxxxxxxxxx>
> Reviewed-by: Mariusz Tkaczyk <mariusz.tkaczyk@xxxxxxxxxxxxxxx>
> Signed-off-by: Szymon Durawa <szymon.durawa@xxxxxxxxxxxxxxx>
> ---
>  drivers/pci/controller/vmd.c | 42 ++++++++++++++++++++++++------------
>  1 file changed, 28 insertions(+), 14 deletions(-)
> 
> diff --git a/drivers/pci/controller/vmd.c b/drivers/pci/controller/vmd.c
> index 24ca19a28ba7..1cd55c3686f3 100755
> --- a/drivers/pci/controller/vmd.c
> +++ b/drivers/pci/controller/vmd.c
> @@ -23,6 +23,10 @@
>  #define VMD_MEMBAR1	2
>  #define VMD_MEMBAR2	4
>  
> +#define VMD_RESTRICT_0_BUS_START 0
> +#define VMD_RESTRICT_1_BUS_START 128
> +#define VMD_RESTRICT_2_BUS_START 224

Oh, you added this in this series!  I assumed they were already there.
Please convert these to hex.




[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux