Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3289723iob; Mon, 16 May 2022 18:17:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxT2LIDXmjK/0neqCOG+QX9TBmys2KUTyyCrsyiQk/jQl7rMw3ANKSl8MJSAKKW3t0YTIbl X-Received: by 2002:a17:907:94c5:b0:6f4:6de1:399c with SMTP id dn5-20020a17090794c500b006f46de1399cmr17960514ejc.336.1652750226510; Mon, 16 May 2022 18:17:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652750226; cv=none; d=google.com; s=arc-20160816; b=poZus0OXeC1OQtpFd77D6of9QovdtWWroSON8Cus3T2i5q+NadIX5zxkrwuzPzrvYz 9Y4+J1JEmLaivXyIfltO5yOR0YVqiKPJejzIz1bpx49vh4VyCMwQCNFNBK1LVDCr1N1x auKQc5oedL6lKp5j7CaBzQpdb5p57gYaqSCeMN7gnJOBWAnJcXaS8dlak3LFRQEdQvS9 f2ZjEjsXKEjLGCvhEp0hkGOtDIkS1l1b2/sVhqn+yIwxPD9aENcvwmf8T5cS/FZaViKZ yOCgMMQvpFG3mQPMFbq8+i7PANt8HfrkJVWB5TzvjPo/eOSvK5l9ldzuoguGZwLsEx2b 0cIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=fQwPmeMbnyVUc/1zZOzdiaGv8oZUwRX2AH24X74Xh80=; b=yk9+uE5asuWqbmsl6WvMUJIxkNPx980ziYHL/KJmhmb9dLxKf5CWAy/oEzLNpVZiW1 nWC1uC7KrJ/Y4FdTEEiqBNhXPOaWT/hLotVY6YyyZ+mIl06u5eZTuNGK5hEqhe/u6mVd moDhPNG7+cKDupOhAD5QQndJh1KCF6EjThDdO+IrwtTRCPa9Vg/rkW7Uzbe2rgE+rZaU lMo2dN9Z65bDaX2Fv40XQ8fdBs5aQYIBaMGv35HKT5lbcFmOci0tndVew0FahXiWY3l8 3GozsCK5RbTWmslMpkLpPhuQk2lu2me+XDbkVP6C+bvFciTaGnT+Ugos8N1iVABn3hHj b5oQ== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d6-20020a50e406000000b00425d57ed768si11975317edm.344.2022.05.16.18.16.41; Mon, 16 May 2022 18:17:06 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348340AbiEPUlM (ORCPT + 99 others); Mon, 16 May 2022 16:41:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349511AbiEPUij (ORCPT ); Mon, 16 May 2022 16:38:39 -0400 Received: from mail-oi1-f180.google.com (mail-oi1-f180.google.com [209.85.167.180]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56B8A50468; Mon, 16 May 2022 13:18:50 -0700 (PDT) Received: by mail-oi1-f180.google.com with SMTP id l16so20025809oil.6; Mon, 16 May 2022 13:18:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=fQwPmeMbnyVUc/1zZOzdiaGv8oZUwRX2AH24X74Xh80=; b=A2x3lV8LGGh+z8ow3JABCYcrBFA6nrOPr8VI6T4UWrYBLobYhEsBxKh5lZlIWTlnBO stvTidEPCOg7tDZcKLuL4WY60/lbMdMddj0NHAedYVngwspZwecYtUjj3hrKZzFI2bU1 E6CAxHo5d+X9CdwF20uK1z7co4klBOF88wEWwTsuUnZyzq3WCcIvzwOMpaZEMxRvj64X QtXHO7z7s1CY0lggw40nO6F3RAR2e9USWFPNwuHtglC7XppufjI2ozZe0Rnvv0xiG6gC qAv33VEROw0yjO9SsJ9mmwTmh0uEGFp5Dzkr/pHAq7UnN3Tutritnm9HYDS4e/dh89qd JXxw== X-Gm-Message-State: AOAM531AlB5V7KcIl0r3qWxjK8Z5WIpSJu8JoUNPiv/mz7cjY2fH7NJL JI4E3yLOpdKhfjyY1am43w== X-Received: by 2002:a05:6808:130b:b0:326:d1ff:b56f with SMTP id y11-20020a056808130b00b00326d1ffb56fmr13702343oiv.222.1652732329632; Mon, 16 May 2022 13:18:49 -0700 (PDT) Received: from robh.at.kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id g18-20020a9d6212000000b0060603221260sm4331069otj.48.2022.05.16.13.18.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 May 2022 13:18:49 -0700 (PDT) Received: (nullmailer pid 3205772 invoked by uid 1000); Mon, 16 May 2022 20:18:47 -0000 Date: Mon, 16 May 2022 15:18:47 -0500 From: Rob Herring To: Serge Semin Cc: Jingoo Han , Gustavo Pimentel , Bjorn Helgaas , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Serge Semin , Alexey Malahov , Pavel Parkhomenko , Frank Li , Manivannan Sadhasivam , linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 03/17] PCI: dwc: Add more verbose link-up message Message-ID: <20220516201847.GB3073005-robh@kernel.org> References: <20220503214638.1895-1-Sergey.Semin@baikalelectronics.ru> <20220503214638.1895-4-Sergey.Semin@baikalelectronics.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220503214638.1895-4-Sergey.Semin@baikalelectronics.ru> X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Wed, May 04, 2022 at 12:46:24AM +0300, Serge Semin wrote: > Printing just "link up" isn't that much informative especially when it > comes to working with the PCI Express bus. Even if the link is up, due to > multiple reasons the bus performance can degrade to slower speeds or to > narrower width than both Root Port and its partner is capable of. In that > case it would be handy to know the link specifications as early as > possible. So let's add a more verbose message to the busy-wait link-state > method, which will contain the link speed generation and the PCIe bus > width in case if the link up state is discovered. Otherwise an error will > be printed to the system log. > > Signed-off-by: Serge Semin > > --- > > Changelog v2: > - Test the error condition first and return straight away if it comes true. > The typical return is better to be unindented (@Joe). > --- > drivers/pci/controller/dwc/pcie-designware.c | 22 ++++++++++++++------ > 1 file changed, 16 insertions(+), 6 deletions(-) Reviewed-by: Rob Herring