Re: RFC on STM32 Ethernet driver

Erwan Gouriou

Hi Erwin,

LL based version was initiated without knowing Neil had a HAL based driver,
and from what I am aware of (unless I missed this information), Neil never
proposed to upstream it. I let him comment (or not) on the status of his driver.

Then, I confirm the strategy about bringing LL driver when possible and 
use HAL when there is a significant gain: on complex drivers (Eth and USB today).
Then, once HAL based ethernet driver will be available, functional cross series,
and mature, I don't think one will attempt to port it to LL anytime soon,
(Besides, there is no LL for these drivers, and I don't know if there will ever be*).

Finally, let me mention that some part of UART driver uses HAL today.
This was done earlier before having a clear view on STM32Cube matching
vs Zephyr. It should be ported totally to LL when possible, as per strategy.

* you'll find a file stm32l4xx_ll_usb.c, but is it actually a low layer of the HAL driver,
I admit this is confusing.

On 9 June 2017 at 15:04, Erwin Rol <mailinglists@...> wrote:
Hey Erwan,

On 9-6-2017 14:17, Erwan Gouriou wrote:
> Hi Erwin,
> As mentioned by Neil, CONTAINER_OF is a good solution that is used in
> other projects using STM32Cube.

Yes, I will rewrite it to use CONTRAINER_OF.

> About I2C driver, Jorge is working on a LL based version that should go
> upstream (work in progress).

So the I2C driver is being rewritten even though there is a working
version (I assume Neil's HAL version is working)? Now you are making me
even more unsure about the HAL, because it sounds like using the HAL
isn't really that wanted, and drivers will be rewritten using LL when
ever possible ?

- Erwin

Join to automatically receive all group messages.