Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2007895iob; Thu, 5 May 2022 13:08:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkCeoCZZCB6TYfP1e4+zpg0sg2lmjWc4WXArd4/RQaF4yis49kZ7BC/AYK5z1jdPQ9J5/i X-Received: by 2002:a50:d585:0:b0:425:c9db:cf26 with SMTP id v5-20020a50d585000000b00425c9dbcf26mr32099884edi.222.1651781299126; Thu, 05 May 2022 13:08:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651781299; cv=none; d=google.com; s=arc-20160816; b=Loqd0eqrFA+GV9KYtl/XdnEeaVgnRMzvsJrtPeF5C2XXRKjhfwsZ5zs83mAGjbYbI2 4EukJVNDyxDQOOjAT5hvBm5rBtIP2OiHAPs1PIEm97m94bTY43fyWPEl5Hn+bzJe4bhp xFga4XHjKbW4sbHKmOUoEyqZXwv3pfb2ih+4XwCzjn6YiQ65sjs+jAdRy9yWbpkyjLbR zo0SosPnYUPCFmuHxQiYmZKQnOeATrqVQQMh03z7jc4H9wngyptqdG6+LmzQUeo8O5gR iF+/M7uOBwfT7Sk6BMyY1D2qt0exV/3tl1VCdii3AIww4X+jBu+cgCdZGMCyfOsb7aRa EFYQ== 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=0IRBvCVQRHz+8TR/Yg3IigrDyMnlg2R7nVfA+6FToYg=; b=X2hZzJAm970d+kykJd8RCWVb1BWVhqJVPChMw8MziRQ48XdXpFXQoH93QPx9rOGjtr n4Hgr62V9Ew/9tp0gZeuKN0YT6JwkZR2bnggsnnpN4wR6mEGuWcWptJlKQmtgglb7qZV MIfU5ADLJwU6MqFbc/ZfLklUQ4lETuum31hMKqYt6rHcHtImnt5aOTx2qUPzSNZ0t5/b BbhoH3EimHbKML0mszTmSDo3OVoqig8/I0uKr3rTiExly+miqpHjj33L/ybop6JEuO5A 3dM65FsEiKk9IQdcYBxc2KjiyX91N/0F6blGqnn9mdx8iFLoSku9se5/Zrn8canQnpAk 8CLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="te/gJSen"; 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 n16-20020a170906379000b006f4d72b4b6bsi3224307ejc.58.2022.05.05.13.07.47; Thu, 05 May 2022 13:08:19 -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="te/gJSen"; 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 S1357473AbiEDRYa (ORCPT + 99 others); Wed, 4 May 2022 13:24:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355451AbiEDRE2 (ORCPT ); Wed, 4 May 2022 13:04:28 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 413354EDD5; Wed, 4 May 2022 09:53:03 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 8A11A6187C; Wed, 4 May 2022 16:53:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D2462C385A4; Wed, 4 May 2022 16:53:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1651683181; bh=x8G22Ng7RWDsPwQOr8gdim+d/zY5BI66fM3f1eXtDCU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=te/gJSen7R7IQSovytYODXXweBgSMkD9pWPQIlIk3xzDIx2O4c1JLb7c1g1DwpySI Qhhpf37I21y43H3g9kEvWN4OeqAX0pFWwaWuf0D4vP4HXkIMd0YwatXKedYQuqcj9e vR/qQb1TvhlUtVbhlilQkzmVgqmOMRBswLc4iQU4= 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.15 032/177] serial: 8250: Correct the clock for EndRun PTP/1588 PCIe device Date: Wed, 4 May 2022 18:43:45 +0200 Message-Id: <20220504153055.859411631@linuxfoundation.org> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220504153053.873100034@linuxfoundation.org> References: <20220504153053.873100034@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 @@ -2940,7 +2940,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, @@ -3472,10 +3472,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, }, @@ -4418,7 +4418,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.