<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Tianocore/edk2-platforms.git/Silicon/Synopsys/DesignWare/Drivers, branch CodeCleanup</title>
<subtitle>EDK II sample platform branches and tags (mirror)</subtitle>
<id>https://git.radix-linux.su/Tianocore/edk2-platforms.git/atom?h=CodeCleanup</id>
<link rel='self' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/atom?h=CodeCleanup'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/'/>
<updated>2023-07-29T07:03:42+00:00</updated>
<entry>
<title>Silicon/Synopsys/DesignWare: DwEmacSnpDxe: Fix bug in EmacGetDmaStatus</title>
<updated>2023-07-29T07:03:42+00:00</updated>
<author>
<name>Yang Wang</name>
<email>wangyzhaoz@163.com</email>
</author>
<published>2023-07-28T03:59:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/commit/?id=cbab3c40f76ee913621a9f4afe3398b217b0d086'/>
<id>urn:sha1:cbab3c40f76ee913621a9f4afe3398b217b0d086</id>
<content type='text'>
The EFI spec (see UEFI 2.10, 24.1.12) requires EFI_SIMPLE_NETWORK's
GetStatus() method to handle NULL InterruptStatus pointers by not
reading nor clearing the interrupt status from the device.

However, EmacGetDmaStatus (part of the DwEmacSnpDxe GetStatus()
implementation) did not correctly handle NULL IrqStat, despite already
being tagged as an OPTIONAL argument. This made calling GetStatus() with
a NULL pointer (for example, the call in MnpRecycleTxBuf) either corrupt
memory or straight-up crash.

Make it EFI spec compliant, by adding proper NULL pointer checks around
RI_SET_MSK and TI_SET_MSK retrieval/clearing.

Signed-off-by: Yang Wang &lt;wangyzhaoz@163.com&gt;
[ardb: update commit log according to Pedro's suggestion]
Acked-by: Pedro Falcato &lt;pedro.falcato@gmail.com&gt;
Reviewed-by: Ard Biesheuvel &lt;ardb@kernel.org&gt;
</content>
</entry>
<entry>
<title>Silicon/Synopsys/DesignWare: Casts to avoid void* pointer arithmetic</title>
<updated>2020-08-05T10:04:18+00:00</updated>
<author>
<name>Pierre Gondois</name>
<email>pierre.gondois@arm.com</email>
</author>
<published>2020-07-30T19:15:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/commit/?id=b2eebc1d593e4773ac54eb0e010eb851cd33ccda'/>
<id>urn:sha1:b2eebc1d593e4773ac54eb0e010eb851cd33ccda</id>
<content type='text'>
By default, gcc allows void* pointer arithmetic.
This is a GCC extension.
However, the C reference manual states that void*
pointer "cannot be operands of addition or subtraction
operators". Cf s5.3.1 "Generic Pointers".

This patch adds casts to avoid doing void* pointer arithmetic.

Signed-off-by: Pierre Gondois &lt;pierre.gondois@arm.com&gt;
Reviewed-by: Leif Lindholm &lt;leif@nuviainc.com&gt;
</content>
</entry>
<entry>
<title>Silicon/Synopsys/DesignWare: import eMMC DXE driver from EmbeddedPkg</title>
<updated>2020-05-04T13:14:36+00:00</updated>
<author>
<name>Ard Biesheuvel</name>
<email>ard.biesheuvel@arm.com</email>
</author>
<published>2020-04-30T16:17:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/commit/?id=29bbc700c4d8f864c4d79c24d7f6ec3c717e0b68'/>
<id>urn:sha1:29bbc700c4d8f864c4d79c24d7f6ec3c717e0b68</id>
<content type='text'>
Incorporate the driver for the DesignWare eMMC host controller that is
based on the obsolete MMC host controller protocol that is defined in
EmbeddedPkg.

This driver does not follow the UEFI driver model, and is only kept
around for its only users, which is the HiKey platform, which is
rapidly reaching obsolescence itself, at which point this driver may
be removed again.

To prevent inadvertent use in new platforms, add a PCD that needs to
be changed from its default value in order for the driver to be
functional.

Signed-off-by: Ard Biesheuvel &lt;ard.biesheuvel@arm.com&gt;
Reviewed-by: Philippe Mathieu-Daude &lt;philmd@redhat.com&gt;
Reviewed-by: Leif Lindholm &lt;leif@nuviainc.com&gt;
</content>
</entry>
<entry>
<title>Silicon/Synopsys/DesignWare: DwEmacSnpDxe: Add DesignWare EMAC driver</title>
<updated>2019-07-19T09:32:18+00:00</updated>
<author>
<name>Ooi Tzy Way</name>
<email>tzy.way.ooi@intel.com</email>
</author>
<published>2019-07-19T06:43:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/commit/?id=e80b3f804cae694349172ce46a36664afdd3bcf4'/>
<id>urn:sha1:e80b3f804cae694349172ce46a36664afdd3bcf4</id>
<content type='text'>
Add driver support for the Ethernet MAC based on Synopsys DesignWare
3504-0 Universal 10/100/1000 Ethernet MAC and KSZ9031 PHY

Cc: Ard BieSheuvel &lt;ard.biesheuvel@linaro.org&gt;
Cc: Leif Lindholm &lt;leif.lindholm@linaro.org&gt;
Cc: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
Cc: Loh Tien Hock &lt;tien.hock.loh@intel.com&gt;

Signed-off-by: Ooi Tzy Way &lt;tzy.way.ooi@intel.com&gt;
Reviewed-by: Leif Lindholm &lt;leif.lindholm@linaro.org&gt;
</content>
</entry>
</feed>
