Message ID | 20170928094627.31017-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="mEoOGQCy"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="EDhx9qfs"; 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 3y2qdd2mXFz9t3v for <incoming@patchwork.ozlabs.org>; Thu, 28 Sep 2017 19:48:53 +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=mEoOGQCyDzet/DPwJJvX73p5P6 BfIiGvaj6FFpT+ysUDeJYjxz8B/LrvJGBFel3998PdSzK4g+TqLB8EDjrUaTdr7nxmQIcE4Zn0NCS hSRCo3sHJ6sQ4LzCim+tG5XEviStKtJLeT5is6aNs2clWcWwPWzurRSCJ4nulunyC4WMJX2HoRYdz G8zdvDDymWst8t/xX4wmXxNuXimnBqi/H2UQK5Xh0rylnO1iTLjFLIXBSwI6IwENYecYWoaXpNeqg rGaFEY8brCGb6s0vcmeg/TjspuJZFRRAEEY9wX5nTC6TVGAKtqENJ8R0+85K71pncwnEKjjow+Yjp oQWfrryQ==; 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 1dxVQw-0004HV-Dp; Thu, 28 Sep 2017 09:48:42 +0000 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dxVPL-0002QG-KM for linux-mtd@lists.infradead.org; Thu, 28 Sep 2017 09:47:12 +0000 Received: by mail-wr0-x242.google.com with SMTP id z1so1491303wre.1 for <linux-mtd@lists.infradead.org>; Thu, 28 Sep 2017 02:46:42 -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=EDhx9qfsL6Kaq78TUPShjev3On4kICLXoJLOyCv0K+jwWP4HqxAshVI8YYM+U11tsV ZDGs30yRjq0SUGWs0YiYJIJdTl69RQDsHo8MHlyzcpwICe06SDWe91HnHDvvUbQyrks9 IfU5uAgsxk89HgPB/yWe6zZOsV2yHLRxwImS1fXe01NHUaiQCY/aFGBcyc1PN1zNd4XY ZfxpDACm0JEehJX5WQE+mheoROQOwyY9uOIL/Vi2vPTKQuiyM5ZqRTXqMHgNak7vT0VD WfkgSvgK/iIaWJ1aFSVRdkKqNb+bM1scwUnp3hq0ArGKlWF1lvV13jklpDl7fEana8Gb 2UqA== 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=ZGxybvAj1+cR6mud15V1d8jlTYZAdpExsobV5ak9NIsJrV/el6I2i7M2g3lu7qs3wU GLtpCp/v/X7hUm/OY+2WAjw1kVUg7rIe0CLaa9d/63UkGUDFh6vml3MUqFZxKNcxnGhR s3FqHIPwXDCTstqLfQ4UVxigxhVulQ10nJCVCyT+e0WwjXsp5yye2v0xvMFz9FMAjjUA vhB57UpIjJ/O3779TZj37ctD9rA2GhTHZAlWtevRxoK/0BMXauR2VrCBaCPmqHHacT8H 1M0yDeNT29s/v6tvDEefMAgcjg2dpnIsRJw5LDaojbzhDLuagKc3zjY0XbxDadjEIjAh KUdw== X-Gm-Message-State: AHPjjUgFDlbqrYqBSeuaBkTf47kQGXSqyXIgJaNspiXTEEwUSQdezvNF oSSW7xF018qbkE0vdoZcXzo= X-Google-Smtp-Source: AOwi7QAXSDc62njEovdTIkFyuKejN0KmK1bPS7JliNcU9puaDIJG1GsGL/f+pPJ/C1h7q7r0DNt2NQ== X-Received: by 10.223.185.84 with SMTP id b20mr3983378wrg.87.1506592001509; Thu, 28 Sep 2017 02:46:41 -0700 (PDT) Received: from localhost.localdomain (146.187.3.109.rev.sfr.net. [109.3.187.146]) by smtp.gmail.com with ESMTPSA id z10sm3272395wre.6.2017.09.28.02.46.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Sep 2017 02:46:40 -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 v4 2/8] clk: at91: pmc: Save SCSR during suspend Date: Thu, 28 Sep 2017 11:46:21 +0200 Message-Id: <20170928094627.31017-3-romain.izard.pro@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170928094627.31017-1-romain.izard.pro@gmail.com> References: <20170928094627.31017-1-romain.izard.pro@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170928_024703_960985_DBD5AD2B X-CRM114-Status: GOOD ( 11.92 ) 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:c0c: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 <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);