Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753295AbcCAS3g (ORCPT ); Tue, 1 Mar 2016 13:29:36 -0500 Received: from mail-yw0-f175.google.com ([209.85.161.175]:34729 "EHLO mail-yw0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753229AbcCAS3K (ORCPT ); Tue, 1 Mar 2016 13:29:10 -0500 MIME-Version: 1.0 In-Reply-To: <1456834338-5521-1-git-send-email-andy.yan@rock-chips.com> References: <1456834172-5425-1-git-send-email-andy.yan@rock-chips.com> <1456834338-5521-1-git-send-email-andy.yan@rock-chips.com> Date: Tue, 1 Mar 2016 10:29:09 -0800 Message-ID: Subject: Re: [PATCH v4 2/4] power: reset: add reboot mode driver From: John Stultz To: Andy Yan Cc: Rob Herring , Arnd Bergmann , =?UTF-8?Q?Heiko_St=C3=BCbner?= , =?UTF-8?Q?Pawe=C5=82_Moll?= , Mark Rutland , Ian Campbell , Kumar Gala , devicetree@vger.kernel.org, lkml , Catalin Marinas , Olof Johansson , Alexandre Belloni , Dmitry Eremin-Solenikov , Sebastian Reichel , Jun Nie , Eduardo Valentin , Florian Fainelli , Will Deacon , "open list:ARM/Rockchip SoC..." , Caesar Wang , Matthias Brugger , Russell King - ARM Linux , Lorenzo Pieralisi , Moritz Fischer , Richard Weinberger , David Woodhouse Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 928 Lines: 25 On Tue, Mar 1, 2016 at 4:12 AM, Andy Yan wrote: > This driver parse the reboot commands like "reboot loader" > and "reboot recovery" to get a boot mode described in the > device tree , then call the write interfae to store the boot > mode in some place like special register or sram , which can > be read by the bootloader after system reboot, then the bootloader > can take different action according to the mode stored. > > This is commonly used on Android based devices, in order to > reboot the device into fastboot or recovery mode. > > Reviewed-by: Matthias Brugger > Reviewed-by: Moritz Fischer > Signed-off-by: Andy Yan Thanks Andy for your persistence pushing this! This patch works well on my nexus7. Tested-by: John Stultz Acked-by: John Stultz thanks -john