Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1372616pxf; Fri, 9 Apr 2021 06:58:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfMOdZhIxXWNAS8e/k72+uqmbxGnS5lTyD7PBlTZU0l6ffl0DPNYfL/LKVFrs1ai324rz3 X-Received: by 2002:a17:90a:c091:: with SMTP id o17mr3694875pjs.113.1617976687518; Fri, 09 Apr 2021 06:58:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617976687; cv=none; d=google.com; s=arc-20160816; b=oCdkrNQvHwk3/8FJdegzxUgvxHj6IQRkbbvxwEkZ4ZDYkuYY4WuZDhrRGjCocLk494 LL0vMKDeSqq72Lyu7u4OaZ8mEQCoRVa+ZMfUR9NuAxFlyQrgSYk8aDKlnMsM3hZt5e0y hSAZwAYBwrpoV3IVRC3cfXddwvv/f9VR3SgfL+cU5ZycbId1/qcmhyUH02+k+RTcUAdD X1K8FGuW4q1K/TB9DVrTTprf9fYbNHZYwrZUE56JallX/0BFSjZb83RFNK30Uznok3I5 JF00gWFnBNCaRSsyuZz05A/eIiBm9TTaHOpYizI9PRgUpE4w/oTT8tViXHpOeLAWLVtf dFSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=0EyA3S25nPHigFO3cqDkJiVRY9Nt5iUXTMQu0K0JdIY=; b=SnHKXpdxL56FOC0PmBJWi37z/gLxuEJWgKpoAFU0D5GBPb6qF9FYkuuRlt65+ttu/X jbsSyTr0akZ5DulCiSOgZre74n+rdKVEV/CtfRooyBFLtf9McigktglpqqBVMu/UYv3u 8cc6DyBlJGwhkvGopqxHUGljZc5acYU9krXf9oeICxldiMEwY+CC1W13jenAxOXNXnid jY7migQhyHVzq3I2q+JTgaz0ASBvU09gKRdMpve7hJvPBMIYCLAcjqxVrwQt1pNWr+SD GIIR2EaXMM550xvQ403Flp7fKUqquKK4pinbkcTbbOMPMQWe2a5azRl541xl9xdLQzUH p0Zw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k7si3006228pgl.450.2021.04.09.06.57.54; Fri, 09 Apr 2021 06:58:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232876AbhDIN5c (ORCPT + 99 others); Fri, 9 Apr 2021 09:57:32 -0400 Received: from mx2.suse.de ([195.135.220.15]:52384 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231946AbhDIN5b (ORCPT ); Fri, 9 Apr 2021 09:57:31 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 3E128AD2D; Fri, 9 Apr 2021 13:57:16 +0000 (UTC) Subject: Re: [PATCH v4 2/6] drm/sprd: add Unisoc's drm kms master To: Kevin Tang Cc: Mark Rutland , devicetree@vger.kernel.org, David Airlie , Chunyan Zhang , "Linux-Kernel@Vger. Kernel. Org" , Rob Herring , ML dri-devel , Orson Zhai , Sean Paul References: <20210222132822.7830-1-kevin3.tang@gmail.com> <20210222132822.7830-3-kevin3.tang@gmail.com> From: Thomas Zimmermann Message-ID: <449a323c-0bb3-a4aa-5a3f-1325fd4b802c@suse.de> Date: Fri, 9 Apr 2021 15:57:15 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="S4XoDZIR9mto1SEn5emJBWKE0vfzu4oDm" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --S4XoDZIR9mto1SEn5emJBWKE0vfzu4oDm Content-Type: multipart/mixed; boundary="NALOUUC0u41Jy3oDgBSIgoxBcf1Yo86DK"; protected-headers="v1" From: Thomas Zimmermann To: Kevin Tang Cc: Mark Rutland , devicetree@vger.kernel.org, David Airlie , Chunyan Zhang , "Linux-Kernel@Vger. Kernel. Org" , Rob Herring , ML dri-devel , Orson Zhai , Sean Paul Message-ID: <449a323c-0bb3-a4aa-5a3f-1325fd4b802c@suse.de> Subject: Re: [PATCH v4 2/6] drm/sprd: add Unisoc's drm kms master References: <20210222132822.7830-1-kevin3.tang@gmail.com> <20210222132822.7830-3-kevin3.tang@gmail.com> In-Reply-To: --NALOUUC0u41Jy3oDgBSIgoxBcf1Yo86DK Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable Hi Am 09.04.21 um 15:50 schrieb Kevin Tang: > > +static int __init sprd_drm_init(void) > > +{ > > +=C2=A0 =C2=A0 =C2=A0int ret; >=20 > I think ret should just go away. >=20 > Like this? > "return platform_register_drivers(sprd_drm_drivers,=20 > ARRAY_SIZE(sprd_drm_drivers));" Sure. Best regards Thomas > if so, i will fix it, thks. >=20 >=20 > Acked-by: Thomas Zimmermann > >=20 > > + > > +=C2=A0 =C2=A0 =C2=A0ret =3D platform_register_drivers(sprd_drm_= drivers, > > +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0ARRA= Y_SIZE(sprd_drm_drivers)); > > +=C2=A0 =C2=A0 =C2=A0return ret; > > +} > > + > > +static void __exit sprd_drm_exit(void) > > +{ > > +=C2=A0 =C2=A0 =C2=A0platform_unregister_drivers(sprd_drm_driver= s, > > +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0ARRAY_SIZE(sprd_dr= m_drivers)); > > +} > > + > > +module_init(sprd_drm_init); > > +module_exit(sprd_drm_exit); > > + > > +MODULE_AUTHOR("Leon He >"); > > +MODULE_AUTHOR("Kevin Tang >"); > > +MODULE_DESCRIPTION("Unisoc DRM KMS Master Driver"); > > +MODULE_LICENSE("GPL v2"); > > diff --git a/drivers/gpu/drm/sprd/sprd_drm.h > b/drivers/gpu/drm/sprd/sprd_drm.h > > new file mode 100644 > > index 000000000..9781fd591 > > --- /dev/null > > +++ b/drivers/gpu/drm/sprd/sprd_drm.h > > @@ -0,0 +1,16 @@ > > +/* SPDX-License-Identifier: GPL-2.0 */ > > +/* > > + * Copyright (C) 2020 Unisoc Inc. > > + */ > > + > > +#ifndef _SPRD_DRM_H_ > > +#define _SPRD_DRM_H_ > > + > > +#include > > +#include > > + > > +struct sprd_drm { > > +=C2=A0 =C2=A0 =C2=A0struct drm_device drm; > > +}; > > + > > +#endif /* _SPRD_DRM_H_ */ > > >=20 > --=20 > Thomas Zimmermann > Graphics Driver Developer > SUSE Software Solutions Germany GmbH > Maxfeldstr. 5, 90409 N=C3=BCrnberg, Germany > (HRB 36809, AG N=C3=BCrnberg) > Gesch=C3=A4ftsf=C3=BChrer: Felix Imend=C3=B6rffer >=20 >=20 > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel >=20 --=20 Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 N=C3=BCrnberg, Germany (HRB 36809, AG N=C3=BCrnberg) Gesch=C3=A4ftsf=C3=BChrer: Felix Imend=C3=B6rffer --NALOUUC0u41Jy3oDgBSIgoxBcf1Yo86DK-- --S4XoDZIR9mto1SEn5emJBWKE0vfzu4oDm Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsF5BAABCAAjFiEExndm/fpuMUdwYFFolh/E3EQov+AFAmBwXTsFAwAAAAAACgkQlh/E3EQov+D7 MA/+IAHWrnPg7/5qfYPk4UleTosgnVBGNe/Z2fqhtkh4x9NmLTswgvW0hASHzsvGVVjxJGfUOivY 2/nOETjZEQgBU9VXxVYT+bYlTzmfH5+k7L3cMex/h3XXv1dHKPh5B0aY+IjhBzRSWC1bc7ezIyK3 tTIGoKdXDMWm4JWFtwrGu1/q2jMUu36E9SNzY4Qtx7MpzaDJgjvfs51sOaTiPTcwmh8loBEInNXw 8zpzM5EVOTZaSto1vWcw2ItE7yxCC5B/H13TveYVP6Z3DzoaXXFHqAHCvDHAohZw9CdyNFdF/hUB 5/hHYEJpPEQ9cYqG4FSKDEeSQX1i/uLiWWD2FsUCqIAadJ2e8Bid/7C02oOoaJXNvwn93QnL9I3L XzgeNafPpcHo9RJ1k12txhWLu5ptnnPuaalZzliC7eW0dQmyTDUzczOb5N4wDxa9V909Uj4D3biE Y866PPJ8iTSoeRM2P3mPBYZ3SSjqVuFh1Oz6IIWTgsDRQtn5Hv5xgJQ+ApH3g6p9D3/W9YjZGyar io+SXii5nWsd8V+AIuv6BEYUDihn1Eq6w/sSc7ElZlxoHMZQcHS50NTvAHIybpLt2WkIZyxtcTKQ Ss94oiUfdV9ctDVTjNnqoAWjyXOPX9JMRqPux+hxZwqxAhbv0E4WUIvg3sE+lPuKpSrK7d/3f6VN NaA= =CXJ5 -----END PGP SIGNATURE----- --S4XoDZIR9mto1SEn5emJBWKE0vfzu4oDm--