Received: by 10.223.164.202 with SMTP id h10csp2540690wrb; Mon, 27 Nov 2017 19:35:11 -0800 (PST) X-Google-Smtp-Source: AGs4zMZT5YVtUbXwci2R/F4nB5n9bNiU4h1QIw+9yHDXoL91Haaej9mbWS6ZxtjU8r0/cWHk4ZXM X-Received: by 10.99.180.77 with SMTP id n13mr25576847pgu.317.1511840111647; Mon, 27 Nov 2017 19:35:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511840111; cv=none; d=google.com; s=arc-20160816; b=XpkYlTPaNOiZuQZ5RvIbBmBYddGqU6Md0/mNuGGBkU/fNto03x5TeI500aA2ovuG7Z ajyZYTM3SiZsgJqY+H07amKpcRheM71SL1/wicum0YP6/Ea16wAoHvxfpuv83U4fqBIn LGbiR7L/TzlhnhrafCDN4EgebENvfVgDwb0ar9+NCoQhv8x8QkKMWfJJ8FTh4fggIAI4 LAylEHaKLpbs4QTQqOVv2tBZM1whpMxH/GAXF1aSTMjpFUawT/cdv74ynrULLlm458GV dx9g6EOcfxmDSIxNm8gFnHyDyQ+/+iJvuFtdUv+eeLnEOHlgOwbJZxXoRkXU28J5XSkP ViLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=tlH0dLv3SjR+4ngm2T9o26mJEVZkHpaZvpkl5wAZivk=; b=XZz/vvkyGmZTiDpYRfAM5/Os53SOExbBUpCWOINti1Z5oQnipsNqaVXmSBBktN2fXt Y0gvHlJ2DBOZTsoz8Bj870QlO1jfMZeWRPGsWLF/A6hKWlIJ/ptrh2ea5V+ByGjKO47b p+8KQcGZIXAhyOgX1IgFih+/fk8XOFzB+32b2665WMHUP+1Wfu6KuOMgRlesJNjuWyUD 0vzYYkZE5Fjrfyz9rK8APQCSZlXqtZqccALXnM4c5HL6H1r1z7q1U/6kf9WeQe8i4SDu hyj/l+akdEPiBrS4nDx/qYoEFyghwaDVfMY5QrJRTUFCgLdAjmB0zhJQ89c+mpOMeTxA av5w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3si12891738pln.508.2017.11.27.19.35.00; Mon, 27 Nov 2017 19:35:11 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753516AbdK1DdK (ORCPT + 77 others); Mon, 27 Nov 2017 22:33:10 -0500 Received: from regular1.263xmail.com ([211.150.99.130]:49607 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751717AbdK1DdI (ORCPT ); Mon, 27 Nov 2017 22:33:08 -0500 Received: from nickey.yang?rock-chips.com (unknown [192.168.165.252]) by regular1.263xmail.com (Postfix) with ESMTP id 45793B220; Tue, 28 Nov 2017 11:32:59 +0800 (CST) X-263anti-spam: KSV:0; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ABS-CHECKED: 4 Received: from [192.168.31.209] (localhost [127.0.0.1]) by smtp.263.net (Postfix) with ESMTPA id 9B0AB429; Tue, 28 Nov 2017 11:32:52 +0800 (CST) X-RL-SENDER: nickey.yang@rock-chips.com X-FST-TO: xbl@rock-chips.com X-SENDER-IP: 103.29.142.67 X-LOGIN-NAME: nickey.yang@rock-chips.com X-UNIQUE-TAG: <1cf299ba250b0c607e336a295254968c> X-ATTACHMENT-NUM: 0 X-SENDER: nickey.yang@rock-chips.com X-DNS-TYPE: 0 Received: from [192.168.31.209] (unknown [103.29.142.67]) by smtp.263.net (Postfix) whith ESMTP id 276336QRZOQ; Tue, 28 Nov 2017 11:32:57 +0800 (CST) Subject: Re: [PATCH 2/3] drm/rockchip: Add ROCKCHIP DW MIPI DSI controller driver To: Brian Norris Cc: robh+dt@kernel.org, heiko@sntech.de, mark.rutland@arm.com, airlied@linux.ie, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, seanpaul@chromium.org, hoegsberg@gmail.com, architt@codeaurora.org, philippe.cornu@st.com, yannick.fertre@st.com, hl@rock-chips.com, zyw@rock-chips.com, xbl@rock-chips.com References: <1511831616-10322-1-git-send-email-nickey.yang@rock-chips.com> <1511831616-10322-3-git-send-email-nickey.yang@rock-chips.com> <20171128015145.GA33245@google.com> From: Nickey Yang Message-ID: <36bbfad9-7169-3dee-a0e1-d722535d6ce8@rock-chips.com> Date: Tue, 28 Nov 2017 11:32:51 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171128015145.GA33245@google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Brian, Below comments fixed in patch-v2:https://patchwork.kernel.org/patch/10078527/ but :"get_drvdata()" Thanks for review. Nickey. On 2017年11月28日 09:51, Brian Norris wrote: > Hi Nickey, > > Several people already made comments on the initial version of this > patch [1], and I don't think you've caught them all here yet. I'll > repeat a few. Not sure if I've caught them all. > > [1] https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/780120 > > On Tue, Nov 28, 2017 at 09:13:35AM +0800, Nickey Yang wrote: >> Add the ROCKCHIP DSI controller driver that uses the Synopsys DesignWare >> MIPI DSI host controller bridge. >> >> Signed-off-by: Nickey Yang >> --- >> drivers/gpu/drm/rockchip/Kconfig | 2 +- >> drivers/gpu/drm/rockchip/Makefile | 2 +- >> drivers/gpu/drm/rockchip/dw-mipi-dsi.c | 1349 ----------------------- >> drivers/gpu/drm/rockchip/dw-mipi-dsi_rockchip.c | 756 +++++++++++++ >> drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 2 +- >> drivers/gpu/drm/rockchip/rockchip_drm_drv.h | 2 +- >> 6 files changed, 760 insertions(+), 1353 deletions(-) >> delete mode 100644 drivers/gpu/drm/rockchip/dw-mipi-dsi.c >> create mode 100644 drivers/gpu/drm/rockchip/dw-mipi-dsi_rockchip.c >> > ... > >> diff --git a/drivers/gpu/drm/rockchip/dw-mipi-dsi_rockchip.c b/drivers/gpu/drm/rockchip/dw-mipi-dsi_rockchip.c >> new file mode 100644 >> index 0000000..32be430 >> --- /dev/null >> +++ b/drivers/gpu/drm/rockchip/dw-mipi-dsi_rockchip.c >> @@ -0,0 +1,756 @@ >> +/* >> + * Copyright (C) Fuzhou Rockchip Electronics Co.Ltd >> + * Author: >> + * Chris Zhong >> + * Nickey Yang >> + * >> + * This software is licensed under the terms of the GNU General Public >> + * License version 2, as published by the Free Software Foundation, and >> + * may be copied, distributed, and modified under those terms. >> + * >> + * This program is distributed in the hope that it will be useful, >> + * but WITHOUT ANY WARRANTY; without even the implied warranty of >> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. >> + * >> + * License terms: GNU General Public License (GPL), version 2 >> + */ >> + >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include