From: ALOK TIWARI <alok.a.tiwari@oracle.com>
To: Manivannan Sadhasivam <mani@kernel.org>
Cc: daire.mcnamara@microchip.com, lpieralisi@kernel.org,
kwilczynski@kernel.org, bhelgaas@google.com, robh@kernel.org,
linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org,
Xichao Zhao <zhao.xichao@vivo.com>
Subject: Re: [External] : Re: [PATCH] PCI: plda: Remove the use of dev_err_probe()
Date: Tue, 16 Sep 2025 00:40:57 +0530 [thread overview]
Message-ID: <1f96e533-4863-4085-9da0-99053e0e5901@oracle.com> (raw)
In-Reply-To: <7vtlzppunpkrzwpdfplyzcm53fpxik335wtng7ethfjyvu4tph@df5xusqn25it>
On 9/15/2025 7:37 PM, Manivannan Sadhasivam wrote:
>>> Change is fine as it is. But I think devm_pci_alloc_host_bridge() should return
>>> the actual error pointer instead of NULL and let the callers guess the errno.
>>>
>>> Callers are using both -ENOMEM and -ENODEV, both of then will mask the actual
>>> errno that caused the failure.
>>>
>>> Cleanup task for someone interested 🙂
>>>
>>> - Mani
>> Did you really intend to do that,
> No, I don't have bandwidth right now.
>
>> Should that be an RFC (for cleanup task) patch ?
I am planning to send a patch for this cleanup.
It will touch all files under drivers/pci/controller/,
and I hope it will be useful.
Thanks,
Alok
next prev parent reply other threads:[~2025-09-15 19:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-20 8:52 [PATCH] PCI: plda: Remove the use of dev_err_probe() Xichao Zhao
2025-09-08 10:13 ` Manivannan Sadhasivam
2025-09-15 13:25 ` [External] : " ALOK TIWARI
2025-09-15 14:07 ` Manivannan Sadhasivam
2025-09-15 19:10 ` ALOK TIWARI [this message]
2025-09-08 10:16 ` Manivannan Sadhasivam
2025-09-12 22:09 ` Bjorn Helgaas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1f96e533-4863-4085-9da0-99053e0e5901@oracle.com \
--to=alok.a.tiwari@oracle.com \
--cc=bhelgaas@google.com \
--cc=daire.mcnamara@microchip.com \
--cc=kwilczynski@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=lpieralisi@kernel.org \
--cc=mani@kernel.org \
--cc=robh@kernel.org \
--cc=zhao.xichao@vivo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox