arch/drivers looks like a better idea than just drivers/
but arch/ contains one directory per architecture: arm x68 risc-v. and
drivers is not an arch.
drivers/arch/<chip> could also be used.
Sebastien
On 28/08/2024 18:03, Lwazi Dube wrote:
On Wed, 28 Aug 2024 at 11:43, raiden00pl <raiden0...@gmail.com> wrote:
I don't know what was the initial intention about `drivers/`, only Greg can
answer this question.
But what I see now is that `drivers/` implement `upper-half` drivers, and
arch specific drivers implement "lower-half" drivers (there are probably a
few exceptions
to this rule).
For this reason, polluting `drivers/` with "lower-half" implementations
seems bad for me
and I think arch specific 'lower-half' drivers should be somewhere in
`arch/` (`arch/common/<chip_name>`,
`arch/drivers/<chip_name>` ?)
Thanks. I would go with arch/drivers.