[meta-xilinx] Bug in xilinx-xadc-core

Nathan Rossi nathan at nathanrossi.com
Fri Jul 10 02:09:27 PDT 2015


On Tue, Jul 7, 2015 at 8:40 PM, MUGRIDGE Robin
<Robin.Mugridge at oxinst.com> wrote:
> Hi,
>
> I'm using meta-xilinx (fido) and 3.14 kernel and have identified a bug in the drivers/iio/adc/xilinx-xadc-core.c file which gives incorrect values for vccaux.
>
> ...
> static const struct iio_chan_spec xadc_channels[] = {
>         XADC_CHAN_TEMP(0, 8, XADC_REG_TEMP),
>         XADC_CHAN_VOLTAGE(0, 9, XADC_REG_VCCINT, "vccint", true),
>         XADC_CHAN_VOLTAGE(1, 10, XADC_REG_VCCINT, "vccaux", true),              <-- Should be: XADC_CHAN_VOLTAGE(1, 10, XADC_REG_VCCAUX, "vccaux", true),
>         XADC_CHAN_VOLTAGE(2, 14, XADC_REG_VCCBRAM, "vccbram", true)
> ...
>
> I'm quite new to this so am not sure of the process of submitting a fix - I could generate a bbappend and patch this myself, but it probably ought to be done in the linux-xlnx sources.  Can someone arrange this?

Hi Robin,

It looks like this issue has been fixed upstream for the 4.1 kernel.

https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/drivers/iio/adc/xilinx-xadc-core.c?id=d6c96c42283601e311a7a1a3d7e51cde9d7fdb6e

It appears that linux-xlnx has not yet updated to 4.1 yet. You should
be able to manage the patch yourself (in your layers/etc) until
linux-xlnx updates or backports the patch.

Regards,
Nathan

>
> Thanks,
>
> Robin
>
>
>
>
>
> ___________________________________________________________________________This e-mail is confidential and is for the addressee only.  Please refer to www.oxinst.com/email-statement for regulatory information.
> --
> _______________________________________________
> meta-xilinx mailing list
> meta-xilinx at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-xilinx



More information about the meta-xilinx mailing list