Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1153359ybe; Wed, 11 Sep 2019 10:10:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqw/nB3IWVlvsLsT2HObCHxrVSYRTQyYzS1j44PTyxjbhzYN19qvolwfmGbCG+F7qz5wrArl X-Received: by 2002:a05:6402:651:: with SMTP id u17mr30223714edx.59.1568221813075; Wed, 11 Sep 2019 10:10:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568221813; cv=none; d=google.com; s=arc-20160816; b=DP6m1dcVFDY2JNLLCMEaLF8gu/a6Nfcm+Tu3b5qLUb6NwXowgToq5skRVIu942ampw 9T8HL0TVGAg7nMBQGqLNX50egfu96X8QPPNwF90mgaeClMZAqF/Zcy/hVbGqWfUi03o0 k5KT9Rpq6u5l8SEBqKHOYJv2s8t82lrAy3VzGaFWG4e+ewYfDkXPppN6U6Yn0sq9eleu l9Rw3A+7JSx9ZOe17HhbLEcdWBvVJADacOb7y0tqV25+q9L4DY7zX9aKUOgOWcn+u9Df sL1POM1m0GAPptmxvgLzuokezo1v1MIXHiGIiGNYmUOCVBtHLWbbOsE41TQtR9OG+A+T KdQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:from :mime-version:dkim-signature; bh=WOq5+7XVoPxuMvtL+l86brUuffl5eEcrVPzxLYxuj10=; b=a3SnVHI2CZZtUdvbfo/8sUv9pQBJ0bqIQNfhODB1xQviOHjhmQ+jU3ru0iCLR9V/cX M4aFikBY/1cpOM9nhUCosIiEIn4bvOrpVLz1XhZ6mX8Vn5belUjAx4nbz96jvyCW2jjj aXThQUo8DpmgsvPFpfbm/mv7Ea+KYc5R7D2X4C7uRvS308pBQJRCoJ7iosc49mkPlQcf qTUUw+hlm2ZKF8xSF41duPo9CrdHwr4yWR7fpDPGPBfFavWe8qImYLGFy5Cs7JeOsDeH pQ1Lyy/xRTOgmzA13HBAvO0ifJjHGnRNcsqoShvB3BMYPcBKQ94nWm09d7/1LRStzGGl 4eKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=h1u8NEHm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t58si13842091edd.220.2019.09.11.10.09.48; Wed, 11 Sep 2019 10:10:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=h1u8NEHm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729477AbfIKREb (ORCPT + 99 others); Wed, 11 Sep 2019 13:04:31 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:41146 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728937AbfIKREb (ORCPT ); Wed, 11 Sep 2019 13:04:31 -0400 Received: by mail-qk1-f193.google.com with SMTP id p10so3516996qkg.8 for ; Wed, 11 Sep 2019 10:04:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=WOq5+7XVoPxuMvtL+l86brUuffl5eEcrVPzxLYxuj10=; b=h1u8NEHmO9x8w9CMEXV1ytXnb22fSDNFPlOisyUFURX+akP1Q7bElm0ZnyKj6sIHjz VWeL6pZnjessX1+HQU32egYArrREXvHLKfD2P5y4YP+ZgL35LoS91ZS+1uTnB98TRXYp fDtHWI+NCt9z+42BbM3n1vzvfINWhXruSkrc/3pZAuuTwyZVgk9CE7GPQJlJGhmnLewV tAr5lTtqsXNl2FFBKULTzeCwW7LJKanqunMB6lEPvoghzeanD1yy3T7ugzMbtfvRDk4X MhPoBY6YGJODVbDjtv2FJL1YOohHCAXTJGt8MpOLiqzwUT27nupvBST01M7s0Cq85WYk 30Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=WOq5+7XVoPxuMvtL+l86brUuffl5eEcrVPzxLYxuj10=; b=Tvd6iSzU4imaHFjDMQCOdZegKCZjTolmRgPxCpobURrPAorCcG0trNdY4/2hVOFh5I wEwRz5KQpELU1WgR0DotvZVghafV2nhqocYB+qPGWhGqDevD+URDke27redKtYvwCQK3 HBWlyS5HpmwyPQpcuS5BhQ0Umqw9ximzYgIpAIPkR15un11ibL37Lqn8WXz0/KLdr2IX 0t2IKo33rbwlDd3u/kaku7QYP+f0i+QFGqhLrCLeVZ+8I7jzEcMepzVyK2X7dVVUWadC ujFcaUDmd9nngJ/8f9Ln+5MDQkUpsCv3mgY5KAZ6/b87raJI8eLp33Eek6VdPrL7pxwF 7r7Q== X-Gm-Message-State: APjAAAUN2ad6dWp84d5GShSS5XOzloRagIRtb6PIIxE9kH+tJOl0jn// CTcM64PMjv+kOmJWYPHY07mAW4YJeiWbh4lHJ4s= X-Received: by 2002:a37:92c6:: with SMTP id u189mr34619324qkd.69.1568221469858; Wed, 11 Sep 2019 10:04:29 -0700 (PDT) MIME-Version: 1.0 From: Paul Thomas Date: Wed, 11 Sep 2019 13:04:19 -0400 Message-ID: Subject: Regression: commit c9712e333809 breaks xilinx_uartps To: Shubhrajyoti Datta , Michal Simek , Kroah-Hartman , Sasha Levin , linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, As I was working with a recent 5.2 kernel with a Zynq Ultrascale+ board I found that the serial console wasn't working with a message like: xuartps: probe of ff000000.serial failed with error -16 I did a git bisect and found that this came from: commit: c9712e3338098359a82c3f5d198c92688fa6cd26 serial: uartps: Use the same dynamic major number for all ports One difference I might have is in the device-tree, I'm using a proper clock config (zynqmp-clk-ccf.dtsi) using the firmware clock interface. This is absolutely necessary, for instance, with the Ethernet negotiation where the macb driver needs to change the clock rate. In any case I believe this pushes my case to the -EPROBE_DEFER when devm_clk_get() fails the first time, this might not have been tested in with the original submission. I'm not sure this makes everything completely correct, but the patch below does fix the issue for me. thanks, Paul --- drivers/tty/serial/xilinx_uartps.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx_uartps.c index 9dcc4d855ddd..ece7f6caa994 100644 --- a/drivers/tty/serial/xilinx_uartps.c +++ b/drivers/tty/serial/xilinx_uartps.c @@ -1565,6 +1565,8 @@ static int cdns_uart_probe(struct platform_device *pdev) cdns_uart_data->pclk = devm_clk_get(&pdev->dev, "pclk"); if (PTR_ERR(cdns_uart_data->pclk) == -EPROBE_DEFER) { + /* If we end up defering then set uartps_major back to 0 */ + uartps_major = 0; rc = PTR_ERR(cdns_uart_data->pclk); goto err_out_unregister_driver; } -- 2.17.1