Re: [PATCH] net: ethernet: stmmac: properly set PS bit in MII configurations during reset

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Thomas

On 7/29/2017 9:54 PM, Thomas Petazzoni wrote:
Hello Giuseppe,

On Wed, 28 Jun 2017 16:40:51 +0200, Giuseppe CAVALLARO wrote:

I do not want to change a critical reset function shared among
different platforms where
this problem has never met but you are right that we have to find a
way to proceed in order
to finalize your work. Let me elaborate your initial patch and I try
to give you a proposal asap.
In my mind, we should have a dedicated spear_dma_reset for your case
that should be used on
SPEAr platform driver (or by using st,spear600-gmac compatibility).
Also your patch did not consider the RMII and (R)GMII cases.
Have you had the chance to cook a different proposal? Alternatively, do
you have some specific hints to give me to make a new proposal that
would be acceptable for you ?

yes you are right and I had no chance to enter in this topic. :-(
We could follow one of the following approaches:

- add a new small platform driver where you can add ad-hoc code for SPEAr.

Today there is a compatibility for st,spear600-gmac inside the dwmac-generic.c

    - introduce a new DT parameter to set the PS bit when resetting the HW.

The latter should be quite easy to implement starting from your original patch, this approach is not intrusive and can help others in case of the same behavior is found.

What do you think?

Regards
Peppe


Thanks a lot,

Thomas Petazzoni





[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]