Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1321404pxu; Fri, 16 Oct 2020 09:08:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1AGZSCU+3L+Rh7bD5gH8HVS5gPxwntLj7m6glqeAe+JEEoR7BN+Mgq8PluQ/SvKnUsL2f X-Received: by 2002:a05:6402:c84:: with SMTP id cm4mr4848288edb.270.1602864505815; Fri, 16 Oct 2020 09:08:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602864505; cv=none; d=google.com; s=arc-20160816; b=dQZEIECrhe9r3GohFjxsCxNhuNfuEDBRDrF8Xh0dYDU/bwMlCfoSxRsp5hC/nN5kXZ TuR3c71KpOeM/1nv3DoTykY5WmUcczsHVB8DhxGSwvtwOpM+rZ1Zz7WeLV147yXGur0u slKsttKodG6pF/nX09CD3Gs6XqxABKC261jaXjMZ1NKqp1C3XlZ/Nh/jEO7w6gQc0yv3 3RR40IJDAQhejgZmDLFo9FajW7tRq8EgHW1FvYqPylW9ctBgrNmcim9e0PVJVIqijac3 t05R300u5ku9HQ46yAg7kmNc84S9clWlh9DwyQhiHEIZrJMBJG7vlYYCfitOdtEjVolU xlaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=BhykDlQBA4P2HUZ00fFL2Cb7VDxwRR/IMFKPKN+W3KQ=; b=B8S+CIjPfxXdOnWxmWzKhBluWwnirmcIty3naU8CXXlWdlEQQW+h8cS3uXUX0Rtj53 T+cTH02rQPBNDGaf4uB8PTJ9Jl2LDNQp5+HGgpyqwU82zWtfmj5Xxk4X59Cfkv+Vb59k jzqyZXGtaptejj1/3ccBao4QpMOoGiYYrWipHxDDTLeqXqiCc+iTjBVZ1rGWlvkneBSl tvXsWBci8It1WaLX4S0Rtxs7ij57ORrC5UbhgYm/85bqMaaqQXZKgr+YNlhpHM7vuJEi 7ozsC6kX7oKOI33zOkSHF+z6lZbQpXvjq6ZQPZoSVT/CIEvIO4CBCwrnWz5v5Rfu8eIQ Owcw== 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 m15si1860052ejg.633.2020.10.16.09.08.02; Fri, 16 Oct 2020 09:08:25 -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 S2406835AbgJPOzF (ORCPT + 99 others); Fri, 16 Oct 2020 10:55:05 -0400 Received: from asavdk4.altibox.net ([109.247.116.15]:58468 "EHLO asavdk4.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2394635AbgJPOzF (ORCPT ); Fri, 16 Oct 2020 10:55:05 -0400 Received: from ravnborg.org (unknown [188.228.123.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by asavdk4.altibox.net (Postfix) with ESMTPS id 1161B80752; Fri, 16 Oct 2020 16:55:01 +0200 (CEST) Date: Fri, 16 Oct 2020 16:55:00 +0200 From: Sam Ravnborg To: Bogdan Togorean Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, Thomas Zimmermann , Mike Looijmans , linux-kernel@vger.kernel.org, David Airlie , Rob Herring , Alexandru Ardelean Subject: Re: [PATCH 1/2] drm/adi: axi-hdmi-tx: Add support for AXI HDMI TX IP core Message-ID: <20201016145500.GA1325536@ravnborg.org> References: <20201005141226.180655-1-bogdan.togorean@analog.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201005141226.180655-1-bogdan.togorean@analog.com> X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=fu7ymmwf c=1 sm=1 tr=0 a=S6zTFyMACwkrwXSdXUNehg==:117 a=S6zTFyMACwkrwXSdXUNehg==:17 a=kj9zAlcOel0A:10 a=gAnH3GRIAAAA:8 a=6SQYn8MF9XToLfwsykcA:9 a=CjuIK1q_8ugA:10 a=oVHKYsEdi7-vN-J5QA_j:22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Bogdan On Mon, Oct 05, 2020 at 05:12:08PM +0300, Bogdan Togorean wrote: > From: Lars-Peter Clausen > > The AXI HDMI HDL driver is the driver for the HDL graphics core which is > used on various FPGA designs. It's mostly used to interface with the > ADV7511 driver on some Zynq boards (e.g. ZC702 & ZedBoard). > > Link: https://wiki.analog.com/resources/tools-software/linux-drivers/drm/hdl-axi-hdmi > Link: https://wiki.analog.com/resources/fpga/docs/axi_hdmi_tx Thanks for submitting the driver - a few high level comments after browsing the driver: - Use drmm_mode_config_init() to utilize new cleanup - Look at other uses of drm_driver - there is macros that makes this much simpler / smaller - Use devm_drm_dev_alloc() to allocate axi_hdmi_tx_private To do so embed drm_device in axi_hdmi_tx_private - which is the way to do it today - Do not use ddev->dev_private, it is deprecated - Use dev_err_probe() when you risk to see a PROBE_DEFER - In all include blocks sort the include alphabetically - Use the new interface to drm_bridge_attach() - where display driver creates the connector - See if the Kconfig selects can be trimmed - the framebuffer releated selects looks wrong (others get it wrong too) - Check if you can use the simple encoder - see drm_simple_encoder_init() If this is a simple one plane, one crtc display driver then it should use the drm_simple_* support. Or the changelog should explain why not. We want the drivers as simple as we can - and they shall use as much of the helper infrastructure as they can. We continue to develop the helper infrastructure so it is expected that there is some lacking behind as is the case here. Sam