Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4193664ybc; Fri, 15 Nov 2019 00:04:06 -0800 (PST) X-Google-Smtp-Source: APXvYqwT6HNhHPssPYisuOdBHAfib4mDHvd2ZQ6CSyjFFUMHZyKNmo13IARYYVrTFMly7Y6WGJ83 X-Received: by 2002:a17:907:216e:: with SMTP id rl14mr12120464ejb.291.1573805046689; Fri, 15 Nov 2019 00:04:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573805046; cv=none; d=google.com; s=arc-20160816; b=z2M4yQP+VLkh8tepnkakxvhtHGoYt3JZ5S8JX2gsxUmejalmWpUbHqydvVMukTTiJF PyrltX32B6S+vG7J3NpSSOtIMXPwzxAYijOe0wZq48RoG7K6KmcZ74mozt2lngJQrSBB MpkPfMxk2dbacKAv4Z/AoXIotYzjEuaZP4ucDAm4IlQHZW+GcmC9WniQ7gG/97z92qje hBOFAim6tNKLcgG/+1LTakyZSx62DBeBaitZPrgC6YCZ9/oE5qJX5lmDUBkPu6lqUPe+ C4ZgHEaKWssRpfqE/9h8mp8IqemkpZhEWA+Iui94MP+W34e95NqmoewrRP2T/Thc//Y3 UeUA== 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=K7AVtvzUjcO1cH7HI4QDDaRMFMqYOvK9VjNlChoFy28=; b=X27DqK6X4YZcuKOypZRoOdoQaVqwf9zY3L2Y3FgT3yJLqlQjuDvJfqmU8E0VoncGzN n8Upm+iyOBf3LxY4HHHSJDUkxyLIqnQqYG53zZF+8zPJm0+T038D0BN8bcEpS5fvJLuw IWExbHmEk1xnKnVPcLPLw80Luw1PUwq2gRXvg++BnO2UyHEeTeOLxuqLPzSPmHoB0oUy AMgiMBLftdW9bckdxMzHYTSFdKK35Cg8GFNoXJwk58VtxbuwT5L3BU4L8N3GxbPkZnf6 taXHGwICU7JNxAiv4xImz55Md4jrjrJ70llmhynZL6Tr+W/NNvB7b5NNpT3YGPM5KEOV tyWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=WvPEQM25; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o22si4797262eja.122.2019.11.15.00.03.41; Fri, 15 Nov 2019 00:04:06 -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=@rasmusvillemoes.dk header.s=google header.b=WvPEQM25; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727059AbfKOIBM (ORCPT + 99 others); Fri, 15 Nov 2019 03:01:12 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:41088 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725829AbfKOIBM (ORCPT ); Fri, 15 Nov 2019 03:01:12 -0500 Received: by mail-lj1-f196.google.com with SMTP id m4so4729640ljj.8 for ; Fri, 15 Nov 2019 00:01:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=K7AVtvzUjcO1cH7HI4QDDaRMFMqYOvK9VjNlChoFy28=; b=WvPEQM25nYZqJtCFviyiD5ljzM/UmkIClduWS5T64tJiWhNJmgokv03NvNrxgyQS+y +5ABXTxPcvc7NSKvwma9diqktx6g7QSNjbcBVdIQbuLjNfOH8c/sfbAmpgxGbu3j8NvN SWQP/Ey72K1GHGzEJeMzAkIbyO7FCT+amG3Kw= 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=K7AVtvzUjcO1cH7HI4QDDaRMFMqYOvK9VjNlChoFy28=; b=ZVTQ7mPw6fPuDYF2I084NR+gqjjcDGaMYPXKVYu9dnVhE0jQwNcT34fpP1Yj+N2Tyv XuVLfLgOC2APbtklsEHqwduiE89+M+JUefHx7eKHGXT5x+xANl+eOiPovRRm+8dbzWuj 6mQwlsAmzR2Auy9eIwtK1rQbTAI9Z2jie6+zTLrtFFjMBR4DBMEGpCydYqFVHR9Q/QRK up7OSBETwtepSkhjVj3FIUTt9oZTU+/x9ju38i+fvbfxaXawnkP+Oi3dgAXRGBSXNfM+ CY+FnAnfTKa4gMsTn95LJl1cM1vIMidzifeAIC6uyVH4SZ5to3j/gomf3uT9KDFAHbeS cm9Q== X-Gm-Message-State: APjAAAUBOAp+5mkIRNw2OsRS6booPjlYQHBqoKnpBssZBp8Tr/MFnVdT X+HOM+nTyfUEhOdQTy0poO1PcA== X-Received: by 2002:a2e:9ecf:: with SMTP id h15mr10034052ljk.173.1573804870160; Fri, 15 Nov 2019 00:01:10 -0800 (PST) Received: from [172.16.11.28] ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id a11sm3426309ljm.60.2019.11.15.00.01.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Nov 2019 00:01:09 -0800 (PST) Subject: Re: [PATCH v4 32/47] serial: ucc_uart: use of_property_read_u32() in ucc_uart_probe() To: Timur Tabi Cc: Qiang Zhao , Li Yang , Christophe Leroy , linuxppc-dev@lists.ozlabs.org, linux-arm-kernel , lkml , Scott Wood , linux-serial@vger.kernel.org References: <20191108130123.6839-1-linux@rasmusvillemoes.dk> <20191108130123.6839-33-linux@rasmusvillemoes.dk> From: Rasmus Villemoes Message-ID: <9f1a846b-c303-92fa-9620-f492ef940de7@rasmusvillemoes.dk> Date: Fri, 15 Nov 2019 09:01:08 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14/11/2019 14.57, Timur Tabi wrote: > 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? > That would be a separate patch, this patch is only concerned with eliminating the implicit assumption of the host being big-endian. And there's already been some pushback to adding arch-specific ifdefs (which I agree with, but as I responded there see as the lesser evil), so unless there's a very good reason to add that complexity, I'd rather not. Rasmus