Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2300156iob; Thu, 5 May 2022 22:27:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOrAIW8e3bQ3GVR5pMeqF1jwmmxy0mn3J9PmvSBIIoL37dlA8xTcz2iA74sGDNZs0GocT6 X-Received: by 2002:a17:902:c94d:b0:15e:9f59:9aa6 with SMTP id i13-20020a170902c94d00b0015e9f599aa6mr1842484pla.70.1651814877298; Thu, 05 May 2022 22:27:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651814877; cv=none; d=google.com; s=arc-20160816; b=g5GMcrUfGyV9sugATMDiNfLY2znRg03QyLLHp6HJ15Mhbhyd/AIhSD+qTGy28EFH/d VHuX9+V3yW0Y/vW8AN2MEOLWVfax7q8fjxcVZKP7BwNqH15n5Ree0GRAKi9OwVI2Rlzr hdVG5+K5LfB4jiv+ytk60+yINSPxjUOq4ibsxn5+BSTSrVvqP+Vj3z8sHV98m6SpUAvX 6FhK3mB6kJEzkLn+bhUANXwkWPs19pd1sOpHLJjFywSxGkunK/C339Gb0WFZVy+CzNbe 1XqW9HsFqihaRAGjqHTaYKZqvCkftkCBT9x4R6DrVOOj85OYdwVg1SfK1FVqG6Iu9ZlV i3cQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=0Z2tAyuXJ2G8TQGMoA7qoRUbkCt0St3JcEbhKdeJn9o=; b=l3t5FFr7jVlyw2dTzRFi7rc3S4ZC5s6XxuTpBohvehmola+F6t2kuPCbxogsvANvHi Pf3HzYEMvLC8b+bfdub0DcHjO2k/dB4T9I/caRFaXI+/ON/Wz64tZRtDQVfOgfNDtnAV +Jg1XOsJsC9QR2zfz6Xj5XTkR3RhHP07BtSXYp5SAFjaRjj3iEuqzKMGn19mYaEVk0kj zXlxbGLatxc2sjOfx6Sk3wjnOaXIWmmY2mfNy5FdhiCOdpUnrLQPAnhpNjoQI8ZkG+Av WCIiKUxuhzL8csFATOdyVLsrWfbi/TJJnuQXjvgsZNKn27yPrVQDm5KhF/gUiCaS9Ka/ CMsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Z+Hk8NDO; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v9-20020a170902b7c900b00153b2d16643si1029297plz.587.2022.05.05.22.27.43; Thu, 05 May 2022 22:27:57 -0700 (PDT) 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=@linuxfoundation.org header.s=korg header.b=Z+Hk8NDO; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358706AbiEDRjA (ORCPT + 99 others); Wed, 4 May 2022 13:39:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356829AbiEDRJp (ORCPT ); Wed, 4 May 2022 13:09:45 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E58812CCBD; Wed, 4 May 2022 09:55:52 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 96BE0B8278E; Wed, 4 May 2022 16:55:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 39706C385A4; Wed, 4 May 2022 16:55:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1651683350; bh=Lu2E1I2yiHFlJN+E/H9ofPZXowvZgsabxZMdN2uM2cI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Z+Hk8NDOSpqEpCYOqI/TSDsg2c0L5tQgGBENlbjvURRjj1nrEEqR/9ojPHekju0iK tSiNRVQmZs5Da1Uh05NGNg9giHIRreZ1gLwtlhHhzOx61C/MHQpSfPiJeOF2ElbVM8 WSpjCoH1mb7zRjZ9GYNZtFajskFP0Lp7zVnnnuu0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Maciej W. Rozycki" , stable , Andy Shevchenko Subject: [PATCH 5.17 037/225] serial: 8250: Correct the clock for EndRun PTP/1588 PCIe device Date: Wed, 4 May 2022 18:44:35 +0200 Message-Id: <20220504153113.515763636@linuxfoundation.org> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220504153110.096069935@linuxfoundation.org> References: <20220504153110.096069935@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Maciej W. Rozycki commit 637674fa40059cddcc3ad2212728965072f62ea3 upstream. The EndRun PTP/1588 dual serial port device is based on the Oxford Semiconductor OXPCIe952 UART device with the PCI vendor:device ID set for EndRun Technologies and is therefore driven by a fixed 62.5MHz clock input derived from the 100MHz PCI Express clock. The clock rate is divided by the oversampling rate of 16 as it is supplied to the baud rate generator, yielding the baud base of 3906250. Replace the incorrect baud base of 4000000 with the right value of 3906250 then, complementing commit 6cbe45d8ac93 ("serial: 8250: Correct the clock for OxSemi PCIe devices"). Signed-off-by: Maciej W. Rozycki Cc: stable Fixes: 1bc8cde46a159 ("8250_pci: Added driver for Endrun Technologies PTP PCIe card.") Reviewed-by: Andy Shevchenko Link: https://lore.kernel.org/r/alpine.DEB.2.21.2204181515270.9383@angie.orcam.me.uk Signed-off-by: Greg Kroah-Hartman --- drivers/tty/serial/8250/8250_pci.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- a/drivers/tty/serial/8250/8250_pci.c +++ b/drivers/tty/serial/8250/8250_pci.c @@ -2667,7 +2667,7 @@ enum pci_board_num_t { pbn_panacom2, pbn_panacom4, pbn_plx_romulus, - pbn_endrun_2_4000000, + pbn_endrun_2_3906250, pbn_oxsemi, pbn_oxsemi_1_3906250, pbn_oxsemi_2_3906250, @@ -3195,10 +3195,10 @@ static struct pciserial_board pci_boards * signal now many ports are available * 2 port 952 Uart support */ - [pbn_endrun_2_4000000] = { + [pbn_endrun_2_3906250] = { .flags = FL_BASE0, .num_ports = 2, - .base_baud = 4000000, + .base_baud = 3906250, .uart_offset = 0x200, .first_offset = 0x1000, }, @@ -4115,7 +4115,7 @@ static const struct pci_device_id serial */ { PCI_VENDOR_ID_ENDRUN, PCI_DEVICE_ID_ENDRUN_1588, PCI_ANY_ID, PCI_ANY_ID, 0, 0, - pbn_endrun_2_4000000 }, + pbn_endrun_2_3906250 }, /* * Quatech cards. These actually have configurable clocks but for * now we just use the default.