From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D229CC43603 for ; Sat, 7 Dec 2019 11:45:26 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A566321835 for ; Sat, 7 Dec 2019 11:45:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="uQs08w0g" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A566321835 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=sntech.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=QxEwc+FxRosB6Hdx5NWEVi2KjxDtKmVMpZAgL1dorr8=; b=uQs08w0gRPhCN3 Ra1Kd355DiD1DhrCzsCZbtdiNgBByTtuJhiBLYZ67/mab7H+RwdYi22PjxFrcCobaKMIOY2B5gHU7 7swSa17DDVbuk7IE5Ae1mf/kiUe8WZsBEBa+w3GAUDJIzXR/JRVmUPQ3wblwwQcDzG8Oj+s4H/osK BLJekEVwWyindYPFQuU60g1ucigsr6jOlEsnDXxihts1jcTFphE408sL9qWDpwDEgWyFldcfakeEN lNfxGewthNSgKrnQNnCAbdV17E8BKN7vBfucCxMsm2DDC7RtfqlIsMsA7sdWRBgAkbj7EkiDeF3N5 GI3tpxMDa4lkbJ/C9bvg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1idYWb-0001i5-2F; Sat, 07 Dec 2019 11:45:25 +0000 Received: from gloria.sntech.de ([185.11.138.130]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1idYWX-0001h4-EB; Sat, 07 Dec 2019 11:45:23 +0000 Received: from p57b7764d.dip0.t-ipconnect.de ([87.183.118.77] helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1idYWQ-0007Ld-0z; Sat, 07 Dec 2019 12:45:14 +0100 From: Heiko Stuebner To: Anand Moon Subject: Re: [RFCv1 0/8] RK3399 clean shutdown issue Date: Sat, 07 Dec 2019 12:45:13 +0100 Message-ID: <2344728.Lq3kATiBNL@phil> In-Reply-To: References: <20191206184536.2507-1-linux.amoon@gmail.com> <1765889.rfqrfT1PbY@phil> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191207_034521_624580_7A39567A X-CRM114-Status: GOOD ( 17.13 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree , Daniel Schultz , Linux Kernel , linux-rockchip@lists.infradead.org, Rob Herring , Jagan Teki , Manivannan Sadhasivam , Robin Murphy , linux-arm-kernel Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org Am Samstag, 7. Dezember 2019, 06:07:49 CET schrieb Anand Moon: > Hi Heiko, > > On Sat, 7 Dec 2019 at 04:02, Heiko Stuebner wrote: > > > > Hi Anand, > > > > Am Freitag, 6. Dezember 2019, 19:45:28 CET schrieb Anand Moon: > > > Most of the RK3399 SBC boards do not perform clean > > > shutdown and clean reboot. > > > > > > These patches try to help resolve the issue with proper > > > shutdown by turning off the PMIC. > > > > > > For reference > > > RK805 PMCI data sheet: > > > [0] http://rockchip.fr/RK805%20datasheet%20V1.3.pdf > > > RK808 PMIC data sheet: > > > [1] http://rockchip.fr/RK808%20datasheet%20V1.4.pdf > > > RK817 PMIC data sheet: > > > [2] http://rockchip.fr/RK817%20datasheet%20V1.01.pdf > > > RK818 PMIC data sheet: > > > [3] http://rockchip.fr/RK818%20datasheet%20V1.0.pdf > > > > > > Reboot issue: > > > My guess is that we need to some proper sequence of > > > setting to PMCI to perform clean. > > > > > > If you have any input please share them. > > > > The rk8xx pmics may not on all devices be responsible for powering down > > the device. That is what the system-power-controller dt-property is for. > > > > So that property is there for a reason - to indicate that the pmic is > > responsible for power-off-handling. > > > > Heiko > > > > Ok, my intent was to have common framework for > shutdown, restart, suspend, resume routines. That is a great goal actually :-) I guess just keep in mind that it should only handle power-off if instructed by the devicetree property. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel