At 2011-10-08 17:37:36,"Barry Song" <21cnbao@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@lists.linaro.org >http://lists.linaro.org/mailman/listinfo/linaro-dev