Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1224172imm; Tue, 15 May 2018 16:05:17 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo/iusrdzUZJJ+SI5xzIezJNmefL2DkDbfEtXTW+ZaTGfQc1CWncqJesPkh+QY5rY5TCjSu X-Received: by 2002:a62:9099:: with SMTP id q25-v6mr17289132pfk.66.1526425517716; Tue, 15 May 2018 16:05:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526425517; cv=none; d=google.com; s=arc-20160816; b=xXJ4B7ZqyKfRYc5r2kky3XjvZ6GXwtH1kHJ0vOMtNKFt4vB88J0Jlt/pTotuNQgNM0 m4XIa4Uvhn9hrh4neXvyzBG3uHunUMOaom+rKEn1M60iB+l7AhTGsNEvf29UJpZsJ6Vi GXz5yYPTddHWcPEd19KxPDUDvyMw/4ljbfZ7qN6BOhFcIlaH+U67UeA/QH+hXkkmMXXp 6I5x+LPDwj91wX84cN5Fz0Vz6OZRWFGHyy0GztsKCnZvQCbBrNFGua4W/Z1QBsM8yk7B FV9erwcIJaK4zogLOwlAOzbiJou9F4bwQ8mTzSDyBVozssG92/16KojT1gsalXvdwLbA excA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:user-agent:message-id :references:cc:in-reply-to:from:to:content-transfer-encoding :mime-version:dkim-signature:arc-authentication-results; bh=/v+uqrbhppM1nurFza+jv1Cznco/8uHeW0tMv9jiGLU=; b=oEiMURnW3QQoqFeD6KTAfSIEtYaAEPhWSdl13o+yO6nZuEl2/0abNl06MNUCKbny7E 896tvGbvL5iEetM8Q+qFeWzK3VINqh9p/tK+uG4zHQRrvu95A7f1U67fkrA6+aRgCdIV KkyuZ57Vk5IAMih6bcn/SH8KiLXvRB2WFlbDWebjIB8f4kRCB/0o8Lt7fJIHZmpFauuY ZXAGx5OYMv/GUQkvyF1PNYbteuX5W6fnjahOXqQhx3+YMLxbYizkebdY3I5wS1+0FSuX 7AX91fjM3Su5eXYYdXPqN8kS+dqTaM0W0mCr9hG44WDS1YnhQmCcQOqkFBymv0BE4D0H RvdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vvHYuM+M; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y13-v6si877305pgq.435.2018.05.15.16.05.03; Tue, 15 May 2018 16:05:17 -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=@kernel.org header.s=default header.b=vvHYuM+M; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752537AbeEOXEx (ORCPT + 99 others); Tue, 15 May 2018 19:04:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:55850 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752416AbeEOXEv (ORCPT ); Tue, 15 May 2018 19:04:51 -0400 Received: from localhost (unknown [104.132.1.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4951120020; Tue, 15 May 2018 23:04:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1526425491; bh=/v+uqrbhppM1nurFza+jv1Cznco/8uHeW0tMv9jiGLU=; h=To:From:In-Reply-To:Cc:References:Subject:Date:From; b=vvHYuM+M3taYRS0PmY2DanEAgu64rHHhhTXp7xjbSCo9MAGdmK7g8bi31Ook1KdI2 O2XceTlULAcMVz7hOvQPSMjaou+AiqCLsnOLIGiABE7nJUq1mXdbj2GnAnyS48Qrcy lV17RrpNXG6j7o+nazYbNqaOTZU9ndCWrg6fy2WI= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable To: Boris Brezillon , Marcin Ziemianowicz From: Stephen Boyd In-Reply-To: <20180509043205.GA57916@hak8or> Cc: Boris Brezillon , Nicolas Ferre , Alexandre Belloni , Greg Kroah-Hartman , stable@vger.kernel.org, Michael Turquette , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20180429190111.14247-1-marcin@ziemianowicz.com> <20180430075847.29706679@bbrezillon> <20180509043205.GA57916@hak8or> Message-ID: <152642549058.237094.805373991669238611@swboyd.mtv.corp.google.com> User-Agent: alot/0.7 Subject: Re: [PATCH V4] clk: at91: PLL recalc_rate() now using cached MUL and DIV values Date: Tue, 15 May 2018 16:04:50 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Marcin Ziemianowicz (2018-05-08 21:32:05) > On Mon, Apr 30, 2018 at 07:58:47AM +0200, Boris Brezillon wrote: > > On Sun, 29 Apr 2018 15:01:11 -0400 > > Marcin Ziemianowicz wrote: > > = > > > When a USB device is connected to the USB host port on the SAM9N12 th= en > > > you get "-62" error which seems to indicate USB replies from the devi= ce > > > are timing out. Based on a logic sniffer, I saw the USB bus was runni= ng > > > at half speed. > > > = > > > The PLL code uses cached MUL and DIV values which get set in set_rate= () > > > and applied in prepare(), but the recalc_rate() function instead > > > queries the hardware instead of using these cached values. Therefore, > > > if recalc_rate() is called between a set_rate() and prepare(), the > > > wrong frequency is calculated and later the USB clock divider for the > > > SAM9N12 SOC will be configured for an incorrect clock. > > > = > > > In my case, the PLL hardware was set to 96 Mhz before the OHCI > > > driver loads, and therefore the usb clock divider was being set > > > to /2 even though the OHCI driver set the PLL to 48 Mhz. > > > = > > > As an alternative explanation, I noticed this was fixed in the past by > > > 87e2ed338f1b ("clk: at91: fix recalc_rate implementation of PLL > > > driver") but the bug was later re-introduced by 1bdf02326b71 ("clk: > > > at91: make use of syscon/regmap internally"). > > > = > > > Fixes: 1bdf02326b71 ("clk: at91: make use of syscon/regmap internally) > > > Cc: > > > Signed-off-by: Marcin Ziemianowicz > > = > > Acked-by: Boris Brezillon > = > Apologies for being a bother, but since it's been a bit over a week, > should I do something with this now that it has been ACK'd? I was thinking > I would see it somewhere on the git group repo but am not seeing it there > yet. Googling says that there is a "review cycle" for some maintainers, b= ut > I am not clear on if I need to initiate it manually or anything of the so= rt. > = I'll apply it to clk-next. Should appear in linux-next in day or so.