diff mbox

[edk2,v2,5/6] ArmVirtPkg/QemuFwCfgLib: rebase lib instance to updated lib class header

Message ID 20161202202059.5061-6-lersek@redhat.com
State Accepted
Commit d61a5f45a9e273f9e03453c158b050e76c7dd1db
Headers show

Commit Message

Laszlo Ersek Dec. 2, 2016, 8:20 p.m. UTC
Put the FW_CFG_F_DMA constant, introduced in the last patch, to use.

Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Leif Lindholm <leif.lindholm@linaro.org>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>

---

Notes:
    v2:
    - no need to include another header [Leif]
    - scope is smaller now (only FW_CFG_F_DMA)

 ArmVirtPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.9.2


_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Comments

Leif Lindholm Dec. 5, 2016, 10:30 a.m. UTC | #1
On Fri, Dec 02, 2016 at 09:20:58PM +0100, Laszlo Ersek wrote:
> Put the FW_CFG_F_DMA constant, introduced in the last patch, to use.

> 

> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>

> Cc: Leif Lindholm <leif.lindholm@linaro.org>

> Contributed-under: TianoCore Contribution Agreement 1.0

> Signed-off-by: Laszlo Ersek <lersek@redhat.com>


Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>


> ---

> 

> Notes:

>     v2:

>     - no need to include another header [Leif]

>     - scope is smaller now (only FW_CFG_F_DMA)

> 

>  ArmVirtPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)

> 

> diff --git a/ArmVirtPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c b/ArmVirtPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c

> index 6033a2a14c42..1b19893709fc 100644

> --- a/ArmVirtPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c

> +++ b/ArmVirtPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c

> @@ -163,7 +163,7 @@ QemuFwCfgInitialize (

>  

>          QemuFwCfgSelectItem (QemuFwCfgItemInterfaceVersion);

>          Features = QemuFwCfgRead32 ();

> -        if ((Features & BIT1) != 0) {

> +        if ((Features & FW_CFG_F_DMA) != 0) {

>            mFwCfgDmaAddress = FwCfgDmaAddress;

>            InternalQemuFwCfgReadBytes = DmaReadBytes;

>          }

> -- 

> 2.9.2

> 

> 

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
Laszlo Ersek Dec. 5, 2016, 10:51 a.m. UTC | #2
On 12/05/16 11:30, Leif Lindholm wrote:
> On Fri, Dec 02, 2016 at 09:20:58PM +0100, Laszlo Ersek wrote:

>> Put the FW_CFG_F_DMA constant, introduced in the last patch, to use.

>>

>> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>

>> Cc: Leif Lindholm <leif.lindholm@linaro.org>

>> Contributed-under: TianoCore Contribution Agreement 1.0

>> Signed-off-by: Laszlo Ersek <lersek@redhat.com>

> 

> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>


Thanks Leif!
Laszlo

>> ---

>>

>> Notes:

>>     v2:

>>     - no need to include another header [Leif]

>>     - scope is smaller now (only FW_CFG_F_DMA)

>>

>>  ArmVirtPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c | 2 +-

>>  1 file changed, 1 insertion(+), 1 deletion(-)

>>

>> diff --git a/ArmVirtPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c b/ArmVirtPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c

>> index 6033a2a14c42..1b19893709fc 100644

>> --- a/ArmVirtPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c

>> +++ b/ArmVirtPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c

>> @@ -163,7 +163,7 @@ QemuFwCfgInitialize (

>>  

>>          QemuFwCfgSelectItem (QemuFwCfgItemInterfaceVersion);

>>          Features = QemuFwCfgRead32 ();

>> -        if ((Features & BIT1) != 0) {

>> +        if ((Features & FW_CFG_F_DMA) != 0) {

>>            mFwCfgDmaAddress = FwCfgDmaAddress;

>>            InternalQemuFwCfgReadBytes = DmaReadBytes;

>>          }

>> -- 

>> 2.9.2

>>

>>


_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
diff mbox

Patch

diff --git a/ArmVirtPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c b/ArmVirtPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c
index 6033a2a14c42..1b19893709fc 100644
--- a/ArmVirtPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c
+++ b/ArmVirtPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c
@@ -163,7 +163,7 @@  QemuFwCfgInitialize (
 
         QemuFwCfgSelectItem (QemuFwCfgItemInterfaceVersion);
         Features = QemuFwCfgRead32 ();
-        if ((Features & BIT1) != 0) {
+        if ((Features & FW_CFG_F_DMA) != 0) {
           mFwCfgDmaAddress = FwCfgDmaAddress;
           InternalQemuFwCfgReadBytes = DmaReadBytes;
         }