All of lore.kernel.org
 help / color / mirror / Atom feed
* regulator: fan53555: vsel_max does not match with the max voltage?
@ 2012-09-10  3:05 Axel Lin
  2012-09-10  3:17 ` Yunfan Zhang
  0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2012-09-10  3:05 UTC (permalink / raw)
  To: Yunfan Zhang; +Cc: Liam Girdwood, Mark Brown, linux-kernel

Hi Yunfan,
Just found below issue while reading the code:

For FAN53555_CHIP_ID_04,
        di->vsel_min = 603000;
        di->vsel_max = 1411000;
        di->vsel_step = 12826;

So we have below voltage list for FAN53555_CHIP_ID_04:

volt[0] = 603000
volt[1] = 615826
volt[2] = 628652
volt[3] = 641478
volt[4] = 654304
volt[5] = 667130

.......

volt[60] = 1372560
volt[61] = 1385386
volt[62] = 1398212
volt[63] = 1411038

Then volt[63] is greater than the vsel_max now.
This looks does not make sense.

Regards,
Axel


^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: regulator: fan53555: vsel_max does not match with the max voltage?
  2012-09-10  3:05 regulator: fan53555: vsel_max does not match with the max voltage? Axel Lin
@ 2012-09-10  3:17 ` Yunfan Zhang
  0 siblings, 0 replies; 2+ messages in thread
From: Yunfan Zhang @ 2012-09-10  3:17 UTC (permalink / raw)
  To: Axel Lin; +Cc: Liam Girdwood, Mark Brown, linux-kernel@vger.kernel.org

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8", Size: 952 bytes --]

> -----Original Message-----
> From: Axel Lin [mailto:axel.lin@gmail.com]
> Sent: 2012年9月10日 11:05
> To: Yunfan Zhang
> Cc: Liam Girdwood; Mark Brown; linux-kernel@vger.kernel.org
> Subject: regulator: fan53555: vsel_max does not match with the max voltage?
> 
> Hi Yunfan,
> Just found below issue while reading the code:
> 
> For FAN53555_CHIP_ID_04,
>         di->vsel_min = 603000;
>         di->vsel_max = 1411000;
>         di->vsel_step = 12826;
> volt[63] = 1411038
> 
> Then volt[63] is greater than the vsel_max now.
> This looks does not make sense.

Axel, Thanks for your findings! 
Yes, the volt[63] is GT the vsel_max. Actually vsel_max is not used... The max voltage will be bounded by desc->n_voltages. I will make a patch to remove it to avoid confusing. Thanks a lot!
ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±þG«éÿŠ{ayº\x1dʇڙë,j\a­¢f£¢·hšïêÿ‘êçz_è®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?™¨è­Ú&£ø§~á¶iO•æ¬z·švØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?–I¥

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-09-10  3:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-10  3:05 regulator: fan53555: vsel_max does not match with the max voltage? Axel Lin
2012-09-10  3:17 ` Yunfan Zhang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.