From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from out1-smtp.messagingengine.com ([66.111.4.25]:37728 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755282AbcJROFO (ORCPT ); Tue, 18 Oct 2016 10:05:14 -0400 Date: Tue, 18 Oct 2016 16:05:21 +0200 From: Greg KH To: Laurent Pinchart Cc: stable@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-media@vger.kernel.org Subject: Re: [PATCH] [media] v4l: rcar-fcp: Don't force users to check for disabled FCP support Message-ID: <20161018140521.GA5102@kroah.com> References: <1476797060-8535-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1476797060-8535-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com> Sender: linux-media-owner@vger.kernel.org List-ID: On Tue, Oct 18, 2016 at 04:24:20PM +0300, Laurent Pinchart wrote: > commit fd44aa9a254b18176ec3792a18e7de6977030ca8 upstream. > > The rcar_fcp_enable() function immediately returns successfully when the > FCP device pointer is NULL to avoid forcing the users to check the FCP > device manually before every call. However, the stub version of the > function used when the FCP driver is disabled returns -ENOSYS > unconditionally, resulting in a different API contract for the two > versions of the function. > > As a user that requires FCP support will fail at probe time when calling > rcar_fcp_get() if the FCP driver is disabled, the stub version of the > rcar_fcp_enable() function will only be called with a NULL FCP device. > We can thus return 0 unconditionally to align the behaviour with the > normal version of the function. > > Fixes: 94fcdf829793 ("[media] v4l: vsp1: Add FCP support") > Reported-by: Sergei Shtylyov > Signed-off-by: Laurent Pinchart > Reviewed-by: Geert Uytterhoeven > Signed-off-by: Mauro Carvalho Chehab > --- > include/media/rcar-fcp.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) What stable kernel(s) do you want this applied to? thanks, greg k-h