Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6018057rdb; Thu, 14 Dec 2023 06:20:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IEnFowHzkdviJvmVv0Cxyg7OL3W18/vb1LPQv4GU6WuRcKUnR9FebwmpyHDkNfCEhHOT+n2 X-Received: by 2002:a05:6e02:1aa5:b0:35f:804c:e59 with SMTP id l5-20020a056e021aa500b0035f804c0e59mr1445857ilv.92.1702563633845; Thu, 14 Dec 2023 06:20:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702563633; cv=none; d=google.com; s=arc-20160816; b=auC/LElo47njtoRENr18c62PsgRjJ+nAGrF7C7kBKUlAqbvGHj1pBhB6lUANKpzpLy PEkbq51viJrGR4yKO/rgW9+0qx+tOVaGciALd/Gvg8YXmm8KdnD4gZuEQIHeVI7cQt3E hX5VpBgdK8I615CKl9kwrYn5hni3XGfmyVEkImN4nczmMW/38brcNsp8KQWGQWnbgBvX Qd+n5rjloq3OG6+V8pcDnA7oT7FPWEazTI1SdEHvcQM5AS98R/PEw7Zv2g7bgZLFyqts RjM7qRl2Hc+TXJNPOTZhsM7GpdCW9KsmI8mAEh9xTZiHi3kReUf1ipR7E7E77ZHGb9VV Y4oQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=9Z4MjfpQ7OjEEXxE9lG6e/W1L5auLJWvyv3COvKdATw=; fh=onOQAYyuk9g1JT9jZ+1WkVuSS7CAOytE8++7FimUZEs=; b=Whhmn2TA6dqAHCcHZxcSRmu2aSglyg4SkzvzbNcKFWN2kR8oWipw2lwZ3Nh3ilRaKO +qxKITZG+PVeYY1Csp3t5GUAPM1ou+lObsD8agnQl5JKQ6U47u2lXUlGT9Qnekvs9evZ VthJIDnYPkhMNb+lkFlk9QOgmCVY7GJSaHVGa4GhAqDDml4wKFUCykm/JZ3llFhw/JLd GSuN4DdZEmebMAnYfyj/wHMB2NiGFq32gufB8qAN2tmbvGylu5q8Hh5sI3zgMi3jCma2 0er4KLekrt6PhA+UfSGIEeUmhTMUrhjPF9XfkBSv96qH8ejdiy/Tsc6sRf4RMMvJSo/q t04A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=vuFZ2r6r; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=ZvwaDBUW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id s2-20020a63f042000000b005c6859735fbsi10839796pgj.770.2023.12.14.06.20.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 06:20:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=vuFZ2r6r; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=ZvwaDBUW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id AF3B780896B3; Thu, 14 Dec 2023 06:20:18 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573440AbjLNOUD (ORCPT + 99 others); Thu, 14 Dec 2023 09:20:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1573436AbjLNOUB (ORCPT ); Thu, 14 Dec 2023 09:20:01 -0500 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B66479C; Thu, 14 Dec 2023 06:20:07 -0800 (PST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 209025C01FE; Thu, 14 Dec 2023 09:20:07 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Thu, 14 Dec 2023 09:20:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1702563607; x=1702650007; bh=9Z4MjfpQ7O jEEXxE9lG6e/W1L5auLJWvyv3COvKdATw=; b=vuFZ2r6rblnm5W314rTfRVKZrM mqrIA3VlnFQPT6KA2yrZknlwtrzv9GkdEOw8ZR8Ua7Xs0ZfrMNqbFZMN4QI3kyiu mhKfWRbzAc8bfCOTmg3zFfPWaq2en4vHsYD0mLN2r79WNt4V1jMG3d1SSlCQJOKo yclAJOhw8GxFIRxHWLECCRlm561Q2GOH5J5wIeLnxoUk5/hjgaV5BbYC2X1KdyBD zD1DhDeCDdjEaIU4JgeHMS714p4nri6tV9doLlQl77a332ithpTSwiKjHg9drGdc VKgtC/fRxXt7QkzjisNxgVHRTomF/PV1hj3oPz5QZv4FER++igcDUUO46JNw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1702563607; x=1702650007; bh=9Z4MjfpQ7OjEEXxE9lG6e/W1L5au LJWvyv3COvKdATw=; b=ZvwaDBUWJe69wJRbSrL5vCEbopxk2qz+WIyz/n88kjz2 Kw1TBwmNEloQmAjZpwEMcfRTBC+MQ5x/NTjGyufqw9ffLYzckpIHonGciX/4aQO9 d+yKh+6+cg11XdEmiZq+0xZaymGrUTNIem62U+gGseG16i4TAlJHRAXWOsflTuh5 4mjdiunN3fU8miIJ9Ih2DsHqYQ8X8zEveHCMTb/DwvOB2OpB2k57F8EzI+ZDX/BS rsvwT0ToeLt9Ks2Q5FanummSoagOwTBrs6g63N2pIyzzya138l5rEaS1di+2oa3a +Z+SCRsAd+1ozzFnaEGS0hyHRtkMAs6MoyJSOaofUQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudelledgieduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 3133AB6008D; Thu, 14 Dec 2023 09:20:06 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1283-g327e3ec917-fm-20231207.002-g327e3ec9 MIME-Version: 1.0 Message-Id: <6962ac73-2f44-4c9e-8731-152087815454@app.fastmail.com> In-Reply-To: <8808ceeb-35dc-4094-aec4-f43c7acd6174@linaro.org> References: <20231214105243.3707730-1-tudor.ambarus@linaro.org> <20231214105243.3707730-6-tudor.ambarus@linaro.org> <1938fcf1-eb5d-4723-a6c6-d2fe2c6dd1c0@app.fastmail.com> <8808ceeb-35dc-4094-aec4-f43c7acd6174@linaro.org> Date: Thu, 14 Dec 2023 14:19:44 +0000 From: "Arnd Bergmann" To: "Tudor Ambarus" , "Peter Griffin" , "Rob Herring" , krzysztof.kozlowski+dt@linaro.org, "Michael Turquette" , "Stephen Boyd" , "Conor Dooley" , andi.shyti@kernel.org, "Alim Akhtar" , "Greg Kroah-Hartman" , "Jiri Slaby" , "Catalin Marinas" , "Will Deacon" , "Sylwester Nawrocki" , "Tomasz Figa" , "Chanwoo Choi" , "Sam Protsenko" Cc: =?UTF-8?Q?Andr=C3=A9_Draszik?= , saravanak@google.com, "William McVicker" , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, linux-serial@vger.kernel.org Subject: Re: [PATCH 05/13] tty: serial: samsung: add gs101 earlycon support Content-Type: text/plain X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 14 Dec 2023 06:20:18 -0800 (PST) On Thu, Dec 14, 2023, at 13:52, Tudor Ambarus wrote: > On 12/14/23 12:01, Arnd Bergmann wrote: >> On Thu, Dec 14, 2023, at 11:52, Tudor Ambarus wrote: >>> +static int __init gs101_early_console_setup(struct earlycon_device *device, >> > > It works if in device tree one specifies the reg-io-width property and > sets it to 4. If the reg-io-width is not specified, the iotype defaults > to UPIO_MEM causing the SError interrupt on gs101 which makes the system > unusable. In the case of incorrect DT data like a missing reg-io-width property, I would expect it to still fail once the regular console or tty takes over from earlycon. > Also, if the earlycon comes specified from the kernel params, the > of_setup_earlycon() is no longer called and the earlycon will be set > solely based on the kernel params buffer, thus allowing users to crash > the kernel on wrong earlycon definitions. But that in turn is the same as specifying any other incorrect earlycon. > If you think the change is fine, I can amend the commit message with the > description from above. I'm still not convinced we need a special case here when everything else just requires passing the correct data. Arnd