Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1127533pxf; Fri, 12 Mar 2021 02:36:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJwKsQr9De2MkTgaP8PR3b+4bdiZVmqJut/fXUdrY+jfKC29i4MvbVXZBSAXpNTxq+NzfFdO X-Received: by 2002:a50:e80c:: with SMTP id e12mr13474359edn.229.1615545367353; Fri, 12 Mar 2021 02:36:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615545367; cv=none; d=google.com; s=arc-20160816; b=pLF+BG7Zv8qYCNtrBuClg4mXavmwI/yL/caYfLoV+AxXs/vPSzpYBzFkpD1yGsTRXp XW7UKjaYATawpE53k9ZIy3VBoyHRCqix1/5T4lHRWzGbXaqVc/tp2VuQEmpeKcKOIFLl JQW1BIwJOLTnnbVe/DiPmgwQH8W29LYA9EWA6wfqAroUykGWfFqKqp5/TJ8HnKQemSh1 ANsGXAHaMWN31o3Lv870xhPBCLGGKnu1gmhRQBcjdVTjm0rypzUCgxmPozkLQG54hLVe MHGndXd1NULTcBd5GqjC05UX7aXtL6gg7L3hhLU1Kin02oQduft090zrfTF+ED3YYUWw JH0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=tuL2UmlH4PPL1suOPpfNv60tfmEARpl0ac+F+gbumPU=; b=xRuzryweNwDkDBFzV3gpjQdk6ZcJtccQ2AiTmxojG3hMdVQzLzsSOhgwBa6oYTvnGu /GVfTV5fZKTqvFxEh/dsZqAg2fzmqXNYSID7rtxbw7GVJuKOnFR68/K7uOyS0XYyBwpV kPketWZz7ZccXo+2kBVLFZ0yXeVVSy08uFW6mofv554ZzgFQU/fLi45ZOsOgMmZUVwG4 wKPb/S9mfdDZoPaqFRrYFOMmdTRexqBptIbuLG4iUqbizBsJMT99GCQSRoXEN1UJD4XM e+ey+TYOGp6FZyXUJofihqnhg5iro8oFshgREk7a6NQtnlJvQXtp0hpAziJFThc4HlGG bZiA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t13si3733529eje.700.2021.03.12.02.35.43; Fri, 12 Mar 2021 02:36:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233329AbhCLKer (ORCPT + 99 others); Fri, 12 Mar 2021 05:34:47 -0500 Received: from elvis.franken.de ([193.175.24.41]:52576 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231317AbhCLKem (ORCPT ); Fri, 12 Mar 2021 05:34:42 -0500 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1lKf7u-0007WV-02; Fri, 12 Mar 2021 11:34:38 +0100 Received: by alpha.franken.de (Postfix, from userid 1000) id 081E0C1E4A; Fri, 12 Mar 2021 11:27:31 +0100 (CET) Date: Fri, 12 Mar 2021 11:27:30 +0100 From: Thomas Bogendoerfer To: Ilya Lipnitskiy Cc: Matthias Brugger , John Crispin , linux-mips@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] MIPS: pci-mt7620: fix PLL lock check Message-ID: <20210312102730.GC7027@alpha.franken.de> References: <20210307041724.3185139-1-ilya.lipnitskiy@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210307041724.3185139-1-ilya.lipnitskiy@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 06, 2021 at 08:17:24PM -0800, Ilya Lipnitskiy wrote: > Upstream a long-standing OpenWrt patch [0] that fixes MT7620 PCIe PLL > lock check. The existing code checks the wrong register bit: PPLL_SW_SET > is not defined in PPLL_CFG1 and bit 31 of PPLL_CFG1 is marked as reserved > in the MT7620 Programming Guide. The correct bit to check for PLL lock > is PPLL_LD (bit 23). > > Also reword the error message for clarity. > > Without this change it is unlikely that this driver ever worked with > mainline kernel. > > [0]: https://lists.infradead.org/pipermail/lede-commits/2017-July/004441.html > > Signed-off-by: Ilya Lipnitskiy > Cc: John Crispin > Cc: linux-mips@vger.kernel.org > Cc: linux-mediatek@lists.infradead.org > Cc: linux-kernel@vger.kernel.org > Cc: stable@vger.kernel.org > --- > arch/mips/pci/pci-mt7620.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]