Re: gemini: sl3516: Mainlining of NS 2502

From: Corentin Labbe
Date: Wed May 12 2021 - 16:51:32 EST


Le Thu, May 06, 2021 at 01:56:28AM +0200, Linus Walleij a écrit :
> Hi Corentin,
>
> I will check the patches you posted too, sorry for being a bit busy
> with some merge window and stuff.
>
> On Wed, May 5, 2021 at 9:26 PM Corentin Labbe <clabbe.montjoie@xxxxxxxxx> wrote:
>
> > It seems that USB is still a bit buggy, device are detected only if plugged before boot.
>
> Yeah :/ I don't know that driver very well, only that others use it too
> so there might be some people who can help. I haven't mainlined
> that patch because there is something that seems wrong about it
> but I'm not a USB guy.
>
> > I hit a problem on the NS2502, sata drives does not work well:
> (...)
> > It seems a problem soon after driver probe (qc timeout and HPA error).
> > Any idea ?
> >
> > The SATA works well on my other board (SSI1328)
> > having one or two disk does not change the behavour.
>
> Could be the SATA muxing, this thing in your device tree:
>
> sata: sata@46000000 {
> cortina,gemini-ata-muxmode = <0>;
> cortina,gemini-enable-sata-bridge;
> status = "okay";
> };
>
> cortina,gemini-ata-muxmode should be 3 for two harddisks
> I think.
>

I used 0, and only the second slot was working.
Using 3 fixed both slots.

Thanks