Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1566498ybl; Fri, 6 Dec 2019 21:09:43 -0800 (PST) X-Google-Smtp-Source: APXvYqxiyKd6/BBWwVToEiacbaIIetkQhnK45EPZzcdUwNFQo2wNHlpmmqU+O6lpbFewc9P2HGur X-Received: by 2002:aca:5d57:: with SMTP id r84mr16132881oib.42.1575695383299; Fri, 06 Dec 2019 21:09:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575695383; cv=none; d=google.com; s=arc-20160816; b=PHPW7/c0c1ZBX+K5NdUNaSRV4rwPxFjzIea0zx4bFrQqt85dICyDV/kgwBTfyeoEil 4ib5i9ohJ4pB+F+aro3TkoaMiBBIY2FZo3tDfKJoA2OWr9J3vaF2XrlTjtGH+WCs6BAq 2oG+NdvzaEsi+ZFs2g9Co/agyLARarxJwEHry6jyT3RWFXUJJFT2MvtHZXLr1oFiCuJS 8+I4dSJrd4GNmd7brWvb8W+bJijuOJu21w2k2i8+QW50B/ArM3oGM/5DExwgJJYmWv97 qZnfbWGrosRcMMs0wpCRkz9OTrUIN5LUZxdY7cnP0FFnz4V4/I5tfKCYq8J4DsCX1Vtl rvvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=WZjCU4j3sL53untxnLZNdDSh0qNqfLN8e+bQHEuZ5dE=; b=fDxFc3l8QILZG+PiLsFp/XkBMpgCtRJOBQ0VBan0g/iBuhxpaTVTPyBsqiHtFW7Gau 385MkYQ7H+Ia9HL8dPE8+jHrwke/fxdtRt2N5B5BBV+2K9l61rK8DfSBP5UpA7kOkY3C t4xPmCA/QPJyoMjgSLaj5ALMxtq+KBAD4ta06eRZ+7Lt8Ii3fTN3nkIIlqvOO50xvgg8 KCT4ZOrIID+PRHRN4/a9H/Eir032iWbBvz5bhyPZgRhACNoKu30qZN27ORzjl59nee4e +ETuTzk7+XwbUDzKN4uSmIcNTuMa4jSDRqq4uEqP6KOZ3HzLBfPKP+0Y2MbzXikanD9u AWAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="e/7O6x16"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n2si2048985otk.177.2019.12.06.21.09.18; Fri, 06 Dec 2019 21:09:43 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="e/7O6x16"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726506AbfLGFIC (ORCPT + 99 others); Sat, 7 Dec 2019 00:08:02 -0500 Received: from mail-io1-f47.google.com ([209.85.166.47]:40143 "EHLO mail-io1-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725280AbfLGFIC (ORCPT ); Sat, 7 Dec 2019 00:08:02 -0500 Received: by mail-io1-f47.google.com with SMTP id x1so9507293iop.7; Fri, 06 Dec 2019 21:08:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WZjCU4j3sL53untxnLZNdDSh0qNqfLN8e+bQHEuZ5dE=; b=e/7O6x16LI/cuCQ9VTwPI5Qk6hyKut98AIxqbVAVLXFnPUZszlL1F8MV0zeOlzDw98 HNsphd3/kuZeVUnk/l+0GmPBjf3+I51JSETHKJ5xNFY202XDoSOAIsX0gWRf/m7vu3Xq kMmZ2dECX7IZhWY9XsT+MbFZCfSxV9drsJHQUEd+wbcl5J3b7Lo/a8seWTM7Yq3dzOsP U9oQc4brO84vwhqY+ZCjjwQ1qi2dc8fnhzkTFfZeHrPLoO7umCQtmN5/Kbz8MZ5tlSON rnwU7Z5V8M3R6LRjkh3sGIAllgXm1L8stfF4hlxW/dyYp8s2KF5q91MoguFmdFMmmYeH 6ohg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WZjCU4j3sL53untxnLZNdDSh0qNqfLN8e+bQHEuZ5dE=; b=nYolNh/94vzHhutV3XTnJM1eDurxog4C4QxXMYNmHQjsSjo6AxWWSLZCwbLbHENbkg /QWYx2R2x7aCaSi+OLRZP9Azz3LzUDPgomsiJsAnCJHXHMFkXB8D0Y8+SuZUHTvw20Zs MZR4cfahhNFJuSWALOXMlvvdFq9fxgNUf3316MilEcqsbe1xjVqkaQzIfWEJy7fA01ar AU0PfRZTyq3Wz1Yd1Mss/Og98E8S9JWcAhIr9ACvud/WLdsIqy0aby51jGG3ny3DDu5e 9CCsmYb2f2TtGMba9cUP5q7No3wH8c9lSJqxsU6iycyuwfurMF5zqUA6zZSTQAtWlzET LxZg== X-Gm-Message-State: APjAAAUnsjQ8qiPyQCmpVpG8vzlxk8t2vihPH1lOkTL5yYvOhqitgEBf beIPcTAQ+//8tMo8qYyjaoyevP+E5Mq+MGJ9twM= X-Received: by 2002:a5e:9314:: with SMTP id k20mr8633311iom.6.1575695281133; Fri, 06 Dec 2019 21:08:01 -0800 (PST) MIME-Version: 1.0 References: <20191206184536.2507-1-linux.amoon@gmail.com> <1765889.rfqrfT1PbY@phil> In-Reply-To: <1765889.rfqrfT1PbY@phil> From: Anand Moon Date: Sat, 7 Dec 2019 10:37:49 +0530 Message-ID: Subject: Re: [RFCv1 0/8] RK3399 clean shutdown issue To: Heiko Stuebner Cc: Rob Herring , Mark Rutland , Jagan Teki , Manivannan Sadhasivam , Robin Murphy , Daniel Schultz , devicetree , linux-arm-kernel , linux-rockchip@lists.infradead.org, Linux Kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -Anand