[PATCH v3 02/10] ARM: tegra: export Tegra chipid

Colin Cross ccross at android.com
Wed Feb 22 14:19:53 EST 2012


On Mon, Feb 20, 2012 at 3:30 PM, Olof Johansson <olof at lixom.net> wrote:
> Hi,
>
> On Mon, Feb 20, 2012 at 3:13 PM, Colin Cross <ccross at android.com> wrote:
>
>> Other platforms use accessors for this (cpu_is_xxx(), although
>> soc_is_xxx() is probably more appropriate).
>
> I have previously objected to additions of said functions on tegra,
> since they tend to start crawling into drivers as runtime tests
> instead of providing more appropriate detection at probe time.
>
> I can be persuaded differently but I haven't yet seen a strong case
> for changing my mind. :)

soc_is_xxx() is better than spreading tegra_chip_id == XXX all over
the place, but keeping them out of drivers completely is even better.



More information about the linux-arm-kernel mailing list