Peacemaker Wrote:
-------------------------------------------------------
> I already tried this and then I get a kernel
> panic. (posted it earlyer).
>
> Maybe I had the wrong syntax in the dts(i), but I
> don't even see how the driver read the dts and
> switches between ports like the vendors driver.
> So there might be more to do. I guess this driver
> is written for single sata, as the
> SATA_OXNAS_MAX_PORTS is hardcoded and not readed
> from dts.
>
> But I'm happy about any input, to figure out how
> to enable the second port.
Yes. I think possibly the kernel caused a panic is because of your dts. FDT is relatively new, so you wont find lots of drivers that have code handling it directly. Instead, this sata driver is typical (eg. sata_mv). As long as you have both dts and driver in sync then it will hopefully initialize the ports.
-------------------------------------------------------
> I already tried this and then I get a kernel
> panic. (posted it earlyer).
>
> Maybe I had the wrong syntax in the dts(i), but I
> don't even see how the driver read the dts and
> switches between ports like the vendors driver.
> So there might be more to do. I guess this driver
> is written for single sata, as the
> SATA_OXNAS_MAX_PORTS is hardcoded and not readed
> from dts.
>
> But I'm happy about any input, to figure out how
> to enable the second port.
Yes. I think possibly the kernel caused a panic is because of your dts. FDT is relatively new, so you wont find lots of drivers that have code handling it directly. Instead, this sata driver is typical (eg. sata_mv). As long as you have both dts and driver in sync then it will hopefully initialize the ports.