From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752244AbdBTJz6 (ORCPT ); Mon, 20 Feb 2017 04:55:58 -0500 Received: from lelnx193.ext.ti.com ([198.47.27.77]:19977 "EHLO lelnx193.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751409AbdBTJz5 (ORCPT ); Mon, 20 Feb 2017 04:55:57 -0500 Subject: Re: [PATCH 2/4] ARM: davinci: da8xx: add pdata-quirks for VPIF capture To: Bartosz Golaszewski , David Lechner , Kevin Hilman , Michael Turquette , Patrick Titiano , Laurent Pinchart , Russell King References: <1487269285-6948-1-git-send-email-bgolaszewski@baylibre.com> <1487269285-6948-3-git-send-email-bgolaszewski@baylibre.com> CC: , From: Sekhar Nori Message-ID: Date: Mon, 20 Feb 2017 15:22:59 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <1487269285-6948-3-git-send-email-bgolaszewski@baylibre.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday 16 February 2017 11:51 PM, Bartosz Golaszewski wrote: > From: Kevin Hilman > > For da8xx DT platforms, use pdata-quirks to add legacy platform data for > vpif_capture driver. > > Passing legacy platform_data is required until the V4L2 framework, and > subdevice drivers (such as the tvp514x) grow a way of selecting input > and output routing (c.f. V4L2 s_routing API) > > Signed-off-by: Kevin Hilman [...] > static struct pdata_init pdata_quirks[] __initdata = { > +#if IS_ENABLED(CONFIG_VIDEO_DAVINCI_VPIF_CAPTURE) > + { "ti,da850-lcdk", da850_vpif_legacy_init, }, > +#if defined(CONFIG_DA850_UI_SD_VIDEO_PORT) > + { "ti,da850-evm", da850_vpif_legacy_init, }, > +#endif We should remove these ifdefs around device registration. Devices should be registered irrespective of driver support. Also, these were being used in the board file to drive selection gpios. That functionality should now move to drivers. Thanks, Sekhar