Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2829928pxb; Thu, 3 Feb 2022 15:48:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJyoVZGB6RX7ljD2+8HN2ZkZ4bcjlDgHyJV27syNrKt0r2sI903dObiKQ72rQsQejuaAfY7V X-Received: by 2002:a65:400a:: with SMTP id f10mr356602pgp.161.1643932101645; Thu, 03 Feb 2022 15:48:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643932101; cv=none; d=google.com; s=arc-20160816; b=WASK5NeiOhBfSiPrMspPpOCQMf3kJ8D1Nc1ap2G2bqHHUZW8dh+bSQ+HFs9trbfHPR rH1zrDISnUsF6w6MO+WH+h1BjlEkrg02KwlZiIRXhD7zzvrj+RWvl9vibXlm+FM/SmhF PPH+JRdClFYhUn1IlZeU+t2MlHOcU3Pxaizscomp8rkwUI6ZmQ/0eHSAitHzFrcZ3ElL QcHj7Sj2vPPZEJx8cOfokbyp4nj5oCNkDjuTFg2QicCVZIScqKGrkKyCUr9j9AZOFk7E T7uZL9KZDGYkxDKcA/lm/w5HjlUjgnPq0hyYpDkScN7Dg5xZEg5SKJZIYcVVCNrACMYh 1zpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:sender:hmm_source_type:hmm_attache_num :hmm_source_ip; bh=6zrmA0IzR+kqIREWrNLkAl3T4AZI4vVwxVdqIW7hJ3s=; b=w1ZSkPrm4UZF6zi54ICzVy+DVCl/tys6g2n4JIk64n6Ol4Wp/mh/8QPhKzvE88DE3o Aoo27g86Aual3XJlgmB/V5ryyroNFElszWwfCBKoiKUXeW5TBcI/RQtRb6QoHNgOCuwk AVT2i86AhnnB/MBmnkyYTpVltfmeqcJWVfEyQjlh7lvy3JrujKYY5hXycCNI2+LTKtsH W9EnTK5ztEGMIcs9+wlWffztkDj4FlpHoJg0SmIZzOaffvnkV4yOn/wYWrNWjpnuyTl1 NnQVkBuz48TY9c+TGAlUKMxno8VJAAa2+YalF/vFs+ETS3Et6OVEfAAsHixIy6ii29sB a8ZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w4si235597plq.274.2022.02.03.15.48.09; Thu, 03 Feb 2022 15:48:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352128AbiBCQEZ (ORCPT + 99 others); Thu, 3 Feb 2022 11:04:25 -0500 Received: from ptr.189.cn ([183.61.185.102]:13125 "EHLO 189.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229993AbiBCQEY (ORCPT ); Thu, 3 Feb 2022 11:04:24 -0500 HMM_SOURCE_IP: 10.64.8.41:45850.886286331 HMM_ATTACHE_NUM: 0000 HMM_SOURCE_TYPE: SMTP Received: from clientip-114.242.206.180 (unknown [10.64.8.41]) by 189.cn (HERMES) with SMTP id B0734100199; Fri, 4 Feb 2022 00:04:20 +0800 (CST) Received: from ([114.242.206.180]) by gateway-151646-dep-b7fbf7d79-9vctg with ESMTP id 2637270b75c940a69ca20338fa5b705f for maxime@cerno.tech; Fri, 04 Feb 2022 00:04:21 CST X-Transaction-ID: 2637270b75c940a69ca20338fa5b705f X-Real-From: 15330273260@189.cn X-Receive-IP: 114.242.206.180 X-MEDUSA-Status: 0 Sender: 15330273260@189.cn Message-ID: <11ac5696-29e3-fefa-31c0-b7b86c88bbdc@189.cn> Date: Fri, 4 Feb 2022 00:04:19 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v6 1/3] drm/lsdc: add drm driver for loongson display controller Content-Language: en-US To: Maxime Ripard Cc: Dan Carpenter , Lucas Stach , Maarten Lankhorst , Roland Scheidegger , Zack Rusin , Christian Gmeiner , David Airlie , Daniel Vetter , Rob Herring , Thomas Bogendoerfer , Krzysztof Kozlowski , Andrey Zhizhikin , Sam Ravnborg , suijingfeng , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Randy Dunlap References: <20220203082546.3099-1-15330273260@189.cn> <20220203082546.3099-2-15330273260@189.cn> <20220203085851.yqstkfgt4dz7rcnw@houat> From: Sui Jingfeng <15330273260@189.cn> In-Reply-To: <20220203085851.yqstkfgt4dz7rcnw@houat> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> diff --git a/drivers/gpu/drm/lsdc/Makefile b/drivers/gpu/drm/lsdc/Makefile >> new file mode 100644 >> index 000000000000..342990654478 >> --- /dev/null >> +++ b/drivers/gpu/drm/lsdc/Makefile >> @@ -0,0 +1,15 @@ >> +# >> +# Makefile for the lsdc drm device driver. >> +# >> + >> +lsdc-y := \ >> + lsdc_drv.o \ >> + lsdc_crtc.o \ >> + lsdc_irq.o \ >> + lsdc_plane.o \ >> + lsdc_pll.o \ >> + lsdc_i2c.o \ >> + lsdc_encoder.o \ >> + lsdc_connector.o >> + >> +obj-$(CONFIG_DRM_LSDC) += lsdc.o >> diff --git a/drivers/gpu/drm/lsdc/lsdc_connector.c b/drivers/gpu/drm/lsdc/lsdc_connector.c >> new file mode 100644 >> index 000000000000..ae5fc0c90961 >> --- /dev/null >> +++ b/drivers/gpu/drm/lsdc/lsdc_connector.c >> @@ -0,0 +1,443 @@ >> +// SPDX-License-Identifier: GPL-2.0+ >> +/* >> + * Copyright 2020 Loongson Corporation >> + * >> + * Permission is hereby granted, free of charge, to any person obtaining a >> + * copy of this software and associated documentation files (the >> + * "Software"), to deal in the Software without restriction, including >> + * without limitation the rights to use, copy, modify, merge, publish, >> + * distribute, sub license, and/or sell copies of the Software, and to >> + * permit persons to whom the Software is furnished to do so, subject to >> + * the following conditions: >> + * >> + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR >> + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, >> + * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL >> + * THE COPYRIGHT HOLDERS, AUTHORS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, >> + * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR >> + * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE >> + * USE OR OTHER DEALINGS IN THE SOFTWARE. >> + * >> + * The above copyright notice and this permission notice (including the >> + * next paragraph) shall be included in all copies or substantial portions >> + * of the Software. >> + */ > That's the MIT license, yet you claim the driver to be licensed under > the GPLv2 or later? I just copy then paste it blindly, sorry about that. I do not know the difference, we want open the source anyway. I will correct it in next version, thanks. >> + >> +/* >> + * Authors: >> + * Sui Jingfeng >> + */ >> + >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> + >> +#include