[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201028072154.GA3494@kozik-lap>
Date: Wed, 28 Oct 2020 08:21:54 +0100
From: Krzysztof Kozlowski <krzk@...nel.org>
To: Martin Kaiser <martin@...ser.cx>
Cc: Wolfram Sang <wsa@...nel.org>, Andrzej Hajda <a.hajda@...sung.com>,
linux-i2c@...r.kernel.org, linux-samsung-soc@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] i2c: exynos5: fix platform_get_irq error handling
On Tue, Oct 27, 2020 at 10:42:57PM +0100, Martin Kaiser wrote:
> platform_get_irq already prints an error message if the requested irq
> was not found. Don't print another message in the driver.
>
> If platform_get_irq returns an error, relay this error to the caller of the
> probe function. Don't change all errors to -EINVAL. This breaks the case
> where platform_get_irq returns -EPROBE_DEFER.
>
> platform_get_irq never returns 0. Don't check for this. Make it clear that
> the error path always returns a negative error code.
These should be three separate commits.
Best regards,
Krzysztof
Powered by blists - more mailing lists