Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2144661imu; Thu, 10 Jan 2019 09:01:55 -0800 (PST) X-Google-Smtp-Source: ALg8bN6CORtpPlwuR8JpeWlguzfDJFzm2JwMxmRiwRh3VvJhnFlkQ8fboD2wD5P+qn5eU6tkpQ7h X-Received: by 2002:a63:8742:: with SMTP id i63mr9985228pge.298.1547139715301; Thu, 10 Jan 2019 09:01:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547139715; cv=none; d=google.com; s=arc-20160816; b=SUx/3kxfImCNYFerz+rZnHjeDG6c99DedRV6ubB3rIokxmRS/R4CB7grhSY4fnGx+3 ngQ/DafVKWrjxk2wZEJVNgg2TlxjmmVxDSfOaWLJal7HcxLNT8cGmV5tm6mgCcABJm5C zzXIvCmGko44ma/zN0Brxd7kix7kTp2NRPwgbpds41ED4EqKHL2IG554k4sV3XzPxYJI ufbG2qsAoxT6HGFSJSE1dV/Rg+XxLVO19E6UpNGxMhAWwrxpLrfz5n+SBAot0HoEgwKy LpC6fo2ANbDDKIJpKGxppBHrVasZOAQ0Q+mAZx7sFB/AhOmSqqsBvDdDpbdl7mc+9X4+ pG/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=kiUyQsC+nA7jc8wjzMt8GEtV7VY3sCmzQTUZbHzRgWc=; b=sXj3iiIJj7o5isulc4ySfupbSLfMAzz1SkjrqjU0R4BwfcIVC7i5ydhg4MwYKec+1U jACxS9TqV3PpkZpEYndXpxUGmTMuMGDalk4sS+zZzr+N8G4RYZLGbl0M24zY4GSxXA9X Zq2/7Kf+XETW0xdyB5C8kEUD9PTLBRofoOF3dd6IvNS+cy+cCU/CdQKQg3oPSt5f3/YO Po+gJyWxxsWHpqN22MmLfV3wD4Ny4KJn/EtlfDFAS7W7NkfAS8uD8dfq/qgSNt1hCVFt g4zbFgMSaWIaTT/s/uhJetsIknP4Rri8xciOVcsCiEhaU2fHU41zvGibmcV/g//tPFkx gcXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=bYvuDzm1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z14si8357402pgz.180.2019.01.10.09.01.39; Thu, 10 Jan 2019 09:01:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=bYvuDzm1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729030AbfAJRAR (ORCPT + 99 others); Thu, 10 Jan 2019 12:00:17 -0500 Received: from smtprelay2.synopsys.com ([198.182.60.111]:59410 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728266AbfAJRAQ (ORCPT ); Thu, 10 Jan 2019 12:00:16 -0500 Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by smtprelay.synopsys.com (Postfix) with ESMTP id DF4F810C0A42; Thu, 10 Jan 2019 09:00:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1547139615; bh=AMdMSVG1Q7Xusu3VXK/+CposrKlkej3BAymwkHqU3FE=; h=Subject:To:CC:References:From:Date:In-Reply-To:From; b=bYvuDzm1VbgZQZD3kpX6U+dq5MYkkG6ADK7a1CSnNVlhgCysfgC1aKYajCbMdP138 YjVZGnzL1mpqc8jN8yVy72H0f06wOetCJb6ciFI1OHT4NyKlR6vseCSVStVXBLUmPs OqJHN3F60jODYaOXg2DJzpR04UwVy/0ydOZgfaakqDH/Oh36qAfkdmk+MyQxsRlAbI HlBd+jF2PIFaSNFhsNPxvJL4JF0pxmNf1HaROG1mNgjLTaQRIsC7/piRGS4dBFvMzY NVZhsE7Gya0xOJYYfU4911Tq1HX16FusOMIZeHuQQvpEQjO2uB9t4LOdyRj47Fxkvv k22OkFAi95cEw== Received: from US01WXQAHTC1.internal.synopsys.com (us01wxqahtc1.internal.synopsys.com [10.12.238.230]) by mailhost.synopsys.com (Postfix) with ESMTP id 16116560A; Thu, 10 Jan 2019 09:00:13 -0800 (PST) Received: from DE02WEHTCA.internal.synopsys.com (10.225.19.92) by US01WXQAHTC1.internal.synopsys.com (10.12.238.230) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 10 Jan 2019 09:00:13 -0800 Received: from DE02WEHTCB.internal.synopsys.com (10.225.19.94) by DE02WEHTCA.internal.synopsys.com (10.225.19.92) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 10 Jan 2019 18:00:10 +0100 Received: from [10.107.19.13] (10.107.19.13) by DE02WEHTCB.internal.synopsys.com (10.225.19.80) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 10 Jan 2019 18:00:10 +0100 Subject: Re: [V3, 4/4] media: platform: dwc: Add MIPI CSI-2 controller driver To: Laurent Pinchart , Luis Oliveira CC: , , , , Mauro Carvalho Chehab , Greg Kroah-Hartman , "David S. Miller" , Andrew Morton , Arnd Bergmann , Hans Verkuil , Geert Uytterhoeven , "Neil Armstrong" , Philipp Zabel , Thierry Reding , Maxime Ripard , Todor Tomov References: <1539953556-35762-1-git-send-email-lolivei@synopsys.com> <1539953556-35762-5-git-send-email-lolivei@synopsys.com> <1798955.5kaMj8jiTI@avalon> From: Luis de Oliveira Message-ID: <367bf8de-a70b-145a-a69a-9edfa8c635b4@synopsys.com> Date: Thu, 10 Jan 2019 17:00:07 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <1798955.5kaMj8jiTI@avalon> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.107.19.13] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Laurent, Sorry for taking so long to answer. I was stuck in other projects and lost track of this. My answers inline, On 14-Nov-18 20:22, Laurent Pinchart wrote: > Hi Luis, > > Thank you for the patch. > > On Friday, 19 October 2018 15:52:26 EET Luis Oliveira wrote: >> Add the Synopsys MIPI CSI-2 controller driver. This >> controller driver is divided in platform dependent functions >> and core functions. It also includes a platform for future >> DesignWare drivers. >> >> Signed-off-by: Luis Oliveira >> --- >> Changelog >> v2-V3 >> - exposed IPI settings to userspace > > Could you please explain why you need this and can't use standard APIs ? > Custom sysfs attributes are needed, they need to be documented in > Documentation/ABI/. > IPI - Image Pixel Interface enables to access direct video stream in our CSI-2 Host IP and needs to be configured to match the video source. I can't hard code it. But maybe I can think of a way to configure it using the video configuration. I will try do that in the next patchset. >> - fixed headers >> >> MAINTAINERS | 11 + >> drivers/media/platform/dwc/Kconfig | 30 +- >> drivers/media/platform/dwc/Makefile | 2 + >> drivers/media/platform/dwc/dw-csi-plat.c | 699 ++++++++++++++++++++++++++++ >> drivers/media/platform/dwc/dw-csi-plat.h | 77 ++++ >> drivers/media/platform/dwc/dw-mipi-csi.c | 494 ++++++++++++++++++++++ >> drivers/media/platform/dwc/dw-mipi-csi.h | 202 +++++++++ >> include/media/dwc/dw-mipi-csi-pltfrm.h | 102 +++++ >> 8 files changed, 1616 insertions(+), 1 deletion(-) >> create mode 100644 drivers/media/platform/dwc/dw-csi-plat.c >> create mode 100644 drivers/media/platform/dwc/dw-csi-plat.h >> create mode 100644 drivers/media/platform/dwc/dw-mipi-csi.c >> create mode 100644 drivers/media/platform/dwc/dw-mipi-csi.h >> create mode 100644 include/media/dwc/dw-mipi-csi-pltfrm.h >> >> diff --git a/MAINTAINERS b/MAINTAINERS >> index da2e509..fd5f1fc 100644 >> --- a/MAINTAINERS >> +++ b/MAINTAINERS >> @@ -14032,6 +14032,16 @@ S: Maintained >> F: drivers/dma/dwi-axi-dmac/ >> F: Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.txt >> >> +SYNOPSYS DESIGNWARE MIPI CSI-2 HOST VIDEO PLATFORM >> +M: Luis Oliveira >> +L: linux-media@vger.kernel.org >> +T: git git://linuxtv.org/media_tree.git >> +S: Maintained >> +F: drivers/media/platform/dwc >> +F: include/media/dwc/dw-mipi-csi-pltfrm.h >> +F: Documentation/devicetree/bindings/media/snps,dw-csi-plat.txt >> +F: Documentation/devicetree/bindings/phy/snps,dphy-rx.txt > > These two lines belong to patches 1/4 and 3/4. Doesn't checkpatch.pl warn > about this ? Now that I mentioned checkpatch.pl, I tried running it on this > series, and it generates a fair number of warnings and errors. Could you > please fix them ? > I did, but maybe - or probably - i did not fix them all. Sorry. I am preparing a new patchset and I will make sure everything goes right this time. >> + >> SYNOPSYS DESIGNWARE DMAC DRIVER >> M: Viresh Kumar >> R: Andy Shevchenko >> @@ -16217,3 +16227,4 @@ T: git >> git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git S: Buried >> alive in reporters >> F: * >> F: */ >> + > > Stray new line. > Noted. > [snip] > Thank you, Luis