From patchwork Fri Sep 8 15:35:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Izard X-Patchwork-Id: 811671 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="l3zulLER"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="aFBVOhu+"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xphdk24WPz9s7f for ; Sat, 9 Sep 2017 01:51:54 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=C4JLtobczBWyo8zVwAlUdPAEHJWgz5jsjGsQ/GLKPQs=; b=l3z ulLERM1Sx0ryTWG5LcxkbuMuDkYIsXV7rP8UjWuwhky9QHKmOkXo7aBvvhMKTQOsR1PJ5e5f7jjPK IcwCXjS+bxUJzZFPuysVTUPkQ3RUF7kff0QOYF2cO5ZYNoVVgrw3jXc0Gw0QgHbxyyL1xpIbtxaqH v0qljwAqQkeJkXQaLLkZA1VLanbyMZv2pQKjpl5ctqm2CyMBYoJqw1e219EhRwMiVhGYzzJvT8hEX 2FQM49YcvVv5ljjhl4hWm2RI3RTbIjsIQJgGZyRnxg+l24xyPocaajkNiRryDFvJqNO4wiSnSZCve r1zVpEjqUKhVoARBhTmrmcaFC0GY/WA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dqLZN-0000hA-1T; Fri, 08 Sep 2017 15:51:49 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dqLKf-00066o-PU; Fri, 08 Sep 2017 15:36:41 +0000 Received: by mail-wm0-x242.google.com with SMTP id l19so1982633wmi.1; Fri, 08 Sep 2017 08:36:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=cKHWK1AkuJnRjoN/l+R/s4WWoCguiAJJM9Y/uR588aY=; b=aFBVOhu+J6eANIU6BIzxExcDcSN7001uOnHQ6XjLYodD1Is1LLSlsMVY+d9BU6Da6C /MKvP5a4vBh3L5/bRtMoAzpDCbto/kK1cisW/a9hOGQblhYgwZmLzAUgHJoqp2NXuqB5 /OrytnEVKV58A2V26PbioG6SsouBecuLGECa+6FSDl+BjcRQWxOYIVb1kdvXntZ/BqWC o/6FtmpM20GZr11VmBZD4UsRW53/2iHXak4ySble7WkFV5QPlb5PRnvJJAp7fN3t/S2x lE2SU3jNZ7sSbfsn1qm4YpR1c7SbW0Gs4dP0n5Zn8Z6JPcG1nLwPCK/ERW3R+qw9QJ34 uzSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=cKHWK1AkuJnRjoN/l+R/s4WWoCguiAJJM9Y/uR588aY=; b=THTDJfUrotAIu70ioti48hLYHmhVonazL1GAwMSIzK8GuqUalW/ygzr2k4WwNcUihv ZvBwihsipCqdf3sJmqJ43tlC1z2BZXHP1wYeXUiRzY4BwOWp7xP4qG9WnIMwQZO8YLCL oUN/X4n84C4g7N9MQhLXg7/TapGoOoUYmCf9ah62/FsCIgD1BuEP/datgR+t6qnWK9Dg J/zdryKkT1Zijyv0u6GCEyXHwhPkOeoYVWnj4X327Iijy+biFRCnBaxlOcmSpK5UEWCV ABgpr/6cxTSoK/yw//bF+EJyEzrm/ZO7RVwSCYj5mWHWaaAAavFbzOjz9cmiJ90CK7SE AWbA== X-Gm-Message-State: AHPjjUhC61xS03000e9k3iXxiSG37POdSl3SIngamnNOGA/rQOlcvVdC boETUy3nsASGzs8R5sA6IsbwH7yw X-Google-Smtp-Source: AOwi7QD/UuyW8J8WxiEDsKJnFA3sJlvJm8UmNHsUo4UAHgloVwA4Xhs5l8tHrxcYurI4wR0oNEIYbw== X-Received: by 10.28.71.135 with SMTP id m7mr1879258wmi.84.1504884973914; Fri, 08 Sep 2017 08:36:13 -0700 (PDT) Received: from localhost.localdomain (146.187.3.109.rev.sfr.net. [109.3.187.146]) by smtp.gmail.com with ESMTPSA id p199sm1689224wmb.28.2017.09.08.08.36.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Sep 2017 08:36:13 -0700 (PDT) From: Romain Izard To: Nicolas Ferre , Boris Brezillon , Michael Turquette , Stephen Boyd , Ludovic Desroches , Jonathan Cameron , Wenyou Yang , Josh Wu , David Woodhouse , Brian Norris , Marek Vasut , Cyrille Pitchen , Thierry Reding , Richard Genoud , Greg Kroah-Hartman , Alan Stern Subject: [PATCH v1 00/10] Various patches for SAMA5D2 backup mode Date: Fri, 8 Sep 2017 17:35:54 +0200 Message-Id: <20170908153604.28383-1-romain.izard.pro@gmail.com> X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170908_083638_051590_6551342F X-CRM114-Status: UNSURE ( 8.75 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2a00:1450:400c:c09:0:0:0:242 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (romain.izard.pro[at]gmail.com) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-pwm@vger.kernel.org, linux-iio@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, linux-serial@vger.kernel.org, Romain Izard , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org While the core of the backup mode for SAMA5D2 has been integrated in v4.13, it is far from complete. Individual controllers in the chip have drivers that do not support the reset of the registers during suspend, and they need to be adapted to handle it. The first patch uses the clock wakeup code from the prototype backup mode instead of the version integrated in the mainline, as the mainline version is not stable. During a test loop with two-second backup suspend, the mainline version will hang in less than one day, whereas the prototype version has been running the same test for more than a week without hanging. Romain Izard (10): clk: at91: pmc: Wait for clocks when resuming clk: at91: pmc: Save SCSR during suspend clk: at91: pmc: Support backup for programmable clocks mtd: nand: atmel: Avoid ECC errors when leaving backup mode mtd: nand: atmel: Report PMECC failures as errors ehci-atmel: Power down during suspend is normal iio:adc:at91-sama5d2: Support backup mode pwm: atmel-tcb: Support backup mode atmel_flexcom: Support backup mode tty/serial: atmel: Prevent a warning on suspend drivers/clk/at91/pmc.c | 33 ++++++++++++------ drivers/iio/adc/at91-sama5d2_adc.c | 71 ++++++++++++++++++++++++++++++++------ drivers/mfd/atmel-flexcom.c | 65 ++++++++++++++++++++++++++-------- drivers/mtd/nand/atmel/pmecc.c | 15 ++++---- drivers/pwm/pwm-atmel-tcb.c | 63 +++++++++++++++++++++++++++++++-- drivers/tty/serial/atmel_serial.c | 13 +++++++ drivers/usb/host/ehci-atmel.c | 3 +- 7 files changed, 216 insertions(+), 47 deletions(-)