Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3595631imj; Tue, 12 Feb 2019 01:10:19 -0800 (PST) X-Google-Smtp-Source: AHgI3IYW4qityC4EmLakq7jbuhKFWKhYE85OzQdvIiT4GN+j5lxdhqlQ7nk8kHAK+W4p79kfE98k X-Received: by 2002:a17:902:33c2:: with SMTP id b60mr2934044plc.211.1549962619671; Tue, 12 Feb 2019 01:10:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549962619; cv=none; d=google.com; s=arc-20160816; b=UUD/60ROpVoB8ynMQ9xs4zyy48CnYF66uvd10wpBbshgWP5E5aAhmG0j5Bw8qJpJhU O11y8JQlm/CqX5RC4PGFDFDXWCk2JPyzgdcFS27wJHhjohiBaVpqFWUld92X842TmwpQ 9i3pi8EaghwgTD9RPZA/YtC2i8/32WGbOuF32mHMZpn6vcL2tnNBQbm8fh//WaLDfQAN rTTVBKC2MaWNRJZpIapRlay+FLavvTFVSsxFBiDIyNFmHz5fgF7j/FLddTk+/R4+EAcy VYwHnwEGx7AJaPDXUgH/15EWrqIsBNv7BV56aX0Fps5DgceU8zTzYnz5twAiVEh9FZ7s qsvw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=+BEHkIPnxNuYl01r30SPtz0G+P4sqTbcQQD+CaNVvT0=; b=F/VjKvr6Rs7iZzip44r38RS5XxtQUgiZOIY4y+lnNpkLZqL4tdcgB6k/JdQMyAKTGr dyaG4oBVuOrj3mUAhpjQSD6vypzj92XZc89SeLBSyw/KD9Y/D6/u6JgB4kP5id0iVula js8FTeIQXCXZuy0fuOfAx6Tt25l9vV1XLV82ZkgMkHAL01tEaWlLAykcNBdCmg7FoNPH a9Y4iNY3Im2jF8B5On+9e/Yfrdp5VkhqxNmKORghd8pK5GWCf7OfrgXuEbOqXDHsQlZs huSerjmGxpzSC/8d8OBrA77fzJ3Lqvd6mncX+d6x26TqI2trF1wRrG3oiL4l6AVy88kX pWbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fGEQslgv; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h4si6421708pgl.409.2019.02.12.01.10.02; Tue, 12 Feb 2019 01:10:19 -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=@linaro.org header.s=google header.b=fGEQslgv; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728580AbfBLJIf (ORCPT + 99 others); Tue, 12 Feb 2019 04:08:35 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:35488 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728289AbfBLJIf (ORCPT ); Tue, 12 Feb 2019 04:08:35 -0500 Received: by mail-wr1-f67.google.com with SMTP id t18so1795711wrx.2 for ; Tue, 12 Feb 2019 01:08:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=+BEHkIPnxNuYl01r30SPtz0G+P4sqTbcQQD+CaNVvT0=; b=fGEQslgvp5BuSUYCAlrp/WIkjDro0BmuGUycmttu3qbr32RQC77zY6M2V8+Sy/1DP8 o37yH47oltnsZWNqbrSIlxh1VUCB/WQnYT1RemwwMHRTa4ryksN5jqBfwNdAcX+lSIZJ ZQjQgFYRDfAMkgi+3DRLibAljYaAxWnJq2XmTsxv6mW0pYllR0gCUPtjWiftrJomTifF W0lvxP/qizR+yl92mL3yK/HiLvath+AR/2PiaKh71PRS14JqqkxS7zNKggJeVoYQKZKp zUHUF18T3BN7a+cc1u0EZi6+6oAlrZUlvKPvbv9/s+QlzAfJ5DHSRnZG9TwWJE5Suyhl 6UgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=+BEHkIPnxNuYl01r30SPtz0G+P4sqTbcQQD+CaNVvT0=; b=o5Vbgc18CJx67tselEf3gXSY3mHsDmCrKMcf97CIR4BBneJFmlnE2aqroXfTaH/OZt Zmam2K6vAm6kfRl52RoqKA59G2i40x2DjMNDi6HDo5B4J4SNom7VHvd/IU21kUXVUeQe j1Wpa3098A0NIOsz43EOQ/QVj9rDsaVTDqu20u0pG8s5SnB3dSwnLW0Pnr/iK3Or9Ieu NupPAValPdl95feF0zJ/zhUuyZa+a6xLdkrAAok05m/eeKhWvFA6Mamr6Eh+ofqBsz3b OUnA6awtyQoSLChM7Z3Mx42JZg2VX4AnKP7LFYRjEZZ6YbGxlT5pHSlxrxkR3UpMn+xx lBPA== X-Gm-Message-State: AHQUAub3erZ7EK1zOLau4zxZSzvR+NLNIJRQlD7Z9fWDN8rY+aW2zzIt dzzfh0+jKFQrmJpYoj0ZDUIfog== X-Received: by 2002:a5d:4149:: with SMTP id c9mr2118936wrq.58.1549962512843; Tue, 12 Feb 2019 01:08:32 -0800 (PST) Received: from [192.168.27.65] (sju31-1-78-210-255-2.fbx.proxad.net. [78.210.255.2]) by smtp.googlemail.com with ESMTPSA id r22sm2566097wmh.2.2019.02.12.01.08.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Feb 2019 01:08:31 -0800 (PST) Subject: Re: [PATCH 1/3] clocksource: timer-ti-dm: Fix pwm dmtimer usage of fck reparenting To: Tony Lindgren , linux-kernel@vger.kernel.org Cc: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bartosz Golaszewski , "H . Nikolaus Schaller" , Keerthy , Ladislav Michl , Pavel Machek , Sebastian Reichel , Tero Kristo , Thierry Reding , Thomas Gleixner , Andy Shevchenko References: <20190122175717.13428-1-tony@atomide.com> <20190122175717.13428-2-tony@atomide.com> From: Daniel Lezcano Message-ID: <00e47cf9-b444-4fcf-0d1a-11ff61edf008@linaro.org> Date: Tue, 12 Feb 2019 10:08:29 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190122175717.13428-2-tony@atomide.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22/01/2019 18:57, Tony Lindgren wrote: > Commit 84badc5ec5fc ("ARM: dts: omap4: Move l4 child devices to probe > them with ti-sysc") moved some omap4 timers to probe with ti-sysc > interconnect target module. Turns out this broke pwm-omap-dmtimer > where we now try to reparent the clock to itself with the following: > > omap_dm_timer_of_set_source: failed to set parent > > With ti-sysc, we can now configure the clock sources in the dts > with assigned-clocks and assigned-clock-parents. So we should be able > to remove omap_dm_timer_of_set_source with clean-up patches later on. > But for now, let's just fix it first by checking if parent and fck > are the same and bail out of so. > > Fixes: 84badc5ec5fc ("ARM: dts: omap4: Move l4 child devices to probe > them with ti-sysc") > Cc: Bartosz Golaszewski > Cc: Daniel Lezcano > Cc: H. Nikolaus Schaller > Cc: Keerthy > Cc: Ladislav Michl > Cc: Pavel Machek > Cc: Sebastian Reichel > Cc: Tero Kristo > Cc: Thierry Reding > Cc: Thomas Gleixner > Reported-by: H. Nikolaus Schaller > Signed-off-by: Tony Lindgren > --- Do you want me to take it through my tree (1 et 3)? > drivers/clocksource/timer-ti-dm.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/clocksource/timer-ti-dm.c b/drivers/clocksource/timer-ti-dm.c > --- a/drivers/clocksource/timer-ti-dm.c > +++ b/drivers/clocksource/timer-ti-dm.c > @@ -154,6 +154,10 @@ static int omap_dm_timer_of_set_source(struct omap_dm_timer *timer) > if (IS_ERR(parent)) > return -ENODEV; > > + /* Bail out if both clocks point to fck */ > + if (clk_is_match(parent, timer->fclk)) > + return 0; > + > ret = clk_set_parent(timer->fclk, parent); > if (ret < 0) > pr_err("%s: failed to set parent\n", __func__); > -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog