Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp778358ybk; Wed, 20 May 2020 11:42:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygk1K2GFuQMLWvP3NPHmU8v/CCLCIyDBEbp2J/zkA+PvEWnypg3DvXjFmeKoRbuJTha3gN X-Received: by 2002:a17:906:f891:: with SMTP id lg17mr362519ejb.405.1590000154452; Wed, 20 May 2020 11:42:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590000154; cv=none; d=google.com; s=arc-20160816; b=G8Z6UTTFIfjoEYtlcaW+hShjNDE8fOn49c1SBkBgzDPWnS+RbZ3tXgI8OStgFh+3Rb 7CSPFwG9bs/WmCsdw2aV5atcJwbkDxnHkIYSqDDYOCNM8rdJ8USjC1cLeNFLzR96anFA 3Gms0CMStj5aT97MFEGmsI3M/g9R5RGSS6oQgi6W4VMlyCVL/EFou5FuRAfKk8q3RID0 VgcylnN65n+UaFJdLA8SClFQIP7ukRO623RtMrO5oGFBkW+nia14Cahnay2OZtBnb3iC p0pvLKy3gswrMWfvv9+bPlR7JhiBZrLXOCGLvzHkqfykZirShANGXb+fEu3qyxqlM7m7 itmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=oPX5cNS9VQOQ4f/WU83RyH1E2QZVV2M73KdjrHU4iGE=; b=Dgcxdsv7KE4LpqoBNTp6bnKpjL18m6tooQUjuYswAfLXYWzo8DC37EsmU80ms869Oi Eya6QXBZazRWvexbRi54fH2tFOzWy9Uq0jHP5h3osWVDDp9lK1vXODqFUfwOdzfKALrf SP0iDON4oDxAyW50F05XUBwowtqghCGt0XFKsUVbV0tGCOJiYDjHh+UNcSNsOglau7RY CNOoqr0SrzvsSEp3HhK0vdKWMP2KIBR9spIKg5tLlh+HtRwP1rZ6bDGnUHRa6Sb/C2jl Eud7pHzlaCY3Oem+TBpID5CqEqI2duui32/sv4+J4rCLu2JtXddg9bjuh6mmvB8XNyfY LdLQ== 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 x18si2094895ejs.38.2020.05.20.11.42.10; Wed, 20 May 2020 11:42:34 -0700 (PDT) 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 S1726824AbgETSkj (ORCPT + 99 others); Wed, 20 May 2020 14:40:39 -0400 Received: from elvis.franken.de ([193.175.24.41]:60593 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726548AbgETSkg (ORCPT ); Wed, 20 May 2020 14:40:36 -0400 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1jbTdq-0005JR-00; Wed, 20 May 2020 20:40:34 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id ABE3CC0153; Wed, 20 May 2020 20:30:57 +0200 (CEST) Date: Wed, 20 May 2020 20:30:57 +0200 From: Thomas Bogendoerfer To: Serge Semin Cc: Serge Semin , Alexey Malahov , Paul Burton , Ralf Baechle , Greg Kroah-Hartman , Arnd Bergmann , Rob Herring , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Vincenzo Frascino , Thomas Gleixner , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 18/20] mips: csrc-r4k: Decrease r4k-clocksource rating if CPU_FREQ enabled Message-ID: <20200520183057.GA23855@alpha.franken.de> References: <20200511133121.cz5axbwynhmqkx7x@mobilestation> <20200515074827.6p5zx4sb3bmavjih@mobilestation> <20200515210647.GA22922@alpha.franken.de> <20200518134820.wedoumgbsllvhem6@mobilestation> <20200518163206.GA17800@alpha.franken.de> <20200518205752.txbylbjt2zkwdwwe@mobilestation> <20200519155053.GB15797@alpha.franken.de> <20200520121201.wohv6u646rx5otkf@mobilestation> <20200520133827.GA17714@alpha.franken.de> <20200520134826.pc6si3k6boaexp4i@mobilestation> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200520134826.pc6si3k6boaexp4i@mobilestation> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 20, 2020 at 04:48:26PM +0300, Serge Semin wrote: > On Wed, May 20, 2020 at 03:38:27PM +0200, Thomas Bogendoerfer wrote: > > On Wed, May 20, 2020 at 03:12:01PM +0300, Serge Semin wrote: > > > Since you don't like the way I initially fixed it, suppose there we don't have > > > another way but to introduce something like CONFIG_MIPS_CPS_NS16550_WIDTH > > > parameter to select a proper accessors, like sw in our case, and sb by defaul). > > > Right? > > > > to be on the safe side it's probably the best thing. But I don't know > > enough about CPS_NS16550 to judge whether shift value correlates with > > possible access width. > > The base address passed to the _mips_cps_putc() leaf is UART-base address. It > has nothing to do with CPS. See: ok, I'm confused. So this isn't an uart inside CPS hardware, but an uart used by CPS code for debug output, right ? To solve the issued please add CONFIG_MIPS_CPS_NS16550_WIDTH to select the correct access width. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]