Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp21330061rwd; Thu, 29 Jun 2023 14:33:48 -0700 (PDT) X-Google-Smtp-Source: APBJJlFzqL6TPzPbY68YRDYJnXPbqUR3nshrGqyz9DQJDytfyBDrev/stpnJuJdifhbj32nPmkD4 X-Received: by 2002:a17:90b:3714:b0:263:730a:73ea with SMTP id mg20-20020a17090b371400b00263730a73eamr629206pjb.8.1688074428001; Thu, 29 Jun 2023 14:33:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688074427; cv=none; d=google.com; s=arc-20160816; b=nUgDvKLl5t29cwsqOMP0dqSBrZ/BUW40jCjeO1nF+PLI+sW4iBr9Dqm0yDS9+Caik1 4x0oFR5VemlGDswVadxDuhLKoknrCvDWDUkowUe9ZTHBF9J1MVDhda6dqOLvieFlxD15 GvP/izIosdTa6EFrQ/oCPv8JtWjDnk+0w5mIAPN/owCuFyznDUiOkY0hRrp9mhB4V7wR fOuFq78DxlZdy6A+WmZh0v1kf27Q4M2kZPfXLM7bThiKtG1v3FXZUyD0kDWQDmoQCC9/ NREEygTGVJt/cYOoPWFOZBgDvaxpS88kwPOiHLEL/5KYg/BePlQXnxEiPjsJV5R5mwIb hB+A== 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:dkim-signature; bh=MGOWLH5yYZOQguU6z0SZDCNOwqtS2A+CXlPEXU7v820=; fh=SZaQtgxJm7A+cXbS+1VwZ7GLhQWJli1bNiv4wrYjCUY=; b=hOsP1MlZDX1hBcVN2yGitEbpABxCoy3nnKcUwXP1izWErn9vyjlT63G9/Vqg04Srro KjUESiRGPZr5WkiXG0gcvk6+8A1wdADJRr05e6jGF/nZg9ykxlpul1wgHf6qTOVid9k0 JuGUIGwBv4Nrvir6DGeG87T49Vqjy576ISX7J5fsQpzUmoL8dvLqqrwBBL/nf666vdA6 f3dNAj/6L6jIgGfI4xbu1E4ss1nsz/WXSZ/RxNXpIGc8wsqbS7+qu5u/FGvp5OqjS0wh cxalZwcfDkNPYY3vBKzxjPmq92qWZrKy1mMvS8jaJuHGEPkWplmNW92NuAFp9BuMlVTl gWdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LNr9mujZ; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x24-20020a17090a8a9800b00262ed9d4274si8513016pjn.123.2023.06.29.14.33.32; Thu, 29 Jun 2023 14:33:47 -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=@redhat.com header.s=mimecast20190719 header.b=LNr9mujZ; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231823AbjF2VLT (ORCPT + 99 others); Thu, 29 Jun 2023 17:11:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230453AbjF2VLR (ORCPT ); Thu, 29 Jun 2023 17:11:17 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 335F92D4E for ; Thu, 29 Jun 2023 14:10:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1688073029; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=MGOWLH5yYZOQguU6z0SZDCNOwqtS2A+CXlPEXU7v820=; b=LNr9mujZ6KvHRDJDlWu4hJleAuD/jeE3GSajpJgdJSBPsfxQSocy7kCVjiClvmZMVioST2 jpMrAIQd6FozyMmkq1hvCbXAAXkGbO0U7uReZQZ+WZCEsRwSgYALcTGLkEGrx+Ruk7emTK 5wU379XnSCPJ3qAmjtgKZxKPES9L4Ps= Received: from mail-yw1-f199.google.com (mail-yw1-f199.google.com [209.85.128.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-519-V-vpMZduOCeaL8TkCaPh_g-1; Thu, 29 Jun 2023 17:10:27 -0400 X-MC-Unique: V-vpMZduOCeaL8TkCaPh_g-1 Received: by mail-yw1-f199.google.com with SMTP id 00721157ae682-56ff81be091so9880057b3.0 for ; Thu, 29 Jun 2023 14:10:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688073026; x=1690665026; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=MGOWLH5yYZOQguU6z0SZDCNOwqtS2A+CXlPEXU7v820=; b=ks/VXRh9dNvaJJ36gJxOBOi/a8ncHxGqpr9LVnBX77/AWVWYDKG8jWGoswosEgHv5q xPBUkNZbPgEtyXMRN7J4tjumE1lALrFaPd65tmWv2FSpmoog+aBojm+UfVdogky5pZx0 Lx1IFiY+hf+6xZXppgovwu4vKJxUg0f2NXdbrkSOkIjKh1iPJHqELU3gdOg0o3UolD7C CtSafA6iWzyJzWsxlaN+0MIww/v9mwoUE8DZZrUBzYt+NBISaaJ9tHjsMgKEe3nj06Ax hheyaDpAvxx5vu0w2Jbha8x8Y+KxZptJvxtgPvo5DfamQ65JHGicMYKGvOwUVpLfaDVd wfLA== X-Gm-Message-State: ABy/qLafO9sUYAkfBrdhPSXuGsB8tffM2a5ZsSceD0Xd4o7XpiIcd9Od eJ365SywMU7n8OoppCzk7ihLLZdLtkCv1OyPYheTR7lg3AA6/aRi8VwQ5YnVg2WmP3BpVSrhWSa svsBEcttyqnI+YV52+CDMF+NP X-Received: by 2002:a05:690c:360d:b0:56d:a2d:d08c with SMTP id ft13-20020a05690c360d00b0056d0a2dd08cmr399998ywb.51.1688073026765; Thu, 29 Jun 2023 14:10:26 -0700 (PDT) X-Received: by 2002:a05:690c:360d:b0:56d:a2d:d08c with SMTP id ft13-20020a05690c360d00b0056d0a2dd08cmr399983ywb.51.1688073026548; Thu, 29 Jun 2023 14:10:26 -0700 (PDT) Received: from halaney-x13s ([2600:1700:1ff0:d0e0::22]) by smtp.gmail.com with ESMTPSA id a205-20020a8166d6000000b0057020aa41basm3041764ywc.65.2023.06.29.14.10.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Jun 2023 14:10:25 -0700 (PDT) Date: Thu, 29 Jun 2023 16:10:23 -0500 From: Andrew Halaney To: Andrew Lunn Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, netdev@vger.kernel.org, mcoquelin.stm32@gmail.com, pabeni@redhat.com, kuba@kernel.org, edumazet@google.com, davem@davemloft.net, joabreu@synopsys.com, alexandre.torgue@foss.st.com, peppe.cavallaro@st.com, bhupesh.sharma@linaro.org, vkoul@kernel.org, bartosz.golaszewski@linaro.org Subject: Re: [PATCH 3/3] net: stmmac: dwmac-qcom-ethqos: Log more errors in probe Message-ID: <20230629211023.pznzgue6arn7fzfl@halaney-x13s> References: <20230629191725.1434142-1-ahalaney@redhat.com> <20230629191725.1434142-3-ahalaney@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, 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 On Thu, Jun 29, 2023 at 10:32:24PM +0200, Andrew Lunn wrote: > On Thu, Jun 29, 2023 at 02:14:18PM -0500, Andrew Halaney wrote: > > These are useful to see when debugging a probe failure. > > Since this is used for debugging, maybe netdev_dbg(). Anybody actually > doing debugging should be able to turn that on. > In my opinion it is better to use dev_err_probe() as done here because: 1. If it's -EPROBE_DEFER it will be under debug level already 2. If it's anything else, its an error and the logs are useful I've ran into both ends of this now (failure of a platform dependency to load, be it a bug in the driver, or just failing to select said driver), and I've seen issues where new integrators (say you're bringing up a new board) leave something out, etc, and run into issues because of that. Thanks, Andrew