Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2050839imu; Thu, 10 Jan 2019 07:30:08 -0800 (PST) X-Google-Smtp-Source: ALg8bN49zTM3x/TJJk5qpuR5qY87N22BmDAcmFbipTtWrc+BPRIyK8OKr35skCLvxj7l9TYV9lF1 X-Received: by 2002:a17:902:6f09:: with SMTP id w9mr10985586plk.309.1547134208106; Thu, 10 Jan 2019 07:30:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547134208; cv=none; d=google.com; s=arc-20160816; b=RKMqd6W1RDooMRk7EYKAuxNfIN15MUlnWDktUhml87nD37IuQO1xc8/8O3qhkr0V83 2/o9mz2UsLwBm27tKMRgPDew7Mqigr2bSoRh9DaUEj+yNOafpVT4jQ3b98kqWqsmc0mV Y+Fht5RA2KqtyDc+mzWrlSBdPY8MRHLhhELnzpQf8+IdISiIBGvP2+SKlXzxDWFv2bju FXDZ8/hMUaK740/pl5ORMUmKrXUuFMwfiZNv8Y+ufUsgs3grioTud5mvpfgwrwJIbhDP NQrMeHclJ3yBaoh8uf9RTDrFNaMz8L17BGFHAFc1LzROylKvzgTlDGSNizX53WlGaRLi ZtSQ== 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=jQUpSPGEMm87Mdz4EH2TrihqF5rXTWKZ8maQbBBH5FU=; b=ouOy23Qvv9pD0He763hQulzdlvO1fxkL3V5U+T/c3tVHthsKOgiThtEt40H2XyScwS PegN1KE7zb2RrYNjjKNoKc2xPtwoP7ERGFkhJUpyKS7hBDFn5yGdBX05z+GfIxyQpSnM 0rQm+M3LCfSz3faxS689CtFNSIXbZUTBjoxSPKTpA2iHj+RmOAH7teMBhsdaJEkhgttc XvI5AfmyA4Sttjm5qroeMCf0cbxXUv38YhXNxV4PkRvkvVmo2jjl81QCD0Be8wXXOvXZ enCqGuuuMwcFWvjJRMphBKmQziQXLu3qbIe+cT21s1kzbl352yFBVubAK8BPealeVq2+ Gkwg== ARC-Authentication-Results: i=1; mx.google.com; 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 k11si11516828plt.68.2019.01.10.07.29.53; Thu, 10 Jan 2019 07:30:08 -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; 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 S1729679AbfAJP1K (ORCPT + 99 others); Thu, 10 Jan 2019 10:27:10 -0500 Received: from muru.com ([72.249.23.125]:33012 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727793AbfAJP1J (ORCPT ); Thu, 10 Jan 2019 10:27:09 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 8B4BC80E7; Thu, 10 Jan 2019 15:27:14 +0000 (UTC) Date: Thu, 10 Jan 2019 07:27:05 -0800 From: Tony Lindgren To: Vignesh R Cc: Sebastian Reichel , Greg Kroah-Hartman , Rob Herring , Jiri Slaby , Lokesh Vutla , linux-serial@vger.kernel.org, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] serial: 8250_omap: Drop check for of_node Message-ID: <20190110152705.GX5544@atomide.com> References: <20190109091206.25759-1-vigneshr@ti.com> <20190109091206.25759-2-vigneshr@ti.com> <20190109214403.GW5544@atomide.com> <20190110120758.bz63neey5ztepw4m@earth.universe> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.1 (2018-12-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Vignesh R [190110 13:24]: > > On 10-Jan-19 5:37 PM, Sebastian Reichel wrote: > > Hi, > > > > On Wed, Jan 09, 2019 at 01:44:03PM -0800, Tony Lindgren wrote: > >> * Vignesh R [190109 09:11]: > >>> 8250_omap is DT only driver so dev->of_node always exists. Drop check > >>> for existence of valid dev->of_node to simplify omap8250_probe(). > >> > >> That part seems safe to me now. > >> > >>> --- a/drivers/tty/serial/8250/8250_omap.c > >>> +++ b/drivers/tty/serial/8250/8250_omap.c > >> ... > >>> - const struct of_device_id *id; > >>> - > >>> - ret = of_alias_get_id(pdev->dev.of_node, "serial"); > >>> - > >>> - of_property_read_u32(pdev->dev.of_node, "clock-frequency", > >>> - &up.port.uartclk); > >>> - priv->wakeirq = irq_of_parse_and_map(pdev->dev.of_node, 1); > >>> - > >>> - id = of_match_device(of_match_ptr(omap8250_dt_ids), &pdev->dev); > >>> - if (id && id->data) > >>> - priv->habit |= *(u8 *)id->data; > >> > >> But this part it seems we still need to keep around > >> as we still have lots of clock-frequency references > >> in the *.dtsi files. Or am I missing something? > > > > It's re-added a couple of lines later. Only the indent was removed. > > > > That's right. You beat me to it. Thanks :) Oh right, sorry I missed that :) Regards, Tony