Message ID | 20221123-serial-clk-v3-2-49c516980ae0@chromium.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3372012wrr; Thu, 24 Nov 2022 04:42:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf4D5BhUr5sD4bVCsxZBh79wFZweD5RB9dVdiSCeFQdBWNDW+msA+BYBCJ2qDgM6j11Jfpwk X-Received: by 2002:a17:90a:df06:b0:212:d299:4758 with SMTP id gp6-20020a17090adf0600b00212d2994758mr41033496pjb.120.1669293747957; Thu, 24 Nov 2022 04:42:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669293747; cv=none; d=google.com; s=arc-20160816; b=haDJy2842NnDsEbPOEnrqC6BsLm4mlEBqWe+IM83Dah/3B/jzvKQ2HtvlnGyecpzE+ +iLj7YJoeRVAjHXKVPDFm5wH5XoWW0Y935fXSTrgTXMXbBGU8lsnDT7BX8tDYgpw3Sn7 IDojprPZall9G1Mm341060mhH+c3sH4mv8EgDzwzsdrMXxDr4fiit13H7QYEXtRYI2ra QTlzHwJqJ1mfSDaEuWdWMn30lY8HDFoAL63Tn2Wn6VjXjzmcqcbQZqhG/ZkLg2vYZrU4 kp2TQkQvoibuUjMXGlgkAp8bbJK/34PRi8L/q8m1Hcz1yRAlQtzzxYptNQv1p+yup0iZ A9gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=/t7lNXd7tivgAb5igBDrtCfwGh/wo9NfhZ6XZkO9LQs=; b=dwC10ypq0Tu2LOXsfa3zdSELRr1Vm2F6jE6JLhQf3Up07+ET+RxBrw8+kxhWqTj5Qj P1xeAyusE9arLTdMNnJCQ+O4ysBaNljIbGKA3Wrw04EkATNpcEOsJ5tKj1ta6wec4wEx yTuQKJNBLia+Q3IGVlAlBlNsiEnGoRMwueoBLwDoIAcylUEMtJ0GFMkxj6yqOSdh8yJ7 iu3Glai7LAAgg2BRD+ox/NnaJvHdJtVEmI2RbQZZ3pqso8ln22CI9VHI7v0H8HTRTQf8 3hKpdRyHe4P47IvTMCa1vvQtfzNOlrvuft21rbLXXPRzI1ImmWNa2BI2CBwKtWOd1xYY EsYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=CwAwnhaZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u2-20020a170902e5c200b001854f631c8esi1087430plf.221.2022.11.24.04.42.15; Thu, 24 Nov 2022 04:42:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=CwAwnhaZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229538AbiKXMkG (ORCPT <rfc822;fengqi706@gmail.com> + 99 others); Thu, 24 Nov 2022 07:40:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229881AbiKXMjx (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 24 Nov 2022 07:39:53 -0500 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA17AE06A9 for <linux-kernel@vger.kernel.org>; Thu, 24 Nov 2022 04:39:35 -0800 (PST) Received: by mail-ed1-x532.google.com with SMTP id z63so2405436ede.1 for <linux-kernel@vger.kernel.org>; Thu, 24 Nov 2022 04:39:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=/t7lNXd7tivgAb5igBDrtCfwGh/wo9NfhZ6XZkO9LQs=; b=CwAwnhaZdX9OilFLK72ch9GrUK0xeFxcVPhlg6ATs0/jojQfK+OA2PP75ZW8SGcqhZ 2IFFfE+r8r6ZxNlGsvxG55gcZf2PCYuTlv5p10KSAeIwUZQdTIjmdIHXIzKJmA6oGaq2 5n1BLEko9R0m64dyS3wXLZrQHGKyCX1/NTzzI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/t7lNXd7tivgAb5igBDrtCfwGh/wo9NfhZ6XZkO9LQs=; b=BA8MaMEr0YdeWQvuHO29+Ou+oPF/5DQr1EjocwbVwW7l4JGLJN1Uv27lWXAAO3scCo 9wSw6HJI6NOiiK/55DY3wYLCCXoWjUJRVzUAJnFZqp+PhDzBGV4eFpzF0yskCLTe4MF5 dNDoJ6pzSUfQnzZvD6JU28x1H4Aw6nGOo60jEyApeT9KpeWw4e1k6JRfIbyKuqe4iR4D TMbyERjofsirzQiMzus3ad2LQ5grs78AlXFRDGDVS3l74EEHkHXfp4XEi3RCtD20nlfK QJ2/Yc2vGq5c5MSqbHdLPYvCUf7UuHPVGvC5O3fRi+ias+6htRjePQfgIn8rPrKe/FiR kkAA== X-Gm-Message-State: ANoB5pnwjQFB9oKGdlEEWHIqjlMywA85rq2yiyXgx2gMohwXMtTgHn2s 99boMg1RPMrB/UhEVLmHIe74NA== X-Received: by 2002:aa7:dd4b:0:b0:467:65a2:f635 with SMTP id o11-20020aa7dd4b000000b0046765a2f635mr16516340edw.106.1669293574328; Thu, 24 Nov 2022 04:39:34 -0800 (PST) Received: from alco.roam.corp.google.com ([2620:0:1059:10:7b70:9ff8:7491:883a]) by smtp.gmail.com with ESMTPSA id c17-20020aa7c991000000b004619f024864sm462866edt.81.2022.11.24.04.39.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Nov 2022 04:39:33 -0800 (PST) From: Ricardo Ribalda <ribalda@chromium.org> Date: Thu, 24 Nov 2022 13:39:08 +0100 Subject: [PATCH v3 2/2] earlycon: Increase options size MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20221123-serial-clk-v3-2-49c516980ae0@chromium.org> References: <20221123-serial-clk-v3-0-49c516980ae0@chromium.org> In-Reply-To: <20221123-serial-clk-v3-0-49c516980ae0@chromium.org> To: Jonathan Corbet <corbet@lwn.net>, Jiri Slaby <jirislaby@kernel.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: linux-doc@vger.kernel.org, Ricardo Ribalda <ribalda@chromium.org>, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org X-Mailer: b4 0.11.0-dev-d93f8 X-Developer-Signature: v=1; a=openpgp-sha256; l=804; i=ribalda@chromium.org; h=from:subject:message-id; bh=LDMEvgd//6KOjPTqmpYoayiLmRUHZGWV9dd55Hylf3E=; b=owEBbQKS/ZANAwAKAdE30T7POsSIAcsmYgBjf2YAMvEHYcx8DY5+AyWKex9Y2BerkLgm3gHjPpgl Lm2EtbaJAjMEAAEKAB0WIQREDzjr+/4oCDLSsx7RN9E+zzrEiAUCY39mAAAKCRDRN9E+zzrEiNv0D/ 9m3hYtxTUDRJdqKoKkRknZf1ck19nhHvyghTUthaohqBuzLJrkgAvs4nJALziTZieMc86DW69gwDnD QQ6jU5wvwk7JiBJ7Q3rKizf8J+JDt6OGkrI3CWNRLwpUd0ocHAEv/nqzmjLoVtlTV9/sLKUqwYQuwM vjueNem+8ZClKf8wDYXy5zDqrMf/2MkvJ8Im95tFm/JWnzYxp5vCzHQLT9jjBY1Lu1JkcnOTMte93X 5odbnGsQitXvpi+kVeX3cY69OFqk/AM+P8Carsv6TLulDvkJCvs3reqIGKRVCiXNkyde781eEr+jlB F6gSAnVWb6C72lieHHdR7bGOPIaunJSTdEKl5TfzD08FnavmA1n2i/b1haMA/wxq3VkiyfrvUFDhDC k6NzwddmRtAzMdfu4SoI318lUs9mFnzETr8XamPGVMic5LmWyumFl5QDKj/9juop6/RsnK4cAZJAZq sAmpbjwxPQgbi75UQRG/Of3LxTr9FPhlbmaV37vuGrkIC+liFqHf4YP2L5wfeX/ullD3cIZpoe0+LJ +a80WcGzcvhIYi2/8xhQ3V6yJomX3QuqMtjGHVPpIUe7J43YUwbv4X52OOiEbBMvWNq2+DjDoTGkd7 yUrkKflmDRyfHfx5v7G25WwroG5Pn0GxlRRefxDH/SfUyx9RMG1+t4rWaoYg== X-Developer-Key: i=ribalda@chromium.org; a=openpgp; fpr=9EC3BB66E2FC129A6F90B39556A0D81F9F782DA9 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750381361056911618?= X-GMAIL-MSGID: =?utf-8?q?1750381361056911618?= |
Series |
earlycon: Let users set the clock frequency
|
|
Commit Message
Ricardo Ribalda
Nov. 24, 2022, 12:39 p.m. UTC
Now that the clock frequency is also part of the options, 16 bytes is
too little.
Without this patch dmesg does not show the whole options, Eg:
earlycon: uart0 at MMIO32 0x00000000fedc9000 (options '115200n8,480000')
instead of: '115200n8,48000000'
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Comments
On 24. 11. 22, 13:39, Ricardo Ribalda wrote: > Now that the clock frequency is also part of the options, 16 bytes is > too little. > > Without this patch dmesg does not show the whole options, Eg: > > earlycon: uart0 at MMIO32 0x00000000fedc9000 (options '115200n8,480000') > > instead of: '115200n8,48000000' > > Signed-off-by: Ricardo Ribalda <ribalda@chromium.org> Reviewed-by: Jiri Slaby <jirislaby@kernel.org> > diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h > index d657f2a42a7b..f555927195da 100644 > --- a/include/linux/serial_core.h > +++ b/include/linux/serial_core.h > @@ -701,7 +701,7 @@ static inline int uart_poll_timeout(struct uart_port *port) > struct earlycon_device { > struct console *con; > struct uart_port port; > - char options[16]; /* e.g., 115200n8 */ > + char options[32]; /* e.g., 115200n8 */ > unsigned int baud; > }; > >
diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h index d657f2a42a7b..f555927195da 100644 --- a/include/linux/serial_core.h +++ b/include/linux/serial_core.h @@ -701,7 +701,7 @@ static inline int uart_poll_timeout(struct uart_port *port) struct earlycon_device { struct console *con; struct uart_port port; - char options[16]; /* e.g., 115200n8 */ + char options[32]; /* e.g., 115200n8 */ unsigned int baud; };