Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp83698ybl; Fri, 9 Aug 2019 02:54:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqyGwDj8YyKxaFMRYYhh1vq0wog+yd4X5hC3tE6Wh8niG2opdufzeI13Fj3XV4RBOguwullK X-Received: by 2002:a17:902:f082:: with SMTP id go2mr19073596plb.25.1565344480854; Fri, 09 Aug 2019 02:54:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565344480; cv=none; d=google.com; s=arc-20160816; b=R6KZ9G/kgp+vScSWBMzCRyYLEfse60lbAk2Pf1RAMhj/qK+SHFb/2eZPzX6Ls1nFIu 6F8biD9RPpkD8ox+vdv2/Twykv7G+cIEqe2sz8Q/trUQrCqThIGDS1ZqzfNOWptU8gbg 15SqkPMG/gHo9/Q988v8uLwyE1V0O/AhtsnJsNOL9O/fVc8gvQrfbFiRkpAj8DO7XAhw c6FXcxVAnfIYjSTo5GMI56pZzlEvSkg8W+C3VkRMqagTe2kv55L4FFi0pbtMG/WYY2sb ViPrGxL6G7AqOg50gkbXdbWjxxXZGq1mfsSUEVyq3l8bs8yUREssgVBSTvMKIK0W7S1J DXqw== 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:dkim-signature; bh=dCC5Lfjh36lJlf2UNXt7JftBZTz1SKvkw6HVIcXgEn4=; b=jpzqiPE3xdhrUaUQcHwEzKI5FWqYQLUawht2toELgnQN1dQjhL5Tq9n0CyOKq7SwTk I8jgW/b22/mMld5cPZp0xlLmQ72Usl917UQprd5nTbywZY15gSVb8yEYd7oikPMO8t12 HrIuKXRUFmBZoJwPedCwrqA/XGShI6l8PlGmhryGl/svFOxLUCROcwgf3FpqUDfcaqBI aT+tGd4sGMmzg4ugx2+hAh6kq+7WTDSApSW9TZx3+uNj3chyjc5YCbpA9MQK15D63jVA JOaHO9M+kV0hXAA0Qhr6jVksGhYr+CYc/YMVYxKV9ATbYlEpZnT+P9p1Lmd5TYss3NQ3 56uQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mAW5usvY; 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 m10si4048206pjl.77.2019.08.09.02.54.24; Fri, 09 Aug 2019 02:54:40 -0700 (PDT) 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=mAW5usvY; 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 S2406069AbfHIJxp (ORCPT + 99 others); Fri, 9 Aug 2019 05:53:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:59704 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405641AbfHIJxp (ORCPT ); Fri, 9 Aug 2019 05:53:45 -0400 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 815C82171F; Fri, 9 Aug 2019 09:53:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565344424; bh=HvIMRzJAD8xKVNar+I0poiTdap6cuZjybn8Cb39/S4A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mAW5usvY5TRTwNwiyb9HbLqnttY7Fl181BMCrvMtghPMrPW3HXe/FUImhq15iYn+R Fy0fDCyZCSZqFB9kERdFKnUn41T527BTUSDqT89jqc5LukkdNqmwjulPAd8DZKyhu6 eTjpDwZA0xMwsF4/pd+QBlSjd51QxUOAeObojS5I= Date: Fri, 9 Aug 2019 10:53:38 +0100 From: Will Deacon To: Stefan-gabriel Mirea Cc: "corbet@lwn.net" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "gregkh@linuxfoundation.org" , "catalin.marinas@arm.com" , "shawnguo@kernel.org" , Leo Li , "jslaby@suse.com" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-serial@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Cosmin Stefan Stoica , Larisa Ileana Grigore Subject: Re: [PATCH 5/6] tty: serial: Add linflexuart driver for S32V234 Message-ID: <20190809095338.d73fomq424gayf2b@willie-the-truck> References: <20190802194702.30249-1-stefan-gabriel.mirea@nxp.com> <20190802194702.30249-6-stefan-gabriel.mirea@nxp.com> <20190808080832.nleult5bknmzr3ze@willie-the-truck> <20190808171711.nk7ljqkugtketu4q@willie-the-truck> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 09, 2019 at 09:45:40AM +0000, Stefan-gabriel Mirea wrote: > On 8/8/2019 8:17 PM, Will Deacon wrote: > > On Thu, Aug 08, 2019 at 12:47:00PM +0000, Stefan-gabriel Mirea wrote: > >> On 8/8/2019 11:08 AM, Will Deacon wrote: > >>> On Fri, Aug 02, 2019 at 07:47:23PM +0000, Stefan-gabriel Mirea wrote: > >>>> + linflex, > >>>> + Use early console provided by Freescale LinFlex UART > >>>> + serial driver for NXP S32V234 SoCs. A valid base > >>>> + address must be provided, and the serial port must > >>>> + already be setup and configured. > >>> > >>> Why isn't earlycon= sufficient for this? > >> > >> "earlycon=" is not actually supported. I will fix this in the next > >> version by adding a /chosen/stdout-path to the dts. The compatible > >> string provided to OF_EARLYCON_DECLARE will also be changed from > >> "fsl,s32v234-linflexuart" to "fsl,s32-linflexuart" to match the one in > >> the device tree nodes. I missed this after importing a rename from our > >> codebase. > >> > >> Should I remove this addition from kernel-parameters.txt after that? > > > > Yes, if you can use earlycon instead, then you can drop your custom option > > entirely and therefore there's no need to document it either. > > Can you please clarify what you mean by "drop your custom option"? The > "linflex" option documented in the paragraph is the name of the > earlycon_id declared via "OF_EARLYCON_DECLARE(linflex, ...)". We have > not done anything particular to accept it in the parameter value. My apologies, I completely misread your patch and thought your were adding a *new* kernel parameter. Having looked at the context, I now see you're adding a new earlycon option, which is what I was suggesting :) By all means, please update the stdout-path, because then you can just pass "earlycon" and things will work as expected. Will