Re: [edk2-devel] [PATCH V3 0/2] *MdePkg/UefiDevicePathLib: Separate the lib instances

2019-12-23 Thread Liming Gao
nney, Michael D ; Gao, Liming > ; Vitaly Cheptsov > Subject: RE: [edk2-devel] [PATCH V3 0/2] *MdePkg/UefiDevicePathLib: Separate > the lib instances > > Ray, > > Your suggestion is good for open source, but unfriendly to the close source > platforms which consume this lib.

Re: [edk2-devel] [PATCH V3 0/2] *MdePkg/UefiDevicePathLib: Separate the lib instances

2019-12-22 Thread Gao, Zhichao
more code duplication > IMO. > > Thanks, > Ray > > > -Original Message- > > From: Gao, Zhichao > > Sent: Friday, December 20, 2019 2:41 PM > > To: Ni, Ray ; devel@edk2.groups.io > > Cc: Kinney, Michael D ; Gao, Liming > > ; Vitaly Cheptsov >

Re: [edk2-devel] [PATCH V3 0/2] *MdePkg/UefiDevicePathLib: Separate the lib instances

2019-12-19 Thread Ni, Ray
age- > From: Gao, Zhichao > Sent: Friday, December 20, 2019 2:41 PM > To: Ni, Ray ; devel@edk2.groups.io > Cc: Kinney, Michael D ; Gao, Liming > ; Vitaly Cheptsov > Subject: RE: [edk2-devel] [PATCH V3 0/2] *MdePkg/UefiDevicePathLib: > Separate the lib instances > > For ope

Re: [edk2-devel] [PATCH V3 0/2] *MdePkg/UefiDevicePathLib: Separate the lib instances

2019-12-19 Thread Gao, Zhichao
> To: Gao, Zhichao ; devel@edk2.groups.io > Cc: Kinney, Michael D ; Gao, Liming > ; Vitaly Cheptsov > Subject: RE: [edk2-devel] [PATCH V3 0/2] *MdePkg/UefiDevicePathLib: Separate > the lib instances > > Removing code duplication is great. > > But your patch introduces

Re: [edk2-devel] [PATCH V3 0/2] *MdePkg/UefiDevicePathLib: Separate the lib instances

2019-12-19 Thread Ni, Ray
DevicePathLib path. > > Thanks, > Zhichao > > > -Original Message- > > From: Ni, Ray > > Sent: Friday, December 20, 2019 1:50 PM > > To: devel@edk2.groups.io; Gao, Zhichao > > Cc: Kinney, Michael D ; Gao, Liming > > ; Vitaly Cheptsov > > Subj

Re: [edk2-devel] [PATCH V3 0/2] *MdePkg/UefiDevicePathLib: Separate the lib instances

2019-12-19 Thread Gao, Zhichao
9 1:50 PM > To: devel@edk2.groups.io; Gao, Zhichao > Cc: Kinney, Michael D ; Gao, Liming > ; Vitaly Cheptsov > Subject: RE: [edk2-devel] [PATCH V3 0/2] *MdePkg/UefiDevicePathLib: Separate > the lib instances > > Zhichao, > \MdePkg\Library\UefiDevicePathLibDevicePathProtocol\

Re: [edk2-devel] [PATCH V3 0/2] *MdePkg/UefiDevicePathLib: Separate the lib instances

2019-12-19 Thread Ni, Ray
December 18, 2019 10:11 AM > To: devel@edk2.groups.io > Cc: Kinney, Michael D ; Gao, Liming > ; Vitaly Cheptsov > Subject: [edk2-devel] [PATCH V3 0/2] *MdePkg/UefiDevicePathLib: Separate > the lib instances > > REF: https://bugzilla.t

Re: [edk2-devel] [PATCH V3 0/2] *MdePkg/UefiDevicePathLib: Separate the lib instances

2019-12-18 Thread Gao, Zhichao
On Behalf Of Vitaly Cheptsov via Groups.Io Sent: Wednesday, December 18, 2019 4:27 PM To: Gao, Zhichao ; devel@edk2.groups.io Cc: Kinney, Michael D ; Gao, Liming Subject: Re: [edk2-devel] [PATCH V3 0/2] *MdePkg/UefiDevicePathLib: Separate the lib instances This makes very good sense to me, thank

Re: [edk2-devel] [PATCH V3 0/2] *MdePkg/UefiDevicePathLib: Separate the lib instances

2019-12-18 Thread Vitaly Cheptsov via Groups.Io
This makes very good sense to me, thank you for taking your time to fix it. I am slightly unsure whether if checks with subsequent assertions are really needed in mandatory version, as asserting in the constructor will trigger missing protocol very early anyway, but I do not think it is

[edk2-devel] [PATCH V3 0/2] *MdePkg/UefiDevicePathLib: Separate the lib instances

2019-12-17 Thread Gao, Zhichao
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2298 The UefiDevicePathLibOptionalDevicePathProtocolConstructor's implementation isn't match with its instance name. Remove the ASSERT and depex of the gEfiDevicePathUtilitiesProtocolGuid because of "Optional". Add a mandatory instance to force