Received: by 10.213.65.68 with SMTP id h4csp340652imn; Fri, 16 Mar 2018 04:57:39 -0700 (PDT) X-Google-Smtp-Source: AG47ELsApF++WQCK8zyrYANkBHeIMj1yI0Dyd6qRmBReRCwoaj1QYf/3G3GyFZzczgcbjlX1w8+J X-Received: by 2002:a17:902:2803:: with SMTP id e3-v6mr1887141plb.238.1521201459940; Fri, 16 Mar 2018 04:57:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521201459; cv=none; d=google.com; s=arc-20160816; b=YxEMgVymFeT7bfJtIpRPQG8q2cj+JKJcVOOtqoKq+RPmeZ8SNzdUzzS/uCpGuTHhvr e3w+orn80xLQuz0xzCWRuA01SMbk9Fl+g7gE5wwyStMIbJ1MYSoiqvEhpfmDVYcWPQQ3 zKdwpwtld+FopobpMxOXqaVsPR5SuwjUp5gX0zDllWXF21qgg/ukioLj9IBz760fzhXw Pz0YwKfDzaZukNK75tdPYxOPjIvm0wEHjz7nq0KQ1i67x6AsVdfRGyx/DVNrN9W4ZKiw vhEDng3kG3A4+JudFzcE4uIz2tiyah47uyt5s5ao6NYjFyOcEuGAtei5WzqnNI0fZ/0y /V7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=ReDMMWF2iaPIK5bSfs9QXVMGBoc6KspQiCef36ha3IU=; b=OdFe+BbIATWYzbIEGOpF2RYepFunjW9/HPcTWqAOGMZ7leQk02UE5Tl1oeBQql8xJG pAcunzi5IZsSXnNyX+ZvU70tbg2Z8AuCEPRX5kmqJzYEvm9k1l5rCWdKmI1NV1442ufv SUs+QE9H8pLKx0Lw6XMpRU+98Hc5DIVgPi4tNjEWNEgTvIaD8epu9l2ICRzfWJsKEWYb LaXfvHEORSp4Ge7PF1CuihruYDHNWR6Xiz25XC+m2q+xj8AgGjlLoYIyZYiVMzqMkeXJ OBci+fMQ9xi6p4mt03Mx2pp/jGHKLkUvreoUd/zU/Xi2wC9SRFF9SePgs/jPROgQbgPe vatw== 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 z13si5304941pfh.217.2018.03.16.04.57.25; Fri, 16 Mar 2018 04:57:39 -0700 (PDT) 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 S1751854AbeCPLz7 (ORCPT + 99 others); Fri, 16 Mar 2018 07:55:59 -0400 Received: from mail.phycore.de ([217.6.246.34]:46555 "EHLO root.phytec.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751758AbeCPLz6 (ORCPT ); Fri, 16 Mar 2018 07:55:58 -0400 X-Greylist: delayed 408 seconds by postgrey-1.27 at vger.kernel.org; Fri, 16 Mar 2018 07:55:57 EDT Received: from idefix.phytec.de (idefix.phytec.de [172.16.0.10]) by root.phytec.de (Postfix) with ESMTP id 91B0FA0026A; Fri, 16 Mar 2018 12:49:15 +0100 (CET) Received: from [172.16.26.94] ([172.16.26.94]) by idefix.phytec.de (IBM Domino Release 9.0.1FP7) with ESMTP id 2018031612490811-117486 ; Fri, 16 Mar 2018 12:49:08 +0100 Subject: Re: [PATCH v3] mfd: rk808: Add restart functionality To: Daniel Schultz , lee.jones@linaro.org Cc: zhangqing@rock-chips.com, xsf@rock-chips.com, tony.xie@rock-chips.com, linux-kernel@vger.kernel.org References: <1521188783-14985-1-git-send-email-d.schultz@phytec.de> From: Wadim Egorov Message-ID: <5cec78da-9b76-12fa-703a-bbaa90a6d58c@phytec.de> Date: Fri, 16 Mar 2018 12:49:08 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <1521188783-14985-1-git-send-email-d.schultz@phytec.de> X-MIMETrack: Itemize by SMTP Server on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 16.03.2018 12:49:08, Serialize by Router on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 16.03.2018 12:49:08, Serialize complete at 16.03.2018 12:49:08 X-TNEFEvaluated: 1 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=utf-8 Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Daniel, Am 16.03.2018 um 09:26 schrieb Daniel Schultz: > When using Rockchip SoCs with rk805/808/818 PMICs, restarts are realized by > setting the reset registers in the "Clock and Reset Unit". > > Since all three shutdown functions have almost the same code, all logic > from the shutdown functions can be refactored to a new function > "rk808_update_bits", which can update a register by a given address and > bitmask. > > After that, notifier blocks and the restart functions were added to the > driver. Like the shutdown function, the restart is bound to the > "rockchip,system-power-controller" device tree property and can easily > revoked to the software restart by removing the property. can you please split the changes into separate patches? One patch for the refactoring of the shutdown functions and one for the new system-reset-controller binding. Regards, Wadim