Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3221387ybc; Thu, 14 Nov 2019 05:59:04 -0800 (PST) X-Google-Smtp-Source: APXvYqyjiPv3CkHHqL48k80MQsO72/eBg5LuXeOBTZAk9JVLliL5phWPbyHMDzWU9FaegMAs38i5 X-Received: by 2002:a17:906:4d93:: with SMTP id s19mr8595779eju.285.1573739944361; Thu, 14 Nov 2019 05:59:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573739944; cv=none; d=google.com; s=arc-20160816; b=LK2/Q7dEMs+IEVQajOfgMBx4207hG/yQz/ZcC04ViVsaiSf1aw16ajBkirh7YcOkC+ 9P603TT98v0odKdxg12thZCxqcX2Fltaskz12m7BbbywZxx4+xv/mCVnh343RHuZRxNh L/Dmo+Argm7koN4jo1A12ocyGQptH1O4tUlc54kNIxg/TXNlyG0t6PJ9/5M/4X5+m67I +dixtA3oWxZrqHqnBTzs2Ncnuj/DRTwGB3EsdEti5qPqkN68lhS7QmypYpw0ML60qZx1 +sQ5ros+I473QWLop1DaD538QjkqXX7CrwRk71mn+Dag92AJzzM4X4ph0LrWSj3gAw6O Nmvg== 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 :in-reply-to:references:mime-version:dkim-signature; bh=dcER1VeydTe0yT7eKLDw/2gTRFo/moFeA033ZtgLn3g=; b=UWy6rmciRO0kfmvvLBIfDI5B45h68DcuPVu+ht/JJRVC6ubSLoRiXX/PLm9A8vG9SO Rn1HeKCLtYKB8oQCRVNQzcaTtK+iy3iEVuPh+OOlD9NJ5RS3PemdPOIqztPfll36MTti PQpFSpoQcPqaaN7/kS6G/N8KVvy0PFkJRMdndkwl/CpfO9156ofl/eRFZJH7wsidTB9N 7/QRoIQCDlyuBQKYWDC4CrB3Li7hwKkCwTiMHzLUcg4iBKwqq24sbsx37AyndQEIFkMn UAENVaOf2WOL5W6SkbsLqkdpnIyAYffgiH0VZXiBNO1jnO7UiVn7CE84VCAwEr7TfIZt FCIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DYUqRhBS; 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 c31si4065070edb.56.2019.11.14.05.58.39; Thu, 14 Nov 2019 05:59:04 -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=@kernel.org header.s=default header.b=DYUqRhBS; 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 S1727075AbfKNN5v (ORCPT + 99 others); Thu, 14 Nov 2019 08:57:51 -0500 Received: from mail.kernel.org ([198.145.29.99]:56464 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726254AbfKNN5v (ORCPT ); Thu, 14 Nov 2019 08:57:51 -0500 Received: from mail-qv1-f51.google.com (mail-qv1-f51.google.com [209.85.219.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7580020723; Thu, 14 Nov 2019 13:57:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573739870; bh=GB5ZNZwpUnrvTVpWesWOxcFz8LGlrrjCF/2UjAprWow=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=DYUqRhBS/0/ZWwPyWgKQMpSSxeMvAecfdApg1bCdDt9EKfmb7Yo1HHuOZ7fWBEcGV 0Q2EKCCbPwEkyIj7bg3vpRuS8wmbpbGnFvY6pIXDaIpJm9qX1aCrI640uHbEJqRgYz pARS+Q7caIIdin7QRA7Q+fyYp98hhzth1wHsxfFI= Received: by mail-qv1-f51.google.com with SMTP id g12so2335056qvy.12; Thu, 14 Nov 2019 05:57:50 -0800 (PST) X-Gm-Message-State: APjAAAVnuSaeUdx7kt6wna0vCn0J9RPaB0y+gmqw58TS+DswsgEoS0dN w+bUBNrEtjhO/USHuNqC2tbedwZxTS4fP16RUPs= X-Received: by 2002:ad4:4089:: with SMTP id l9mr2672727qvp.241.1573739869543; Thu, 14 Nov 2019 05:57:49 -0800 (PST) MIME-Version: 1.0 References: <20191108130123.6839-1-linux@rasmusvillemoes.dk> <20191108130123.6839-33-linux@rasmusvillemoes.dk> In-Reply-To: <20191108130123.6839-33-linux@rasmusvillemoes.dk> From: Timur Tabi Date: Thu, 14 Nov 2019 07:57:12 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 32/47] serial: ucc_uart: use of_property_read_u32() in ucc_uart_probe() To: Rasmus Villemoes Cc: Qiang Zhao , Li Yang , Christophe Leroy , linuxppc-dev@lists.ozlabs.org, linux-arm-kernel , lkml , Scott Wood , linux-serial@vger.kernel.org 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 On Fri, Nov 8, 2019 at 7:03 AM Rasmus Villemoes wrote: > > - if (*iprop) > - qe_port->port.uartclk = *iprop; > + if (val) > + qe_port->port.uartclk = val; > else { > /* > * Older versions of U-Boot do not initialize the brg-frequency > * property, so in this case we assume the BRG frequency is > * half the QE bus frequency. > */ This bug in older U-Boots is definitely PowerPC-specific, so could you change this so that it reports an error on ARM if brg-frequency is zero, and displays a warning on PowerPC?