From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 59EAA26D4CD for ; Sat, 18 Oct 2025 09:48:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760780899; cv=none; b=ThtHhEHESvQ01J475c+WkKsuw862htE0iMcuWBS+7foqFiGdY1fdgE/F5M2SMtMOZp8VBe6Q7Mc+4ugLa/D7NAfPqe6W7XzUWPQHXTTjoDfPIR9I5pSu9ex8cJVIgn6bzTkynOK6mtmjH58BdaLGoCWH7eN5foaihZQepyEvyCY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760780899; c=relaxed/simple; bh=A7f0rcwMMhuOxtJjZ+3BE68ZThRKtbmxH6yOW94VjA4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XAR0W7snnFC2jFqkSVlw/3iIhyur2vRfyVs6TNkBas0W1658OFBs29SFuI1Wd5XymV+cVT1YyWU4xQaG14FClgVvTjVPZ3IT8bI5m7emVsTd5a8vBI0MEIErZXeqGdnIRcJMcIdEW4BVf9AQ2YDrd5ZUriX4B6qrUMzTVMYN9fc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=XdJXgugo; arc=none smtp.client-ip=209.85.128.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="XdJXgugo" Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-471131d6121so21505065e9.1 for ; Sat, 18 Oct 2025 02:48:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1760780896; x=1761385696; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=nhWVuNwxLp4oDhy9Y7Je0Sd3r/8yjdmEN4SRPPZ/YRc=; b=XdJXgugoJiC3tqkUxYfdqivCVFYy6DumHxlnfX8Ks8xVTD+WY3bGL7AO9PFHGiaIcT ugesKfl6+T5DM3XVJQzm9zLE2nqRSe8yMuywko7g0KYido+KrONE+eUzlrh7xHtb62J3 oA/vR5vMF+2feTtisKB/ohVL1XY79P7a4B5OimvGYOvOxznq2rQ9lJs46JXQWpsyau5/ Ke82gl/+quuB9qW89g87ibHB+ZUtx1KdE3TLF/E+aP7m5Z561+rYalrOCg1yddPuMw45 OuTrOnBclkjsC7SiUmWtGWKWeqfSEpfHnjUqRmICW/LgtJQtA1lvTM9r5dc7RPzOQABY fcTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760780896; x=1761385696; 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=nhWVuNwxLp4oDhy9Y7Je0Sd3r/8yjdmEN4SRPPZ/YRc=; b=NJXmkaOH2Ab40bwU0Fr99rdzbzqS7FbOJoWhSsfcTUgv0wfXE3NVViREBGLV2TrpOw jfbT2KOWU1rO2WXSrfSjfM0PRd40K58ciUwZp/M/+S/LjFddHR/f4amstZXfzp96LNny NMRJ3bDv+Ihy+ukckqw3KBx9SyRj6Yjtvwx42JJAHMzzHeWlJkoXggZXvCQQUz+sLN+M Vv/oDCa/nWVrJfKdtV7efTVaZdSjjuN2xHxAHtTcA8K8Sp6+NOImcxvnndAGowZ3+vq8 kiFpOFyPyUgw9XaRRxi/lQ+kV7imXeOa/CIa7Qdnvhl0Mmk8qViqP63yEh82puhxIIgU m/dg== X-Forwarded-Encrypted: i=1; AJvYcCWMgtjQf7UQmxGlt3Ol4dBIo3gIG+hJSkWZ9bilt01kNRPAzYVp5hXGs1M+MxvyKcy5kHS6+drSZfIA@vger.kernel.org X-Gm-Message-State: AOJu0YwFbY8zUs+1cjoX3vgzbsYdIPa9Hj9s9N9Rz1PwY4pH/nQJRrrm 6k2xpFGMlV30644gvbYrzEb0wCpO92ap0wqUGR4t07Ma6ePgd2F69W+Mth0OpOQklzI= X-Gm-Gg: ASbGncsUN7DHP9kAnmL66l7I5MWyhV+9vFBLWdMngZOBvbEusFk9KL71nbsHZogEonZ pWmmExUvApsT4oXedS+I561m/+N0RBBPDRi2syMeDNIUQQoy8K6b3mFCzT9xuxvvSyfza6SqCrq u6/GHwyohspMLUk20Ke6j+cgoZSV+JuJJP4pcutLXR+bUOxbdR9tiqYk1SyU4xJnNhtS9ujh1sq XQ1l5uPNT418BEnmvkAHH4FmkvdKAYScDUgRFci6gTBOxbIzznKI+thPXjOORngaq/BSRB97+Tl dgQODt/RVtBOMaD6pXaRO0oYw/vpAIzzCZqIRrDNXdOqP4expQ/nBvOkSm5a1+giMHTEMCDXWOW deSs1gWE0aCJO0NfGkJq5grMhdjK22Shy8qPzMuPxE7iF08pG9wjvg0FqzLdMPKq9EXL3jPlJkj Avg6HbLMqISkUeg9IM X-Google-Smtp-Source: AGHT+IG+kX1i7eggIHxYAK08ThcqnvRyiNfTqtAevzOHW/nGlWwTN/Eu/9VszT8osDHnwWAvHzqdHA== X-Received: by 2002:a05:600c:3e8f:b0:46f:a95d:e9e7 with SMTP id 5b1f17b1804b1-471177ab11dmr52244015e9.0.1760780895638; Sat, 18 Oct 2025 02:48:15 -0700 (PDT) Received: from localhost ([196.207.164.177]) by smtp.gmail.com with UTF8SMTPSA id 5b1f17b1804b1-4715257d916sm37111235e9.4.2025.10.18.02.48.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Oct 2025 02:48:15 -0700 (PDT) Date: Sat, 18 Oct 2025 12:48:11 +0300 From: Dan Carpenter To: Anand Moon Cc: Vignesh Raghavendra , Siddharth Vadapalli , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Manivannan Sadhasivam , Rob Herring , Bjorn Helgaas , "open list:PCI DRIVER FOR TI DRA7XX/J721E" , "open list:PCI DRIVER FOR TI DRA7XX/J721E" , "moderated list:PCI DRIVER FOR TI DRA7XX/J721E" , open list Subject: Re: [PATCH v1 1/3] PCI: j721e: Propagate dev_err_probe return value Message-ID: References: <20251014113234.44418-1-linux.amoon@gmail.com> <20251014113234.44418-2-linux.amoon@gmail.com> Precedence: bulk X-Mailing-List: linux-omap@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20251014113234.44418-2-linux.amoon@gmail.com> On Tue, Oct 14, 2025 at 05:02:27PM +0530, Anand Moon wrote: > Ensure that the return value from dev_err_probe() is consistently assigned > back to ret in all error paths within j721e_pcie_probe(). This ensures > the original error code are propagation for debugging. > > Cc: Siddharth Vadapalli > Signed-off-by: Anand Moon > --- > v1: new patch in this series > --- > drivers/pci/controller/cadence/pci-j721e.c | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) > > diff --git a/drivers/pci/controller/cadence/pci-j721e.c b/drivers/pci/controller/cadence/pci-j721e.c > index 5bc5ab20aa6d..9c7bfa77a66e 100644 > --- a/drivers/pci/controller/cadence/pci-j721e.c > +++ b/drivers/pci/controller/cadence/pci-j721e.c > @@ -569,20 +569,20 @@ static int j721e_pcie_probe(struct platform_device *pdev) > pm_runtime_enable(dev); > ret = pm_runtime_get_sync(dev); > if (ret < 0) { > - dev_err_probe(dev, ret, "pm_runtime_get_sync failed\n"); > + ret = dev_err_probe(dev, ret, "pm_runtime_get_sync failed\n"); > goto err_get_sync; Wait, no, this doesn't make sense. It's just assigning ret to itself. That's just confusing and pointless. regards, dan carpenter