[PATCH 2/2] pinmux: add a driver for the U300 pinmux

tommy.hong hongjiujing at 126.com
Sun Oct 9 02:33:44 UTC 2011



At 2011-10-08 17:37:36,"Barry Song" <21cnbao at gmail.com> wrote:
>> +static void __init u300_pmx_dumpregs(struct u300_pmx *upmx)
>> +{
>> +       u16 regval;
>> +       int i;
>> +
>> +       for (i = 0; i < ARRAY_SIZE(u300_pmx_registers); i++) {
>> +               regval = readw(upmx->virtbase + u300_pmx_registers[i]);
>> +               dev_info(upmx->dev, "PMX%u: 0x%04x\n", i, regval);
>> +       }
>> +}
>> +
>
>is this a debug information or do you want it to be in mainline?
>
Hi,Barry,should dumpregs function need "CONFIG_XXX_DEBUG" when probe ?and if driver meet some issue or error,we can use dumpregs to trace?
>-barry
>
Tommy
>_______________________________________________
>linaro-dev mailing list
>linaro-dev at lists.linaro.org
>http://lists.linaro.org/mailman/listinfo/linaro-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linaro.org/pipermail/linaro-dev/attachments/20111009/c59d9339/attachment.html>


More information about the linaro-dev mailing list