Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1842866ybl; Sat, 7 Dec 2019 03:46:31 -0800 (PST) X-Google-Smtp-Source: APXvYqyU+2GZAj1BoewtungSbECJZv277/t9o7vxA1SbLBc3JcHl3Hp/wTAnpDCpzaq/nKRgMq+/ X-Received: by 2002:a9d:1d07:: with SMTP id m7mr14783628otm.261.1575719191430; Sat, 07 Dec 2019 03:46:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575719191; cv=none; d=google.com; s=arc-20160816; b=UgeRTSjrSCkOIc8TKAHhU1lqnxF/dr46AkRtOK3UNM/zygt0CReG0CQSNzP/776zsI rrh/GLmh7Ag194ZzKY+WBVfnAZ1j6Ry6Bam74/UC9RYS6WoV0RzwZK1bFmv3bdXJfGu1 wJO5BHDmc8L76QeN+UkgoAl5QgCmzrGpX3jFkBx5mIFV6QIILNhGaBD8dYQcDfj+Tbix CbboVau/wSlNQrVjJWJaBC00encjl7niKZ4yImKxnFtsG5wCl8krLgbE7zjBgMZ/+cTv vJG7CzQ9pJSj3PlhFvsTlVc4PoO/CovSHnnAQM7YiAe93+qtbicA3dr5OIu/Boebj8lE toxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=rP8d3oNNT12fhmty13xRxn/34HDWOFtfPB19Xr1uj3Y=; b=X6AVnySNFNoAgSsSXg/CbVnpQcurYhB68Z9DKKZiPCLXWDjNCrONA6ntdW6nZ1Sk4r W0Z2Iodyp/6hyz3b4q8u6KglLnO+3fIRdAi02KmYS6iOJG11rc1jrMagrw3KTWZ2Cjlx TVfoSjjdCXxjR7t12mmLk5zV7NDevukHzWT2wM+3Ifsb9RukrNs2iyZTTCQyIKwhjDgf s+foWoPvHAMnjgiSbRCSKCukZsCQgP+SaNW6oEp70iL/fIJ0ZpRHgvcm3FzGj4s1jv1l 8sYH/mFIPLgY42/GwfRuyRKwRsc0XJ74GzdTm+Ho8LGATeYTQXEMB/ZCiTcRbVMUVqjh D0Mw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e192si9144919oib.82.2019.12.07.03.46.19; Sat, 07 Dec 2019 03:46:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726489AbfLGLpU (ORCPT + 99 others); Sat, 7 Dec 2019 06:45:20 -0500 Received: from gloria.sntech.de ([185.11.138.130]:51044 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726106AbfLGLpT (ORCPT ); Sat, 7 Dec 2019 06:45:19 -0500 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 Cc: Rob Herring , Mark Rutland , Jagan Teki , Manivannan Sadhasivam , Robin Murphy , Daniel Schultz , devicetree , linux-arm-kernel , linux-rockchip@lists.infradead.org, Linux Kernel 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 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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.