Message ID | 20221123-serial-clk-v2-0-9c03ce8940d8@chromium.org |
---|---|
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 q4csp3300074wrr; Thu, 24 Nov 2022 02:08:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf6FyojSSPFJGH/rGhcN/abFPgza4LLy3larVq6sUjsvLXQRaMffKQdPXMLh1X4nvcYRmbYA X-Received: by 2002:a05:6402:2409:b0:45c:935b:ae15 with SMTP id t9-20020a056402240900b0045c935bae15mr7205646eda.357.1669284498869; Thu, 24 Nov 2022 02:08:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669284498; cv=none; d=google.com; s=arc-20160816; b=v2UXVpvzMJqkPeSd3xT3vMcMp8GSS7GcjA9YCTBEkrOE40UEQwy0svYSU3VBZuce2M +tz463lYCs/MtnnF35m3+eJXCYmTgstXrLoclmo4FKXX/2HEI0OwSb23KJLcNaHc8P8C 7bUk2UqoMpna3h/3ca/6DvdKSCSr0jyD7Hp8AKvGT7oVn77uV2SKj+jnlsy4xINZQeBq 0VKy1kTTXF42j1pVmkQtKd2h4oSRJIBuuqJDJL7FIAo85cCxlASc5SrDh5HDDWeuWcjk RMOJK3IFKs4OwCw+DuzVDIVuUaVOjX0Rb1SHkfzDUFXMV703C9iTibPblr6sJIb2i/pF 123Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:message-id:date:from :content-transfer-encoding:mime-version:subject:dkim-signature; bh=6eIMyEhsOzzAGNHE3cNtx6ptsH6jAPHZtkqtEKGyaLk=; b=udi3UE+PbhqQ7eh45Q4W/uRCTt/3KeSNWGc4YLi57r75rdPDLyqkPTXrGTabaqtwzU mU+uEHtxNIWc9MS8iwKTrnGlZ+41sCirVDb3S+iiR4DwsPASrfT+Pmj4RsR7z0Xfnp/m XcpX58VllcQ967QnaB7KD0RZr+DGH6TxIvjre2ex64mDixglGw4ry+vQVXmULD4VettJ Hf0NXQxOqZlPJX/tPsQpu0Nb/sw6jE1ibkpNObiHDUvG4eaEosSshmHm9pQOtU51bXFK ATHpofj8f/FyZtT6jDlvgmB7clBliXOqrDFeC/xcthqbPeG/9XZRiSuf9C/PWDS8C0B3 +BHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=mtzCPunr; 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 v25-20020a50d099000000b004637e16cfa4si534213edd.599.2022.11.24.02.07.54; Thu, 24 Nov 2022 02:08:18 -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=mtzCPunr; 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 S229982AbiKXKCt (ORCPT <rfc822;fengqi706@gmail.com> + 99 others); Thu, 24 Nov 2022 05:02:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229669AbiKXKCo (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 24 Nov 2022 05:02:44 -0500 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88AC218E36 for <linux-kernel@vger.kernel.org>; Thu, 24 Nov 2022 02:02:41 -0800 (PST) Received: by mail-ej1-x62e.google.com with SMTP id i10so3023733ejg.6 for <linux-kernel@vger.kernel.org>; Thu, 24 Nov 2022 02:02:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=cc:to:message-id:date:from:content-transfer-encoding:mime-version :subject:from:to:cc:subject:date:message-id:reply-to; bh=6eIMyEhsOzzAGNHE3cNtx6ptsH6jAPHZtkqtEKGyaLk=; b=mtzCPunrgB/P4FGyrvH+DJw4yWdymYTEbEp8pjtcBr7oqMYTrx/CHjO4ukHDj9ufdZ qVpa1iTuQhTCnV+Sz2cwNnF8Haw6yST+J4kfhkXn2ShIB1GIJclhxjHFgnPLDdTLAWoX ruLygMOr4hmDnnAIbvz0DrJWebV57wXeuvHb4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:message-id:date:from:content-transfer-encoding:mime-version :subject:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6eIMyEhsOzzAGNHE3cNtx6ptsH6jAPHZtkqtEKGyaLk=; b=JDg5HBIpwRBLBsEgUhBMNUOC/Cacmd99wDtZKm1ttaqqMyhDocnjyUrC/42EknsKcF kg9GIytDBXxnFcWu5iSFiGdDS8Rxn+LibcuG/rEJ/mqFbZ15jqwEl+j2xBwX+oETEidj 5VfQ0WbGjlVKMcC/os/TPsWzofG959RUH2fy2SYXjjMof1w4/+Y10JVIzQ66Zd06/Q5n ur4eMoIl58wIUjp2FE5J/NpV06iEIUke6usNIXb9V09OkXwTo/SYO7BxLDKL+z5eT3fb HuV1s7T05cutJgKLc7zps69GzlCtbYvaGshOUqIUyObIk5Ef/b/9YsbyZ4mAT75gU1u8 mYqQ== X-Gm-Message-State: ANoB5pkFezVm4MRyIF2XqUGliRu5WJH3t/5Yi1mj+yKUXPB/jx4EHkJ/ Xa7R/oe73GOVaHrRqUX3IaKzTw== X-Received: by 2002:a17:906:2e83:b0:78d:b3f0:b5c0 with SMTP id o3-20020a1709062e8300b0078db3f0b5c0mr27904342eji.141.1669284160088; Thu, 24 Nov 2022 02:02:40 -0800 (PST) Received: from alco.roam.corp.google.com ([2620:0:1059:10:2a85:84f4:13a1:b293]) by smtp.gmail.com with ESMTPSA id i29-20020a50d75d000000b0046a44b2b5e6sm335548edj.32.2022.11.24.02.02.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Nov 2022 02:02:39 -0800 (PST) Subject: [PATCH v2 0/2] earlycon: Let users set the clock frequency MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-b4-tracking: H4sIAClBf2MC/22NTQ7CIBCFr9LM2jEMFmtc9R7GxRSwECkkYJuYhruLrl29fC/vZ4dis7cFrt0O2W 6++BQbyEMH2nGcLXrTGKSQkkie8JvngDo88aLMNAhiw2qAVpi4WJwyR+1aJa4hNNP58kr5/TvYqMnt 79ZGKJAeQqme+zMbGrXLafHrckx5hnut9QPaKpgyrAAAAA== From: Ricardo Ribalda <ribalda@chromium.org> Date: Thu, 24 Nov 2022 11:02:17 +0100 Message-Id: <20221123-serial-clk-v2-0-9c03ce8940d8@chromium.org> To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Jiri Slaby <jirislaby@kernel.org>, Jonathan Corbet <corbet@lwn.net> Cc: Ricardo Ribalda <ribalda@chromium.org>, linux-doc@vger.kernel.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org X-Mailer: b4 0.11.0-dev-d93f8 X-Developer-Signature: v=1; a=openpgp-sha256; l=1154; i=ribalda@chromium.org; h=from:subject:message-id; bh=ipQ2kNvTA4ADg+/HdXcEtkOOhqoFcmX4YejwFb+YLHY=; b=owEBbQKS/ZANAwAKAdE30T7POsSIAcsmYgBjf0Eu/uudDGFjuS9xXphy6PjsIC4Mgo34NdDc+Jw0 Fz4exfKJAjMEAAEKAB0WIQREDzjr+/4oCDLSsx7RN9E+zzrEiAUCY39BLgAKCRDRN9E+zzrEiD2ED/ 9Iml3PgJm8eNS34z07D3DLehC6bG0ENU2k6WqsGGq6Zs1d3g1jdZ8OZ0MAIxUc+ppnnALv8VuZEMlD EgZOkjNXmPlz69oYUZ1LFUeh2wHzZLCckkaW79f5Z/bivxGRy3TvP0d3Cj49RQqO2qwJ2zQvZPO8Pm HbRBDmjwWCmD++Zg6g226sipjBNSWs7Ktsxykmzk8QSFYBnU93F2UwBVeJIzFViybo+4RBzfdJN0mQ fTyg/gtPG0kLvLZzf12i+AVKPlZ+WaNMeSlYNhMl6sCgF6z3+T+kb1ld4ZYR8XVPD/tk5y2pTp+6Dz e2XvOAHrpja1BBr0kddUDass+E2sySjOa30IgTmWXTME9SJDIG5iLN5JXjMb7ZQ4AWEZPf+fb+9ORI HLAkkFQwEFNVQaJP3S/K4SZRmYYSe4yvE8WHbPkbrBEyO8OlGQh0FDnStahNlPishusmlaYB58vfVh 7Nd8VCC+uuwlAH5S0ySjnMgK+vyqiKWkfEwhn2ChACnKfaFBwpLaIauJ7tMmnSCwetNjNJ6k1Fw3ZR Q7jl6KHgnJxUImigv+2ttFewBJ4TaI6+c9Abs0lAQFLxO9RC20tep9jSVnTZOSn4V/UJh531ivkS+X mkmKYESu3r2pO2mdz6MXMcii+LRYGUHrhWJX4yytFBtXuqmOt5HacL054Y6A== 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=ham 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?1750371662522889240?= X-GMAIL-MSGID: =?utf-8?q?1750371662522889240?= |
Series |
earlycon: Let users set the clock frequency
|
|
Message
Ricardo Ribalda
Nov. 24, 2022, 10:02 a.m. UTC
Some platforms, namely AMD Picasso, use non standard uart clocks (48M),
witch makes it impossible to use with earlycon.
Let the user select its own frequency.
To: Jonathan Corbet <corbet@lwn.net>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Jiri Slaby <jirislaby@kernel.org>
Cc: linux-doc@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-serial@vger.kernel.org
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
---
Changes in v2:
- Add a patch to fix handling of baudrate
- Use kstrtouint instead of simple_strtoul
- Link to v1: https://lore.kernel.org/r/20221123-serial-clk-v1-0-1f0554a46ad1@chromium.org
---
Ricardo Ribalda (2):
earlycon: Replace simple_strtoul with kstrtouint
earlycon: Let users set the clock frequency
Documentation/admin-guide/kernel-parameters.txt | 12 +++++++-----
drivers/tty/serial/earlycon.c | 17 ++++++++++++++---
2 files changed, 21 insertions(+), 8 deletions(-)
---
base-commit: 4312098baf37ee17a8350725e6e0d0e8590252d4
change-id: 20221123-serial-clk-85db701ada57
Best regards,