Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8644234rwb; Thu, 24 Nov 2022 02:19:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf4TtTCEk/gOse68O+zRmCp2GNpuPS5MlJ+1kVkwAnd2RbnP9KJfaOTC2HxFw9YIN7pZnD5Q X-Received: by 2002:a17:902:eb42:b0:189:1368:de88 with SMTP id i2-20020a170902eb4200b001891368de88mr12825308pli.67.1669285140106; Thu, 24 Nov 2022 02:19:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669285140; cv=none; d=google.com; s=arc-20160816; b=Q0/2B/fqHYtLhZWxFNMqfX1M24g5kkQYXlharNDARwqylIHvmEd9feZiMWcoxACYml ueVmmDNClceOFHdulp/v8lSHNuWp0FXofwyb862/POlaor0VRuPN5/klic4wU6O1tw/e iA9mcmTLt8n28kCXYJIzhkz7iMvJq1WC8lW5GNvVMC0WbSrNM5BX5c/X8UwlziyKk0pG VgI6c77AEg2R8cwzHZgJYFExkhLH3duSgudVgO+7jSmip/wl6LHDacvlvQXJXDgn9bEj WvcxgwrYpvxfVGZhLLWpqvRmFb/kCA6FW4HopoOxbPfeofxS7bdMcl8Dqaiy+ZRODrCb jWkA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w9-20020a170902d70900b0017dafc02313si642376ply.92.2022.11.24.02.18.48; Thu, 24 Nov 2022 02:19:00 -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 + 87 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 ); 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 ; Thu, 24 Nov 2022 02:02:41 -0800 (PST) Received: by mail-ej1-x62e.google.com with SMTP id i10so3023733ejg.6 for ; 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 Date: Thu, 24 Nov 2022 11:02:17 +0100 Message-Id: <20221123-serial-clk-v2-0-9c03ce8940d8@chromium.org> To: Greg Kroah-Hartman , Jiri Slaby , Jonathan Corbet Cc: Ricardo Ribalda , 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 To: Greg Kroah-Hartman To: Jiri Slaby Cc: linux-doc@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-serial@vger.kernel.org Signed-off-by: Ricardo Ribalda --- 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, -- Ricardo Ribalda