public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH] MdePkg/PciSegmentLibSegmentInfo: fix typo in PciSegmentBitFieldAnd*()
@ 2017-09-05 14:50 Ruiyu Ni
  2017-09-05 15:49 ` Ard Biesheuvel
  0 siblings, 1 reply; 2+ messages in thread
From: Ruiyu Ni @ 2017-09-05 14:50 UTC (permalink / raw)
  To: edk2-devel; +Cc: Ard Biesheuvel

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
---
 MdePkg/Library/PciSegmentLibSegmentInfo/PciSegmentLibCommon.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/MdePkg/Library/PciSegmentLibSegmentInfo/PciSegmentLibCommon.c b/MdePkg/Library/PciSegmentLibSegmentInfo/PciSegmentLibCommon.c
index 7b7324d673..e0bdb16911 100644
--- a/MdePkg/Library/PciSegmentLibSegmentInfo/PciSegmentLibCommon.c
+++ b/MdePkg/Library/PciSegmentLibSegmentInfo/PciSegmentLibCommon.c
@@ -381,7 +381,7 @@ PciSegmentBitFieldAnd8 (
   PCI_SEGMENT_INFO             *SegmentInfo;
 
   SegmentInfo = GetPciSegmentInfo (&Count);
-  return MmioBitFieldOr8 (PciSegmentLibGetEcamAddress (Address, SegmentInfo, Count), StartBit, EndBit, AndData);
+  return MmioBitFieldAnd8 (PciSegmentLibGetEcamAddress (Address, SegmentInfo, Count), StartBit, EndBit, AndData);
 }
 
 /**
@@ -752,7 +752,7 @@ PciSegmentBitFieldAnd16 (
   PCI_SEGMENT_INFO             *SegmentInfo;
 
   SegmentInfo = GetPciSegmentInfo (&Count);
-  return MmioBitFieldOr16 (PciSegmentLibGetEcamAddress (Address, SegmentInfo, Count), StartBit, EndBit, AndData);
+  return MmioBitFieldAnd16 (PciSegmentLibGetEcamAddress (Address, SegmentInfo, Count), StartBit, EndBit, AndData);
 }
 
 /**
@@ -1119,7 +1119,7 @@ PciSegmentBitFieldAnd32 (
   PCI_SEGMENT_INFO             *SegmentInfo;
 
   SegmentInfo = GetPciSegmentInfo (&Count);
-  return MmioBitFieldOr32 (PciSegmentLibGetEcamAddress (Address, SegmentInfo, Count), StartBit, EndBit, AndData);
+  return MmioBitFieldAnd32 (PciSegmentLibGetEcamAddress (Address, SegmentInfo, Count), StartBit, EndBit, AndData);
 }
 
 /**
-- 
2.12.2.windows.2



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] MdePkg/PciSegmentLibSegmentInfo: fix typo in PciSegmentBitFieldAnd*()
  2017-09-05 14:50 [PATCH] MdePkg/PciSegmentLibSegmentInfo: fix typo in PciSegmentBitFieldAnd*() Ruiyu Ni
@ 2017-09-05 15:49 ` Ard Biesheuvel
  0 siblings, 0 replies; 2+ messages in thread
From: Ard Biesheuvel @ 2017-09-05 15:49 UTC (permalink / raw)
  To: Ruiyu Ni; +Cc: edk2-devel@lists.01.org

On 5 September 2017 at 15:50, Ruiyu Ni <ruiyu.ni@intel.com> wrote:
> Contributed-under: TianoCore Contribution Agreement 1.0
> Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>

Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>

> ---
>  MdePkg/Library/PciSegmentLibSegmentInfo/PciSegmentLibCommon.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/MdePkg/Library/PciSegmentLibSegmentInfo/PciSegmentLibCommon.c b/MdePkg/Library/PciSegmentLibSegmentInfo/PciSegmentLibCommon.c
> index 7b7324d673..e0bdb16911 100644
> --- a/MdePkg/Library/PciSegmentLibSegmentInfo/PciSegmentLibCommon.c
> +++ b/MdePkg/Library/PciSegmentLibSegmentInfo/PciSegmentLibCommon.c
> @@ -381,7 +381,7 @@ PciSegmentBitFieldAnd8 (
>    PCI_SEGMENT_INFO             *SegmentInfo;
>
>    SegmentInfo = GetPciSegmentInfo (&Count);
> -  return MmioBitFieldOr8 (PciSegmentLibGetEcamAddress (Address, SegmentInfo, Count), StartBit, EndBit, AndData);
> +  return MmioBitFieldAnd8 (PciSegmentLibGetEcamAddress (Address, SegmentInfo, Count), StartBit, EndBit, AndData);
>  }
>
>  /**
> @@ -752,7 +752,7 @@ PciSegmentBitFieldAnd16 (
>    PCI_SEGMENT_INFO             *SegmentInfo;
>
>    SegmentInfo = GetPciSegmentInfo (&Count);
> -  return MmioBitFieldOr16 (PciSegmentLibGetEcamAddress (Address, SegmentInfo, Count), StartBit, EndBit, AndData);
> +  return MmioBitFieldAnd16 (PciSegmentLibGetEcamAddress (Address, SegmentInfo, Count), StartBit, EndBit, AndData);
>  }
>
>  /**
> @@ -1119,7 +1119,7 @@ PciSegmentBitFieldAnd32 (
>    PCI_SEGMENT_INFO             *SegmentInfo;
>
>    SegmentInfo = GetPciSegmentInfo (&Count);
> -  return MmioBitFieldOr32 (PciSegmentLibGetEcamAddress (Address, SegmentInfo, Count), StartBit, EndBit, AndData);
> +  return MmioBitFieldAnd32 (PciSegmentLibGetEcamAddress (Address, SegmentInfo, Count), StartBit, EndBit, AndData);
>  }
>
>  /**
> --
> 2.12.2.windows.2
>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-09-05 15:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-05 14:50 [PATCH] MdePkg/PciSegmentLibSegmentInfo: fix typo in PciSegmentBitFieldAnd*() Ruiyu Ni
2017-09-05 15:49 ` Ard Biesheuvel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox