Message ID | 20170927083555.16580-3-romain.izard.pro@gmail.com |
---|---|
State | Not Applicable |
Headers | show
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) 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=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Y7Crl69S"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="VMVZIQ8p"; 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 3y2B4y58lKz9t3x for <incoming@patchwork.ozlabs.org>; Wed, 27 Sep 2017 18:36:50 +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:References: In-Reply-To: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:List-Owner; bh=soS9/y1xR5kCxM5cAsW3gzxv04FGYoivJOQGwcqiKTI=; b=Y7Crl69Snt9ZVVgcEVh3N3GE5V LjhmKy7MNAz6czBDeSPT1cS7PPXqGEG45/WrnKIgPdVMp8kdu5QRBG80U0AFxY9hJ1w7RdcZYCd+g h8/eDjt3yuaS/nM/7q0YnNkenr/9nTTxCUyPSZeK/6DX6sdN0L/Gs3bywlOCvHaNW2Bh+cm22D2Qp cNtTDoL091KDANtYuJXTY5A9zOOxAG5e0oRaP9YXwttrYZ8ePtMx0xkGLRfC0Wclqa/McrC7Q8btS NZ0/A80GW0U8UKbbmc1jPjc+pI3G5I6ahYAM9yiLFPoLOeuOkAFbqgOo1V46mFk9hxZLqITwLVnVh pl8w5/CA==; 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 1dx7pd-0002y7-48; Wed, 27 Sep 2017 08:36:37 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dx7pa-0002jn-1q for linux-mtd@lists.infradead.org; Wed, 27 Sep 2017 08:36:35 +0000 Received: by mail-wm0-x243.google.com with SMTP id m72so15481305wmc.1 for <linux-mtd@lists.infradead.org>; Wed, 27 Sep 2017 01: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:in-reply-to:references; bh=d2QPQyjMsXWSkJdc6MMuWv4m8CSK75I6LdWz80n+/Ss=; b=VMVZIQ8pz24rAf20i7VD7Yx6q8OXgegF3SlG2/l5kwPDi1oYRsZwDUsOxeQrjtSHb+ cOIxHwnkY8jhmBAO54j84yXjkhRDwmbySpEOOXH7Zn1QNOsdaOEjidPyGC4qZRnu09Tv z5TDsK/dACqCdmuuto21cYPeI8dBXwRPoNOOEYToLGEg1DQkOPVaHVRW91CzzeS5sZdN Z0bGjC7k320V/gX2UIcyVV7jvH15pPcdmbi8LnJWwdhg5jWr4Emfwd8JMVXhR88LQC7f aVBOw6lXL6KrKtLsm6dIQPuISTAqMW7YTCqg2w23lg/JXL5a4ovAR3ND4wsl5semneE0 v9eQ== 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:in-reply-to :references; bh=d2QPQyjMsXWSkJdc6MMuWv4m8CSK75I6LdWz80n+/Ss=; b=SSQCbbAInRvvDuYTUUdrs06YCFFwoOH3TiceRbqxN9mZLOn/wT1Ay6zDbAB+bUmFO/ H+yFgigkFJ0+h8g7tlJSfPQLR9V7p8PN01S+3I9jdkO80BBVw21qpm9C3YtIyffcYDNj 77aYGxzQ+LE1VWNhhZeY1TYDPNj+stdpJwc6CNGjERZYjtgEp8L3o0wu+owSW9b8OQKg AzXJCs+f9jC2pPkuUhzj5TlEkD3KH4vN9NsbDZ5874uCs4hdiVqp81RtldMKtg2G260e uOt5dpb8tTJ3PLR4azsbaP51NFSFOvNQMTWjgjZLO0upfGBKb98eXPKw0j+6wZICfAUJ ycZA== X-Gm-Message-State: AHPjjUiRNoRiYPv5GvaonQzCTiGrnsS796Yn8Mc6p1zUQz1s799T7fJD yJ/2hlhZd4zz3yj9/g/elVA= X-Google-Smtp-Source: AOwi7QD1ghKsWG1bCPnOiOYKdTWvM6QgK0pPRzH9I+TPhUCK2Wp9q2v/boBapy7/WwIJLPgP4a0poQ== X-Received: by 10.28.100.3 with SMTP id y3mr827542wmb.69.1506501373904; Wed, 27 Sep 2017 01: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 r6sm9699900wrg.40.2017.09.27.01.36.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Sep 2017 01:36:13 -0700 (PDT) From: Romain Izard <romain.izard.pro@gmail.com> To: Boris Brezillon <boris.brezillon@free-electrons.com>, Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@codeaurora.org>, Lee Jones <lee.jones@linaro.org>, Wenyou Yang <wenyou.yang@atmel.com>, Josh Wu <rainyfeeling@outlook.com>, Richard Weinberger <richard@nod.at>, David Woodhouse <dwmw2@infradead.org>, Brian Norris <computersforpeace@gmail.com>, Marek Vasut <marek.vasut@gmail.com>, Cyrille Pitchen <cyrille.pitchen@wedev4u.fr>, Thierry Reding <thierry.reding@gmail.com>, Richard Genoud <richard.genoud@gmail.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Jiri Slaby <jslaby@suse.com>, Alan Stern <stern@rowland.harvard.edu>, Ludovic Desroches <ludovic.desroches@microchip.com>, Nicolas Ferre <nicolas.ferre@microchip.com>, Alexandre Belloni <alexandre.belloni@free-electrons.com> Subject: [PATCH v3 2/8] clk: at91: pmc: Save SCSR during suspend Date: Wed, 27 Sep 2017 10:35:49 +0200 Message-Id: <20170927083555.16580-3-romain.izard.pro@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170927083555.16580-1-romain.izard.pro@gmail.com> References: <20170927083555.16580-1-romain.izard.pro@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170927_013634_272098_C7AB1A50 X-CRM114-Status: GOOD ( 11.37 ) 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:243 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 <linux-mtd.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-mtd>, <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>, <mailto:linux-mtd-request@lists.infradead.org?subject=subscribe> Cc: linux-pwm@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 <romain.izard.pro@gmail.com>, linux-clk@vger.kernel.org MIME-Version: 1.0 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 |
Series |
Various patches for SAMA5D2 backup mode
|
expand
|
diff --git a/drivers/clk/at91/pmc.c b/drivers/clk/at91/pmc.c index 5c2b26de303e..07dc2861ad3f 100644 --- a/drivers/clk/at91/pmc.c +++ b/drivers/clk/at91/pmc.c @@ -86,7 +86,7 @@ static int pmc_suspend(void) { int i; - regmap_read(pmcreg, AT91_PMC_IMR, &pmc_cache.scsr); + regmap_read(pmcreg, AT91_PMC_SCSR, &pmc_cache.scsr); regmap_read(pmcreg, AT91_PMC_PCSR, &pmc_cache.pcsr0); regmap_read(pmcreg, AT91_CKGR_UCKR, &pmc_cache.uckr); regmap_read(pmcreg, AT91_CKGR_MOR, &pmc_cache.mor); @@ -129,7 +129,7 @@ static void pmc_resume(void) if (pmc_cache.pllar != tmp) pr_warn("PLLAR was not configured properly by the firmware\n"); - regmap_write(pmcreg, AT91_PMC_IMR, pmc_cache.scsr); + regmap_write(pmcreg, AT91_PMC_SCER, pmc_cache.scsr); regmap_write(pmcreg, AT91_PMC_PCER, pmc_cache.pcsr0); regmap_write(pmcreg, AT91_CKGR_UCKR, pmc_cache.uckr); regmap_write(pmcreg, AT91_CKGR_MOR, pmc_cache.mor);