Received: by 10.213.65.68 with SMTP id h4csp1194266imn; Wed, 21 Mar 2018 05:09:51 -0700 (PDT) X-Google-Smtp-Source: AG47ELtCpA9p+72Ac5bkB6I4uqfq6FDHPOFIJOq73mB8Ry7Pm/d0eaGwMsO4kIx7yQaNt8NJxxl9 X-Received: by 10.101.101.133 with SMTP id u5mr14692907pgv.151.1521634190948; Wed, 21 Mar 2018 05:09:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521634190; cv=none; d=google.com; s=arc-20160816; b=aF7VvZBGvN6ujU7bveDe/YC/G1opfjkglThFILNGBZrLF2PL8Lq8FyHzrknX0c5Jmb T67MhjOCbjV6PIkR362XAIJD5wEVB6XvS+hsMYM0O4Rsdrjc6oVHlbncmT//VtY0ghyy Y/WDrZOutM3F+6KwHAUugRh3GZLeFClU/h8wZiTyVzibe/4MPGRKrr7aJZmPxswoIlDS Xx6phAmpINfGGaqSyxNJmb8iINg+V1U+XhnuWiDaywlHkVeZM8k67rgiu2F4cuaHDQgB ksyY5IKGvEtHx+UVAg54Ep5+h/nLVupELlsyHj8hj0BJY0XvDneu4R/FQHgJv8raK6GV PY6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=xff5helyvpKrMQhVA5feww+TE2DFsaGvjML8wv+bGo0=; b=LHegrl8eOheuN9OJOX1cAvgje5oYsoi4FlCb9cHu8mncDZ9OitCnTSLWZ/N0lcHg1I DNy/oz3qtjuWpbalwb7HEiEbhW+jiBvoHWIAouy7rFgr6vr9uCuLYghLMPjZlEyz0uGl sLHd91P+gmXG8MaDtCFYZkii3cHHxsfxLZ0Kid0o13J79j0pUtWNMeOkEqpkfGoJN1Uo 0q52yjnY9Pp36rz8HBfTqDBr7KBuHNdR+atZfPAuhemQfAKhKw+XSZCEU0l+WSpdG3wr Isd4RQ5gri5PDpbnge3E1traW1O8gMcVo0HFQQ511DKILD5g5qbTP5pV7DuENRUTy2Vm bfEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=XId/xxYc; 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 a1si2770356pgf.657.2018.03.21.05.09.36; Wed, 21 Mar 2018 05:09:50 -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; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=XId/xxYc; 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 S1751854AbeCUMIb (ORCPT + 99 others); Wed, 21 Mar 2018 08:08:31 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:45872 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751531AbeCUMIZ (ORCPT ); Wed, 21 Mar 2018 08:08:25 -0400 Received: by mail-wr0-f196.google.com with SMTP id h2so4935399wre.12 for ; Wed, 21 Mar 2018 05:08:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=xff5helyvpKrMQhVA5feww+TE2DFsaGvjML8wv+bGo0=; b=XId/xxYcpFAB9jxVh4f8j547560HSwlj6RQrkcj7puPWgAJtMx2606ZUj+Y/2y1SEL Zmn+COtowxucLdFcJY4f2N/47kRQBPmejCLWBAwTnNql32XGKIvi8EiLASkiHYU41BrG rxk8/XGSmkEhy828BtT8XmP9AYINhQSTR+fwKEx8ZIROzAAl4HVK6oeFsIw1yrypAgN7 ASJ7XwBuCtT1aDSXTlfqGfn9XumHhuEat6dGY5DyFcatqbRg6mg+n0njUsoQkkuqTJhU NnOc4bmGHkjhTq94FJQ0kTisQEG0bUwEfSaWhiyZKZqjbAwLDyTosIeOMrxAlJk6rNV2 8a8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=xff5helyvpKrMQhVA5feww+TE2DFsaGvjML8wv+bGo0=; b=TQBN+uVr+BJwuG+SMBP5FCnAiryWuf5T4jJTFR34jmN+KyjTa91ALMuZUlYdiDbtuL n3WpoqIMCU4bxd00/9tGwZZQhRDtn4RzYDPfADX4c3F6ottZK6VY32++HQHk0cPRvdR6 3DyzqOxgCKR9M0NkeKSbZ/8lch9r/V+PMAdZQBgTK4iHA6b4lrYItz1mHKB/TS45oabm HDh0WjtrGV4Luwu6HZgNztRg5PAM4DjU9l9WPnExFNRzG5nkDWeInZdy/uiqXLMZThzr gAr3vw5DsVj24T+0PlYMtQt1z4drAJYPybQo5vVyWJAVAWf5tbnvT0HC29mP8X7BxCrP 2qsQ== X-Gm-Message-State: AElRT7EFWMxNpV+0G1hYgoqIfc86OmZGzyuh4daO5+l2XU0pbo0ZvFXV usqi+ZqWnLJ2jFeUNcfgEXaO1Q== X-Received: by 10.223.190.140 with SMTP id i12mr2512419wrh.63.1521634103900; Wed, 21 Mar 2018 05:08:23 -0700 (PDT) Received: from brgl-bgdev.lan (LFbn-NIC-1-208-99.w2-15.abo.wanadoo.fr. [2.15.55.99]) by smtp.gmail.com with ESMTPSA id 69sm3871018wmp.36.2018.03.21.05.08.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Mar 2018 05:08:23 -0700 (PDT) From: Bartosz Golaszewski To: Sekhar Nori , Kevin Hilman , Rob Herring , Mark Rutland , Russell King , David Lechner , Michael Turquette , Stephen Boyd , Ohad Ben-Cohen , Bjorn Andersson , Philipp Zabel Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-remoteproc@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 0/8] ARM: davinci: complete the conversion to using the reset framework Date: Wed, 21 Mar 2018 13:07:59 +0100 Message-Id: <20180321120807.18032-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.16.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski This series converts the only user of the handcoded, mach-specific reset routines in the davinci platform to using the reset framework. Patch 1 modifies the way lookup entries are registered with the reset framework. Patches 2-4 add necessary lookups/DT-properties. Patches 5-7 convert the davinci-rproc driver to the reset framework. Patch 8 removes now dead code. Philipp: it turned out that it's indeed better to use the reset controller's device name for the entry lookup. Tested both in DT and legacy modes by booting the examples from ti-ipc-rtos recipe in meta-ti. This series applies on top of David Lechner's common-clk-v9 branch[1] with Philipp Zabel's reset/next branch[2] pulled in. It can be found in my github tree as well[3]. [1] git://github.com/dlech/ev3dev-kernel.git common-clk-v9 [2] git://git.pengutronix.de/git/pza/linux reset/next [3] git@github.com:brgl/linux.git topic/davinci-reset Bartosz Golaszewski (8): reset: modify the way reset lookup works for board files ARM: davinci: dts: make psc0 a reset provider ARM: davinci: dts: add a reset control to the dsp node clk: davinci: add a reset lookup table for psc0 remoteproc: da8xx: add the missing checke for clk_enable() remoteproc: da8xx: prepare and unprepare the clock where needed remoteproc: da8xx: use the reset framework clk: davinci: kill davinci_clk_reset_assert/deassert() arch/arm/boot/dts/da850.dtsi | 2 ++ arch/arm/mach-davinci/include/mach/clock.h | 21 ---------------- drivers/clk/davinci/psc-da850.c | 8 ++++++ drivers/clk/davinci/psc.c | 19 +------------- drivers/remoteproc/da8xx_remoteproc.c | 40 ++++++++++++++++++++++++------ drivers/reset/core.c | 33 +++++++++++++++++++++--- include/linux/reset-controller.h | 8 +++--- 7 files changed, 78 insertions(+), 53 deletions(-) delete mode 100644 arch/arm/mach-davinci/include/mach/clock.h -- 2.16.1