For the Raspberry Pi, we have 3 kernels that should work just fine out of the box.
These are linux-rpi4, linux-rpi4-mainline and linux-rpi4-rc.
The main difference between all these 3 kernels is the branch they are based on.
linux-rpi4: Is based on the current default branch that the Raspberry Pi foundation has in their kernel tree. linux-rpi4-mainline: Is based on the branch from the RPi foundation that has the same series as the current released mainline kernel, which they call stable upstream, so currently 6.1. linux-rpi4-rc: Is based on the branch from the RPi foundation that has the same series as the current “mainline”, as they call their release candidate branch, from upstream kernel.org, so currently 6.2-rc8.
They in essence use the same config when building.
I was confused i think with the word mainline.
Mainline, here, does not mean a kernel build with upstream source, It means it builds on the same series (branch ?) as upstream but from the RPI Foundation source?