Received: by 10.223.176.5 with SMTP id f5csp2553369wra; Mon, 5 Feb 2018 06:06:34 -0800 (PST) X-Google-Smtp-Source: AH8x226xEq832KrliUNwopQ6Sf3H+Iem0+EFCAe3bWkeiLXZCLWwCjNHanptrVMFQZWiMqHa6SlP X-Received: by 2002:a17:902:7886:: with SMTP id q6-v6mr23458244pll.364.1517839594132; Mon, 05 Feb 2018 06:06:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517839594; cv=none; d=google.com; s=arc-20160816; b=a/7iCLuOK2ID5MAFsRIKcTp+++HXuu0lRrOCMdzTEqAvjr+V/srCp1f0yjUX4Nyj+8 9tdFU0BuSkflOTLALYqeAPTQK+woLh6HkDZ8zqft/mBByrKLgSVoVWX19LdEjKse5VYk P48TY0x7DYBLyn0OinyuaBNaRe0Iu2NufJ8YoGDBYLd71hjmSWsDRjavQ5YfH14YLJ0X BBIbDprVYnTCXVMtusL07Yy9Sd/DlUvk6jyUT5NZ3xa/wIlGPrFtEMBtusZyKdQmHu6j dNQqfr0lEGH+uy7Job3VuSJ44j9oJbftgCmK6wUMl3MY1XvtJrUqZQvYaOnelaf2iDEy Z7nQ== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=cJkvj2vogrl5bYt0VSomBV+psYt4SX69g9LYIEcwVSQ=; b=XC+q4LlbomeuYJW8I2eYRS26lndg4yWZ2BeRfLGjyLSJXlrovf+qxbfnxroNBNKC5q gyNZC4wy1eBwprqrS5KZngmx5/uwucGF7FCmzGW/AZT4mjysoWEfgJQn3fQABR6w/GJH Pmgv664pd6lv3owNLHnVV4q4S7A8k3f1/3qwJOYpjf/21re0N5az/pT7tuTb/1jeTE5M Tvvn/OlQGtzQr/5KzMLA3fueEqGgQ1vpPgEZ+ozZ/VeZ4Dl1ebt3qSn36LvU8sTbwzxM bcUljEnxyGiX3gshECQDRL54I0dWq42U9DnJkT74sEC5x5tc2ORAV56Bese9Bp9qU2gh VW8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=k/JmeyDP; 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 q14si6921531pfh.17.2018.02.05.06.06.19; Mon, 05 Feb 2018 06:06:34 -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=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=k/JmeyDP; 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 S1753067AbeBEOEI (ORCPT + 99 others); Mon, 5 Feb 2018 09:04:08 -0500 Received: from mail-ot0-f194.google.com ([74.125.82.194]:39375 "EHLO mail-ot0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752612AbeBEOEB (ORCPT ); Mon, 5 Feb 2018 09:04:01 -0500 Received: by mail-ot0-f194.google.com with SMTP id f18so2919960otf.6 for ; Mon, 05 Feb 2018 06:04:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=cJkvj2vogrl5bYt0VSomBV+psYt4SX69g9LYIEcwVSQ=; b=k/JmeyDP3Nnpnb+1GIfJlHC4RPOfMv+brI8Ly2bGiHMcXPVda9a/qvGvUlIxVrbRLH MhkMuAencs2ILvxpzkMUSrYJ3jxgEShHg/YIAEjjP8bfjfCayfC/5Igs5SeUPAl81aCM rl0qsD+xfSm/PmY6xODXdyRjTOJdoHsA0w9CUuV9cjGSIfBknQSQcraEo0ukwwd32BZ3 EFIiSBAjI9Vvbe6yOgg6rcGZTLAtxs5DCdLxVt/oTAb9VzbXrjXSQ1KCHPnHRhr6nZa9 eri/uv4U/KamzLRwFDKsCTTl8f5vBQ+KWkBPvISkRnGQjwytYeEOGiwzK0p3sU26gK7O t7gQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=cJkvj2vogrl5bYt0VSomBV+psYt4SX69g9LYIEcwVSQ=; b=GVfQCoEbw+kCJu4SjUMn46vJLzKoko8IC28LIAsgdA3cTQ6OvCKU1WwHUPU+G6emQt OdCylgRfvZ5QLct5WqB2iReIsd/n3pxTpDsyfHB6FOUUkkTiXBZW7BWacE6aJquCNUWL ZOJ0iJUMpMNepEp0TlFoZbded+LpIJ9Z26ULLziuq6RcXBUlJN5s6RpdYeT80iyyInUe nh+2/m9XH5FdGPm8uNyHNgj83TwwXtZI9k0VKGQCVYHkKcReG83UdoUvPgLOsK8wHQOI NlCrDtTeVtgpVJULj4rZjc+JZUVlqlh4keojpP1GmZaqOtgUUTI5lK6yhWaQMMLYFmZO ernQ== X-Gm-Message-State: APf1xPD+eR9wNoTq4rRNpfk42snPYhC02Sikul1xsj+1e2MVBZQpP20X ANiYJPrymuCmuxWTjm0V7jHuWIzw1RwhPHPAoI4dRg== X-Received: by 10.157.14.170 with SMTP id 39mr4529606otj.265.1517839441091; Mon, 05 Feb 2018 06:04:01 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.42.71 with HTTP; Mon, 5 Feb 2018 06:04:00 -0800 (PST) In-Reply-To: <335d92c8-1af2-da64-e366-95d7513ad69d@lechnology.com> References: <1516468460-4908-1-git-send-email-david@lechnology.com> <1516468460-4908-41-git-send-email-david@lechnology.com> <335d92c8-1af2-da64-e366-95d7513ad69d@lechnology.com> From: Bartosz Golaszewski Date: Mon, 5 Feb 2018 15:04:00 +0100 Message-ID: Subject: Re: [PATCH v6 40/41] ARM: da8xx-dt: switch to device tree clocks To: David Lechner Cc: linux-clk@vger.kernel.org, devicetree , Linux ARM , Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland , Sekhar Nori , Kevin Hilman , Bartosz Golaszewski , Adam Ford , Linux Kernel Mailing List 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 2018-01-24 4:26 GMT+01:00 David Lechner : > On 01/20/2018 11:14 AM, David Lechner wrote: >> >> This removes all of the clock init code from da8xx-dt.c. This includes >> all of the OF_DEV_AUXDATA that was just used for looking up clocks. >> >> Signed-off-by: David Lechner >> --- >> >> v6 changes: >> - removed misleading statement from commit message >> >> arch/arm/mach-davinci/da8xx-dt.c | 61 >> +--------------------------------------- >> 1 file changed, 1 insertion(+), 60 deletions(-) >> >> diff --git a/arch/arm/mach-davinci/da8xx-dt.c >> b/arch/arm/mach-davinci/da8xx-dt.c > > >> static void __init da850_init_machine(void) >> { >> - /* All existing boards use 100MHz SATA refclkpn */ >> - static const unsigned long sata_refclkpn = 100 * 1000 * 1000; >> - >> - int ret; >> - >> - ret = da8xx_register_usb20_phy_clk(false); >> - if (ret) >> - pr_warn("%s: registering USB 2.0 PHY clock failed: %d", >> - __func__, ret); >> - ret = da8xx_register_usb11_phy_clk(false); >> - if (ret) >> - pr_warn("%s: registering USB 1.1 PHY clock failed: %d", >> - __func__, ret); >> - >> - ret = da850_register_sata_refclk(sata_refclkpn); >> - if (ret) >> - pr_warn("%s: registering SATA REFCLK failed: %d", >> - __func__, ret); >> - >> - of_platform_default_populate(NULL, da850_auxdata_lookup, NULL); >> + of_platform_default_populate(NULL, NULL, NULL); > > > of_platform_default_populate() can actually be removed completely. > of_platform_default_populate_init() is called implicitly during > arch_initcall_sync > >> davinci_pm_init(); >> pdata_quirks_init(); >> } Hi David, this patch breaks nand on da850-lcdk (and probably on da850-evm) since the nand driver can no longer clk_get() the nand clock. We would need to keep the dev_auxdata at least for aemif. Thanks, Bartosz