Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755505AbdC1LTx (ORCPT ); Tue, 28 Mar 2017 07:19:53 -0400 Received: from mail.free-electrons.com ([62.4.15.54]:59077 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754727AbdC1LTt (ORCPT ); Tue, 28 Mar 2017 07:19:49 -0400 From: Alexandre Belloni To: Nicolas Ferre Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Boris Brezillon , Wenyou.Yang@microchip.com, Alexandre Belloni Subject: [PATCH v2 00/11] ARM: at91: pm: cleanup Date: Tue, 28 Mar 2017 13:19:27 +0200 Message-Id: <20170328111938.21297-1-alexandre.belloni@free-electrons.com> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1892 Lines: 49 Hi, This is v2 of the at91 PM cleanup. The main goal is to use a struct to pass arguments between the C and the assembly part. This is required to add further functionalities (coming in a later series). A bit of refactorization also allows to remove a some initialization in at91sam9.c Changes in v2: - rebased on top of v4.11-rc4 because of a dependency on a fix - added a patch to correct a typo - due to an errata on sama5d4, I've left out the following patches for now: ARM: at91: pm: use struct members directly ARM: at91: pm: use C functions for standby ARM: at91: pm: Allow PM even if SRAM allocation failed I'll get back to those later. - in preparation of the sama5d4 workaround, renamed standby to idle as the standby functions are actually used for cpuidle but not standby Alexandre Belloni (11): ARM: at91: pm: Cleanup headers ARM: at91: pm: Move at91_ramc_read/write to pm.c ARM: at91: pm: Move global variables into at91_pm_data ARM: at91: pm: Use struct at91_pm_data in pm_suspend.S ARM: at91: pm: Simplify at91rm9200_standby ARM: at91: pm: Workaround DDRSDRC self-refresh bug with LPDDR1 memories. ARM: at91: pm: Tie the memory controller type to the ramc id ARM: at91: pm: Tie the USB clock mask to the pmc ARM: at91: pm: Merge all at91sam9*_pm_init ARM: at91: pm: Remove at91_pm_set_standby ARM: at91: pm: correct typo arch/arm/mach-at91/Makefile | 33 ++++++ arch/arm/mach-at91/at91sam9.c | 45 +------- arch/arm/mach-at91/generic.h | 8 +- arch/arm/mach-at91/pm.c | 199 +++++++++++++++++------------------ arch/arm/mach-at91/pm.h | 24 ++--- arch/arm/mach-at91/pm_data-offsets.c | 13 +++ arch/arm/mach-at91/pm_suspend.S | 31 +++--- 7 files changed, 172 insertions(+), 181 deletions(-) create mode 100644 arch/arm/mach-at91/pm_data-offsets.c -- 2.11.0