From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752042AbdB1JwA (ORCPT ); Tue, 28 Feb 2017 04:52:00 -0500 Received: from mail-io0-f177.google.com ([209.85.223.177]:33552 "EHLO mail-io0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751332AbdB1JvN (ORCPT ); Tue, 28 Feb 2017 04:51:13 -0500 MIME-Version: 1.0 In-Reply-To: <2a617e15-5eab-6a24-9c21-e3ab9ecf3899@ti.com> References: <1487772805-19021-1-git-send-email-bgolaszewski@baylibre.com> <1487772805-19021-7-git-send-email-bgolaszewski@baylibre.com> <2a617e15-5eab-6a24-9c21-e3ab9ecf3899@ti.com> From: Bartosz Golaszewski Date: Tue, 28 Feb 2017 10:42:45 +0100 Message-ID: Subject: Re: [PATCH v3 6/6] ARM: davinci: add enable GPIOs for vpif capture to pdata-quirks To: Sekhar Nori Cc: David Lechner , Kevin Hilman , Michael Turquette , Patrick Titiano , Laurent Pinchart , Russell King , arm-soc , LKML Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2017-02-28 9:49 GMT+01:00 Sekhar Nori : > On Wednesday 22 February 2017 07:43 PM, Bartosz Golaszewski wrote: >> On the da850-evm board we need to select the UI expander video capture >> function to make vpif capture work. Add the relevant GPIOs to the >> pdata-quirks. >> >> Signed-off-by: Bartosz Golaszewski > > Hmm, why do we need this despite enable-gpios in DT ? > I didn't look at the exact code path, but if we're using pdata-quirks, the of_node in struct device passed to vpif_probe is NULL (one of the reasons why we're not mixing DT and pdata for vpif subdevices configuration etc.). So it seems that as long as we don't switch over to DT entirely we need to have the GPIOs here as well. Thanks, Bartosz From mboxrd@z Thu Jan 1 00:00:00 1970 From: bgolaszewski@baylibre.com (Bartosz Golaszewski) Date: Tue, 28 Feb 2017 10:42:45 +0100 Subject: [PATCH v3 6/6] ARM: davinci: add enable GPIOs for vpif capture to pdata-quirks In-Reply-To: <2a617e15-5eab-6a24-9c21-e3ab9ecf3899@ti.com> References: <1487772805-19021-1-git-send-email-bgolaszewski@baylibre.com> <1487772805-19021-7-git-send-email-bgolaszewski@baylibre.com> <2a617e15-5eab-6a24-9c21-e3ab9ecf3899@ti.com> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org 2017-02-28 9:49 GMT+01:00 Sekhar Nori : > On Wednesday 22 February 2017 07:43 PM, Bartosz Golaszewski wrote: >> On the da850-evm board we need to select the UI expander video capture >> function to make vpif capture work. Add the relevant GPIOs to the >> pdata-quirks. >> >> Signed-off-by: Bartosz Golaszewski > > Hmm, why do we need this despite enable-gpios in DT ? > I didn't look at the exact code path, but if we're using pdata-quirks, the of_node in struct device passed to vpif_probe is NULL (one of the reasons why we're not mixing DT and pdata for vpif subdevices configuration etc.). So it seems that as long as we don't switch over to DT entirely we need to have the GPIOs here as well. Thanks, Bartosz