RE: vf610_adc: Division by zero

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Fabio Estevam <festevam@xxxxxxxxx> Sent: Wednesday, November 04, 2015 12:01 AM
> To: Duan Fugang-B38611
> Cc: Jonathan Cameron; linux-iio@xxxxxxxxxxxxxxx
> Subject: Re: vf610_adc: Division by zero
> 
> On Tue, Nov 3, 2015 at 1:26 PM, Fabio Estevam <festevam@xxxxxxxxx> wrote:
> > Hi Andy,
> >
> > Enabling vf610-adc in a imx6sx dts file causes the following error:
> 
> Ok, passing fsl,adck-max-frequency in the dtsi avoids the issue:
> 
> --- a/arch/arm/boot/dts/imx6sx.dtsi
> +++ b/arch/arm/boot/dts/imx6sx.dtsi
> @@ -1152,6 +1152,8 @@
>                  interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
>                  clocks = <&clks IMX6SX_CLK_IPG>;
>                  clock-names = "adc";
> +                fsl,adck-max-frequency = <30000000>, <40000000>,
> +                             <20000000>;
>                  status = "disabled";
>                          };
> 
> @@ -1161,6 +1163,8 @@
>                  interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
>                  clocks = <&clks IMX6SX_CLK_IPG>;
>                  clock-names = "adc";
> +                fsl,adck-max-frequency = <30000000>, <40000000>,
> +                             <20000000>;
>                  status = "disabled";
>                          };
> 
> ,but we still should better add some default frequencies in case 'adck-
> max-frequency' property is absent.

You are right, I will submit one patch for this.

Regrads.
��.n��������+%������w��{.n�����{��(��)��jg��������ݢj����G�������j:+v���w�m������w�������h�����٥




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux