[{"id":1765478,"web_url":"http://patchwork.ozlabs.org/comment/1765478/","msgid":"<760d7c25-afa4-2242-a278-e0989bca5478@microchip.com>","list_archive_url":null,"date":"2017-09-08T16:03:23","subject":"Re: [PATCH v1 07/10] iio:adc:at91-sama5d2: Support backup mode","submitter":{"id":71036,"url":"http://patchwork.ozlabs.org/api/people/71036/","name":"Nicolas Ferre","email":"nicolas.ferre@microchip.com"},"content":"On 08/09/2017 at 17:36, Romain Izard wrote:\n> Support the backup mode for platform suspend, by restoring the hardware\n> registers on resume.\n> \n> Signed-off-by: Romain Izard <romain.izard.pro@gmail.com>\n\nRomain,\n\nThanks for your series: definitively some of your patches need to be\nintegrated (I've merged some of them in our current linux-4.9-at91 branch.\nHowever, It seems that some of your additions have already been\nsubmitted and/or accepted by maintainers.\nFor instance an equivalent of this one seems already in Linus' tree:\n500a2eefd6b16ba141a8fb777ea6962d2eb65e3b (\"iio: adc: at91-sama5d2_adc:\nadd support for suspend/resume functionality\").\n\nPlease tell us if it fits what your observed on this driver (or others).\n\nRegards,\n\n> ---\n>  drivers/iio/adc/at91-sama5d2_adc.c | 71 ++++++++++++++++++++++++++++++++------\n>  1 file changed, 61 insertions(+), 10 deletions(-)\n> \n> diff --git a/drivers/iio/adc/at91-sama5d2_adc.c b/drivers/iio/adc/at91-sama5d2_adc.c\n> index e10dca3ed74b..f9718c863363 100644\n> --- a/drivers/iio/adc/at91-sama5d2_adc.c\n> +++ b/drivers/iio/adc/at91-sama5d2_adc.c\n> @@ -200,6 +200,7 @@ struct at91_adc_state {\n>  \tu32\t\t\t\tconversion_value;\n>  \tstruct at91_adc_soc_info\tsoc_info;\n>  \twait_queue_head_t\t\twq_data_available;\n> +\tunsigned int\t\t\tcurrent_rate;\n>  \t/*\n>  \t * lock to prevent concurrent 'single conversion' requests through\n>  \t * sysfs.\n> @@ -269,6 +270,8 @@ static void at91_adc_setup_samp_freq(struct at91_adc_state *st, unsigned freq)\n>  \tmr |= AT91_SAMA5D2_MR_PRESCAL(prescal);\n>  \tat91_adc_writel(st, AT91_SAMA5D2_MR, mr);\n>  \n> +\tst->current_rate = freq;\n> +\n>  \tdev_dbg(&indio_dev->dev, \"freq: %u, startup: %u, prescal: %u\\n\",\n>  \t\tfreq, startup, prescal);\n>  }\n> @@ -375,7 +378,9 @@ static int at91_adc_write_raw(struct iio_dev *indio_dev,\n>  \t    val > st->soc_info.max_sample_rate)\n>  \t\treturn -EINVAL;\n>  \n> +\tmutex_lock(&st->lock);\n>  \tat91_adc_setup_samp_freq(st, val);\n> +\tmutex_unlock(&st->lock);\n>  \n>  \treturn 0;\n>  }\n> @@ -386,6 +391,21 @@ static const struct iio_info at91_adc_info = {\n>  \t.driver_module = THIS_MODULE,\n>  };\n>  \n> +static void at91_adc_init_hw(struct at91_adc_state *st, unsigned int freq)\n> +{\n> +\tat91_adc_writel(st, AT91_SAMA5D2_CR, AT91_SAMA5D2_CR_SWRST);\n> +\tat91_adc_writel(st, AT91_SAMA5D2_IDR, 0xffffffff);\n> +\t/*\n> +\t * Transfer field must be set to 2 according to the datasheet and\n> +\t * allows different analog settings for each channel.\n> +\t */\n> +\tat91_adc_writel(st, AT91_SAMA5D2_MR,\n> +\t\t\tAT91_SAMA5D2_MR_TRANSFER(2) | AT91_SAMA5D2_MR_ANACH);\n> +\n> +\tat91_adc_setup_samp_freq(st, freq);\n> +\n> +}\n> +\n>  static int at91_adc_probe(struct platform_device *pdev)\n>  {\n>  \tstruct iio_dev *indio_dev;\n> @@ -482,16 +502,7 @@ static int at91_adc_probe(struct platform_device *pdev)\n>  \t\tgoto vref_disable;\n>  \t}\n>  \n> -\tat91_adc_writel(st, AT91_SAMA5D2_CR, AT91_SAMA5D2_CR_SWRST);\n> -\tat91_adc_writel(st, AT91_SAMA5D2_IDR, 0xffffffff);\n> -\t/*\n> -\t * Transfer field must be set to 2 according to the datasheet and\n> -\t * allows different analog settings for each channel.\n> -\t */\n> -\tat91_adc_writel(st, AT91_SAMA5D2_MR,\n> -\t\t\tAT91_SAMA5D2_MR_TRANSFER(2) | AT91_SAMA5D2_MR_ANACH);\n> -\n> -\tat91_adc_setup_samp_freq(st, st->soc_info.min_sample_rate);\n> +\tat91_adc_init_hw(st, st->soc_info.min_sample_rate);\n>  \n>  \tret = clk_prepare_enable(st->per_clk);\n>  \tif (ret)\n> @@ -541,12 +552,52 @@ static const struct of_device_id at91_adc_dt_match[] = {\n>  };\n>  MODULE_DEVICE_TABLE(of, at91_adc_dt_match);\n>  \n> +#ifdef CONFIG_PM_SLEEP\n> +static int at91_adc_suspend(struct device *dev)\n> +{\n> +\tstruct platform_device *pdev = to_platform_device(dev);\n> +\tstruct iio_dev *indio_dev = platform_get_drvdata(pdev);\n> +\tstruct at91_adc_state *st = iio_priv(indio_dev);\n> +\n> +\tclk_disable_unprepare(st->per_clk);\n> +\n> +\tregulator_disable(st->vref);\n> +\tregulator_disable(st->reg);\n> +\n> +\treturn 0;\n> +}\n> +\n> +static int at91_adc_resume(struct device *dev)\n> +{\n> +\tstruct platform_device *pdev = to_platform_device(dev);\n> +\tstruct iio_dev *indio_dev = platform_get_drvdata(pdev);\n> +\tstruct at91_adc_state *st = iio_priv(indio_dev);\n> +\tint err;\n> +\n> +\terr = regulator_enable(st->reg);\n> +\tif (err)\n> +\t\treturn err;\n> +\n> +\terr = regulator_enable(st->vref);\n> +\tif (err)\n> +\t\treturn err;\n> +\n> +\tat91_adc_init_hw(st, st->current_rate);\n> +\n> +\terr = clk_prepare_enable(st->per_clk);\n> +\treturn err;\n> +}\n> +#endif\n> +\n> +static SIMPLE_DEV_PM_OPS(at91_adc_pm_ops, at91_adc_suspend, at91_adc_resume);\n> +\n>  static struct platform_driver at91_adc_driver = {\n>  \t.probe = at91_adc_probe,\n>  \t.remove = at91_adc_remove,\n>  \t.driver = {\n>  \t\t.name = \"at91-sama5d2_adc\",\n>  \t\t.of_match_table = at91_adc_dt_match,\n> +\t\t.pm = &at91_adc_pm_ops,\n>  \t},\n>  };\n>  module_platform_driver(at91_adc_driver)\n>","headers":{"Return-Path":"<linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org; spf=none (mailfrom)\n\tsmtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133;\n\thelo=bombadil.infradead.org;\n\tenvelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"sAnDnMkt\"; \n\tdkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xphtS6mp2z9t2M\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat,  9 Sep 2017 02:02:52 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dqLju-0006Wd-46; Fri, 08 Sep 2017 16:02:42 +0000","from esa6.microchip.iphmx.com ([216.71.154.253])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dqLjq-0006UN-4W; Fri, 08 Sep 2017 16:02:40 +0000","from exsmtp02.microchip.com (HELO email.microchip.com)\n\t([198.175.253.38])\n\tby esa6.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA;\n\t08 Sep 2017 09:02:16 -0700","from [10.159.245.112] (10.10.76.4) by chn-sv-exch02.mchp-main.com\n\t(10.10.76.38) with Microsoft SMTP Server id 14.3.352.0;\n\tFri, 8 Sep 2017 09:02:15 -0700"],"DKIM-Signature":"v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:\n\tMessage-ID:From:References:To:Subject:Reply-To:Content-ID:Content-Description\n\t:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=UbaotLORgQzT7Etqo6wfJesb84XlCD3C25PWDujnUr8=;\n\tb=sAnDnMkt3nrRP1\n\tYedfQcRfNLZMBNnBuOvPXgKOnjJqCxplfSc0pESIDvCCXShNsEdfRpTK/JNZZwAx1vgy0ecc4EJde\n\tSAgwEEeAtl+Rdr/qB/JUka8OGG7+zbLcaq9BQxIZ3kZ1mZiXHeuUnLeBBGjlEpFF53Pu5NdxL6wiq\n\tq9GucGh9RYQ0GkGgi1NAXZK03rzguAGSj3isQsshDP44G1m+pgl3JvhPFyZpwxlLGKIMB4RHvUTgG\n\tiEgHQf21OMc4jIsmtZx5FS6rgoWsykxE6dr1mY7im91GXXrl/jz0I46Gs9X9HWWVmjtvS53xZUe6Z\n\ts+VG4Hr+wuRVSR20oiVw==;","X-IronPort-AV":"E=Sophos;i=\"5.42,362,1500966000\"; d=\"scan'208\";a=\"4305421\"","Subject":"Re: [PATCH v1 07/10] iio:adc:at91-sama5d2: Support backup mode","To":"Romain Izard <romain.izard.pro@gmail.com>, Boris Brezillon\n\t<boris.brezillon@free-electrons.com>, Michael Turquette\n\t<mturquette@baylibre.com>, Stephen Boyd <sboyd@codeaurora.org>, Ludovic\n\tDesroches <ludovic.desroches@microchip.com>, Jonathan Cameron\n\t<jic23@kernel.org>, Wenyou Yang <wenyou.yang@atmel.com>, Josh Wu\n\t<rainyfeeling@outlook.com>, David Woodhouse <dwmw2@infradead.org>, Brian\n\tNorris <computersforpeace@gmail.com>,\n\tMarek Vasut <marek.vasut@gmail.com>, \n\tCyrille Pitchen <cyrille.pitchen@wedev4u.fr>, Thierry Reding\n\t<thierry.reding@gmail.com>, Richard Genoud <richard.genoud@gmail.com>,\n\tGreg Kroah-Hartman <gregkh@linuxfoundation.org>, Alan Stern\n\t<stern@rowland.harvard.edu>, Eugen Hristev <Eugen.Hristev@microchip.com>","References":"<20170908153604.28383-1-romain.izard.pro@gmail.com>\n\t<20170908153604.28383-8-romain.izard.pro@gmail.com>","From":"Nicolas Ferre <nicolas.ferre@microchip.com>","Organization":"microchip","Message-ID":"<760d7c25-afa4-2242-a278-e0989bca5478@microchip.com>","Date":"Fri, 8 Sep 2017 18:03:23 +0200","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.2.1","MIME-Version":"1.0","In-Reply-To":"<20170908153604.28383-8-romain.izard.pro@gmail.com>","Content-Language":"en-US","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170908_090238_252014_62F39DCC ","X-CRM114-Status":"GOOD (  17.40  )","X-Spam-Score":"-2.6 (--)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-2.6 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,\n\tlow trust [216.71.154.253 listed in list.dnswl.org]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]","X-BeenThere":"linux-mtd@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Id":"Linux MTD discussion mailing list <linux-mtd.lists.infradead.org>","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-mtd>,\n\t<mailto:linux-mtd-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-mtd/>","List-Post":"<mailto:linux-mtd@lists.infradead.org>","List-Help":"<mailto:linux-mtd-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-mtd>,\n\t<mailto:linux-mtd-request@lists.infradead.org?subject=subscribe>","Cc":"linux-pwm@vger.kernel.org, linux-iio@vger.kernel.org,\n\tlinux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,\n\tlinux-mtd@lists.infradead.org, linux-serial@vger.kernel.org,\n\tlinux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-mtd\" <linux-mtd-bounces@lists.infradead.org>","Errors-To":"linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org"}},{"id":1765500,"web_url":"http://patchwork.ozlabs.org/comment/1765500/","msgid":"<CAGkQfmNgo9kp90eOrrez70f2-kMSD5EzxRjxWi=THBCE9EL4YA@mail.gmail.com>","list_archive_url":null,"date":"2017-09-08T16:21:33","subject":"Re: [PATCH v1 07/10] iio:adc:at91-sama5d2: Support backup mode","submitter":{"id":8236,"url":"http://patchwork.ozlabs.org/api/people/8236/","name":"Romain Izard","email":"romain.izard.pro@gmail.com"},"content":"2017-09-08 18:03 GMT+02:00 Nicolas Ferre <nicolas.ferre@microchip.com>:\n> On 08/09/2017 at 17:36, Romain Izard wrote:\n>> Support the backup mode for platform suspend, by restoring the hardware\n>> registers on resume.\n>>\n>> Signed-off-by: Romain Izard <romain.izard.pro@gmail.com>\n>\n> Romain,\n>\n> Thanks for your series: definitively some of your patches need to be\n> integrated (I've merged some of them in our current linux-4.9-at91 branch.\n> However, It seems that some of your additions have already been\n> submitted and/or accepted by maintainers.\n> For instance an equivalent of this one seems already in Linus' tree:\n> 500a2eefd6b16ba141a8fb777ea6962d2eb65e3b (\"iio: adc: at91-sama5d2_adc:\n> add support for suspend/resume functionality\").\n>\n> Please tell us if it fits what your observed on this driver (or others).\n>\n> Regards,\n>\n>> ---\n>>  drivers/iio/adc/at91-sama5d2_adc.c | 71 ++++++++++++++++++++++++++++++++------\n>>  1 file changed, 61 insertions(+), 10 deletions(-)\n>>\n>> diff --git a/drivers/iio/adc/at91-sama5d2_adc.c b/drivers/iio/adc/at91-sama5d2_adc.c\n>> index e10dca3ed74b..f9718c863363 100644\n>> --- a/drivers/iio/adc/at91-sama5d2_adc.c\n>> +++ b/drivers/iio/adc/at91-sama5d2_adc.c\n>> @@ -200,6 +200,7 @@ struct at91_adc_state {\n>>       u32                             conversion_value;\n>>       struct at91_adc_soc_info        soc_info;\n>>       wait_queue_head_t               wq_data_available;\n>> +     unsigned int                    current_rate;\n>>       /*\n>>        * lock to prevent concurrent 'single conversion' requests through\n>>        * sysfs.\n>> @@ -269,6 +270,8 @@ static void at91_adc_setup_samp_freq(struct at91_adc_state *st, unsigned freq)\n>>       mr |= AT91_SAMA5D2_MR_PRESCAL(prescal);\n>>       at91_adc_writel(st, AT91_SAMA5D2_MR, mr);\n>>\n>> +     st->current_rate = freq;\n>> +\n>>       dev_dbg(&indio_dev->dev, \"freq: %u, startup: %u, prescal: %u\\n\",\n>>               freq, startup, prescal);\n>>  }\n>> @@ -375,7 +378,9 @@ static int at91_adc_write_raw(struct iio_dev *indio_dev,\n>>           val > st->soc_info.max_sample_rate)\n>>               return -EINVAL;\n>>\n>> +     mutex_lock(&st->lock);\n>>       at91_adc_setup_samp_freq(st, val);\n>> +     mutex_unlock(&st->lock);\n>>\n>>       return 0;\n>>  }\n>> @@ -386,6 +391,21 @@ static const struct iio_info at91_adc_info = {\n>>       .driver_module = THIS_MODULE,\n>>  };\n>>\n>> +static void at91_adc_init_hw(struct at91_adc_state *st, unsigned int freq)\n>> +{\n>> +     at91_adc_writel(st, AT91_SAMA5D2_CR, AT91_SAMA5D2_CR_SWRST);\n>> +     at91_adc_writel(st, AT91_SAMA5D2_IDR, 0xffffffff);\n>> +     /*\n>> +      * Transfer field must be set to 2 according to the datasheet and\n>> +      * allows different analog settings for each channel.\n>> +      */\n>> +     at91_adc_writel(st, AT91_SAMA5D2_MR,\n>> +                     AT91_SAMA5D2_MR_TRANSFER(2) | AT91_SAMA5D2_MR_ANACH);\n>> +\n>> +     at91_adc_setup_samp_freq(st, freq);\n>> +\n>> +}\n>> +\n>>  static int at91_adc_probe(struct platform_device *pdev)\n>>  {\n>>       struct iio_dev *indio_dev;\n>> @@ -482,16 +502,7 @@ static int at91_adc_probe(struct platform_device *pdev)\n>>               goto vref_disable;\n>>       }\n>>\n>> -     at91_adc_writel(st, AT91_SAMA5D2_CR, AT91_SAMA5D2_CR_SWRST);\n>> -     at91_adc_writel(st, AT91_SAMA5D2_IDR, 0xffffffff);\n>> -     /*\n>> -      * Transfer field must be set to 2 according to the datasheet and\n>> -      * allows different analog settings for each channel.\n>> -      */\n>> -     at91_adc_writel(st, AT91_SAMA5D2_MR,\n>> -                     AT91_SAMA5D2_MR_TRANSFER(2) | AT91_SAMA5D2_MR_ANACH);\n>> -\n>> -     at91_adc_setup_samp_freq(st, st->soc_info.min_sample_rate);\n>> +     at91_adc_init_hw(st, st->soc_info.min_sample_rate);\n>>\n>>       ret = clk_prepare_enable(st->per_clk);\n>>       if (ret)\n>> @@ -541,12 +552,52 @@ static const struct of_device_id at91_adc_dt_match[] = {\n>>  };\n>>  MODULE_DEVICE_TABLE(of, at91_adc_dt_match);\n>>\n>> +#ifdef CONFIG_PM_SLEEP\n>> +static int at91_adc_suspend(struct device *dev)\n>> +{\n>> +     struct platform_device *pdev = to_platform_device(dev);\n>> +     struct iio_dev *indio_dev = platform_get_drvdata(pdev);\n>> +     struct at91_adc_state *st = iio_priv(indio_dev);\n>> +\n>> +     clk_disable_unprepare(st->per_clk);\n>> +\n>> +     regulator_disable(st->vref);\n>> +     regulator_disable(st->reg);\n>> +\n>> +     return 0;\n>> +}\n>> +\n>> +static int at91_adc_resume(struct device *dev)\n>> +{\n>> +     struct platform_device *pdev = to_platform_device(dev);\n>> +     struct iio_dev *indio_dev = platform_get_drvdata(pdev);\n>> +     struct at91_adc_state *st = iio_priv(indio_dev);\n>> +     int err;\n>> +\n>> +     err = regulator_enable(st->reg);\n>> +     if (err)\n>> +             return err;\n>> +\n>> +     err = regulator_enable(st->vref);\n>> +     if (err)\n>> +             return err;\n>> +\n>> +     at91_adc_init_hw(st, st->current_rate);\n>> +\n>> +     err = clk_prepare_enable(st->per_clk);\n>> +     return err;\n>> +}\n>> +#endif\n>> +\n>> +static SIMPLE_DEV_PM_OPS(at91_adc_pm_ops, at91_adc_suspend, at91_adc_resume);\n>> +\n>>  static struct platform_driver at91_adc_driver = {\n>>       .probe = at91_adc_probe,\n>>       .remove = at91_adc_remove,\n>>       .driver = {\n>>               .name = \"at91-sama5d2_adc\",\n>>               .of_match_table = at91_adc_dt_match,\n>> +             .pm = &at91_adc_pm_ops,\n>>       },\n>>  };\n>>  module_platform_driver(at91_adc_driver)\n>>\n\nPlease ignore this patch. The existing merged patch is better.\n\nBest regards,","headers":{"Return-Path":"<linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org; spf=none (mailfrom)\n\tsmtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133;\n\thelo=bombadil.infradead.org;\n\tenvelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"O2B40Hxl\"; \n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tsecure) header.d=mobile-devices.fr header.i=@mobile-devices.fr\n\theader.b=\"wHn0NQPT\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"tTay87ea\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xpjfC6x58z9s76\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat,  9 Sep 2017 02:37:23 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dqMGz-00071Q-5P; Fri, 08 Sep 2017 16:36:53 +0000","from mail-qt0-x22e.google.com ([2607:f8b0:400d:c0d::22e])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dqM2p-0008MP-P1\n\tfor linux-mtd@lists.infradead.org; Fri, 08 Sep 2017 16:22:19 +0000","by mail-qt0-x22e.google.com with SMTP id h15so7600826qta.4\n\tfor <linux-mtd@lists.infradead.org>;\n\tFri, 08 Sep 2017 09:21:54 -0700 (PDT)","by 10.200.48.120 with HTTP; Fri, 8 Sep 2017 09:21:33 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From:\n\tReferences:In-Reply-To:MIME-Version:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=5KN4UyVPjtTPMlu4+efASLrsJPr8L6D089kDBIFbXKE=;\n\tb=O2B40HxlEfQ6vh\n\tnibVfSj5oJTcUP/4p6D6VDN+fZFAV26Ol7eq2J2JXYvbOxdcrgYAXe+FQCTLLgEkOjzuGakvcujG0\n\tnl56TAyg/pGXFLWaohXEpVHhxUQwVIdF/SSunO3y3NRvLUvxVEWYF5Hgpq7V4jEW1gSRH0rRvYtI6\n\tA2353Nh3199AkuDJYz1sHY3LsJmvsQz3mzFNSY3zScQN6hPgTcpzY6GLGKbieZO3X1/jiAN7S3e06\n\t+y74ttoRnaZz+UwwURgsxsSal3xarBNyfUjUQUPJeksgA4t1VH0d/Uw9viByg1hKlL0ZXZFX1BXBQ\n\ts6JsPslctJUX4Iayt69A==;","v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=mobile-devices.fr; s=google;\n\th=mime-version:sender:in-reply-to:references:from:date:message-id\n\t:subject:to:cc;\n\tbh=iCD0zyOs7bT2H5SBMqtaOOWyRXahmaN/GFO1QNuNoK8=;\n\tb=wHn0NQPTfXAq2SnKwur5D7g4Fzhhb1jJYr4M7eKUfkwcCVUyD7pbNXb4c9yGD0JVuy\n\tGOyc2ycxeWT7St7F+LBpt9As9ZyYX/syy6lHc7UhPJpU0ag+6dRx409fn1JfoJl694p8\n\tDbbCFLwnrwM3RKpeCXzmgqMiVqTSE7JOofgGs=","v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=mime-version:sender:in-reply-to:references:from:date:message-id\n\t:subject:to:cc;\n\tbh=iCD0zyOs7bT2H5SBMqtaOOWyRXahmaN/GFO1QNuNoK8=;\n\tb=tTay87eam9PemUdw3TQ1utU+fePPb7nDmbbSG86J877HTP3zFwn1KmC8UoaWj922si\n\tojEoZLAnkLEsTvRPHXUqgA+AICTlynoUSzdaMp9oY3wpHMNB3Yst+AsxO0+oDjDp/PST\n\trgIE4e4F1EHg7B+VxA0QASWPjF73hWd0RbiKGVrPtVJKWTv5riPObJatziNmTROBSQ9o\n\trpCkjHP32FYdmmylaShRnSHpAFUA1wLoUjamf6qUPkO0fG5th3M7mBX3ep9hniUUuOBT\n\t51JGnakF+NZ5Jvs9C+zJJNWa8UAKwexSQABejaQaU33SXRfDVdpeFyJUr1H09rrK+oEG\n\te/bw=="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:mime-version:sender:in-reply-to:references:from\n\t:date:message-id:subject:to:cc;\n\tbh=iCD0zyOs7bT2H5SBMqtaOOWyRXahmaN/GFO1QNuNoK8=;\n\tb=UJA0efOkFTtvk82sV6HwVWhLR7v4Yf5v/Hput8AtMxhYn3h/KApmiUPbqqPEtclvEt\n\t3V97yZdZQnZQ2BHRRC6oqedz6+IGgXxsxLRQK9ama90Ow05NknXWO2LftpUJ3kQVdZKt\n\t95wfIzZVa3QrHQmqOraC6R3yjx4z4FA38zCQZOP1bFu6SYbzbjWHhiuoGRu0ajPc44Iz\n\tQ2J8NjHumo6Z12VO1CysVX5B7kxqWwFVVvS/hh3h6KfNISVRSJjWfTqaD1FNNlNMGZJ8\n\tY2EsWdyWXmf7QBUVTsX7x5L7BYpQ0pxNCCDBWi8V54DPEV4Zpt31J+7HE47GVuwypNle\n\tl0kw==","X-Gm-Message-State":"AHPjjUgs+vpE2xwSJqtudLbO7sDxSPYkV0zgnlB4xLa7fqfY6UJLKDAh\n\tIgtfpviAx0fjer4eU2cUXGKY7E1hdOo4fKDpLfE34A==","X-Google-Smtp-Source":"AOwi7QAdAuslY8C0Ghh9Jlvnhr3a9qk0334+gbdfppQ7eRl2i0tqA98MJeH8u/pFgwAPnEaDLYewAN45tm6T7Y3XiH8=","X-Received":"by 10.237.42.79 with SMTP id k15mr3053882qtf.222.1504887713771; \n\tFri, 08 Sep 2017 09:21:53 -0700 (PDT)","MIME-Version":"1.0","In-Reply-To":"<760d7c25-afa4-2242-a278-e0989bca5478@microchip.com>","References":"<20170908153604.28383-1-romain.izard.pro@gmail.com>\n\t<20170908153604.28383-8-romain.izard.pro@gmail.com>\n\t<760d7c25-afa4-2242-a278-e0989bca5478@microchip.com>","From":"Romain Izard <romain.izard.pro@gmail.com>","Date":"Fri, 8 Sep 2017 18:21:33 +0200","X-Google-Sender-Auth":"FsXf9322IYlekeKIog0yF8caJGQ","Message-ID":"<CAGkQfmNgo9kp90eOrrez70f2-kMSD5EzxRjxWi=THBCE9EL4YA@mail.gmail.com>","Subject":"Re: [PATCH v1 07/10] iio:adc:at91-sama5d2: Support backup mode","To":"Nicolas Ferre <nicolas.ferre@microchip.com>","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170908_092216_123816_AF4EAED1 ","X-CRM114-Status":"GOOD (  18.09  )","X-Spam-Score":"-1.8 (-)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-1.8 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,\n\tno\n\ttrust [2607:f8b0:400d:c0d:0:0:0:22e listed in] [list.dnswl.org]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\n\tprovider (romain.izard.pro[at]gmail.com)\n\t0.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level\n\tmail domains are different\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature\n\t0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n\tnot necessarily valid\n\t-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from\n\tauthor's domain\n\t0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and\n\tEnvelopeFrom freemail headers are different","X-BeenThere":"linux-mtd@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Id":"Linux MTD discussion mailing list <linux-mtd.lists.infradead.org>","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-mtd>,\n\t<mailto:linux-mtd-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-mtd/>","List-Post":"<mailto:linux-mtd@lists.infradead.org>","List-Help":"<mailto:linux-mtd-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-mtd>,\n\t<mailto:linux-mtd-request@lists.infradead.org?subject=subscribe>","Cc":"linux-iio@vger.kernel.org, Michael Turquette <mturquette@baylibre.com>, \n\tThierry Reding <thierry.reding@gmail.com>,\n\tlinux-mtd <linux-mtd@lists.infradead.org>, linux-clk@vger.kernel.org, \n\tBoris Brezillon <boris.brezillon@free-electrons.com>,\n\tJosh Wu <rainyfeeling@outlook.com>, Marek Vasut <marek.vasut@gmail.com>, \n\tLudovic Desroches <ludovic.desroches@microchip.com>,\n\tAlan Stern <stern@rowland.harvard.edu>, linux-serial@vger.kernel.org, \n\tlinux-pwm@vger.kernel.org,\n\tlinux-arm-kernel <linux-arm-kernel@lists.infradead.org>,\n\tRichard Genoud <richard.genoud@gmail.com>,\n\tGreg Kroah-Hartman <gregkh@linuxfoundation.org>,\n\tlinux-usb@vger.kernel.org, Stephen Boyd <sboyd@codeaurora.org>,\n\tLKML <linux-kernel@vger.kernel.org>, \n\tWenyou Yang <wenyou.yang@atmel.com>,\n\tCyrille Pitchen <cyrille.pitchen@wedev4u.fr>,\n\tEugen Hristev <Eugen.Hristev@microchip.com>,\n\tBrian Norris <computersforpeace@gmail.com>,\n\tDavid Woodhouse <dwmw2@infradead.org>,\n\tJonathan Cameron <jic23@kernel.org>","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-mtd\" <linux-mtd-bounces@lists.infradead.org>","Errors-To":"linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org"}}]