Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2581591pxb; Tue, 21 Sep 2021 03:08:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyn4yWNRlLMc/p++K0QKhewQ6vL0OGNf8R2+B4igeY7QwElzDZhKkRtqp1VkQX7E+oFtfoI X-Received: by 2002:a17:906:5e43:: with SMTP id b3mr17164644eju.424.1632218936838; Tue, 21 Sep 2021 03:08:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632218936; cv=none; d=google.com; s=arc-20160816; b=xhKtVmN5Cerw9xrcuUJZYr8WLO3QxZcakhymmSFOaCJhgpzz2kSv/9/1m0X4VFfaRi 0sc6E4NaUOJuIgC/KU7frNoXh/26JmWGvcHijubWsYmmOZA4M0bXjZBpkN9MRQU+uu8y SQpDmHWbk5LGJVxhIlS6RHiPiS9NFjPUYqihkuFoBAc1GKpQpfAPfnSr8inpNRaaZB5Z 1yIXdvfeAlTEuENFFQyrvi38+TVXwsAg91X+KIwmxnXzu2qabezCyqRAOdwItqaCbMM8 cKS9VQEbaQJTt9dfmRTpXlX1QlB8eYUMzaASZroBac7N4Fof431KnO3UuxtqpRq5yPBZ ilPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=mZNTueuLFyDZ2eW8EVgrsZzIIRAKijt8dRZAMlvRgsE=; b=RUcvZEGCK9mHdXvg8U5OqMvPk0asRekTSlA6fszjCjfLECH5HF0VruaaAv10IHGzkQ +MXzC3Ha1m99FpPXypjcI9I2QlIGgO9jiBheskMZ9ztQMV7Hxbqwrsz4onJZmVis/oQc rIAI7PmEirtjrJbGkmlnkeI3ohCSHVAIMmkexwoNFevQ5haTiwbHcXaBWeJdV9XWnGtV O0oudAjVmJjTs78onvrQ2fXJ5QfJd01JEgGgRcrBgbSm+Fcmg7ayMnMD6fkyud8sEEpi +MxVepv2ieC3MNZ1E5LQwMoYL/XBT90UqXEPo1fy/6DoCH/tk8w/hYbFos/fJrSE/M8v +dGg== 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 e7si23716555edk.96.2021.09.21.03.08.33; Tue, 21 Sep 2021 03:08:56 -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 S231835AbhIUKGM (ORCPT + 99 others); Tue, 21 Sep 2021 06:06:12 -0400 Received: from gloria.sntech.de ([185.11.138.130]:38244 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231635AbhIUKFl (ORCPT ); Tue, 21 Sep 2021 06:05:41 -0400 Received: from ip5f5a6e92.dynamic.kabel-deutschland.de ([95.90.110.146] helo=phil.lan) by gloria.sntech.de with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mScdE-0001rd-Hx; Tue, 21 Sep 2021 12:04:08 +0200 From: Heiko Stuebner To: Andy Yan , Alex Bee , Sandy Huang Cc: Heiko Stuebner , Daniel Vetter , linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Jonathan McDowell , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, David Airlie Subject: Re: [PATCH] drm/rockchip: handle non-platform devices in rockchip_drm_endpoint_is_subdriver Date: Tue, 21 Sep 2021 12:03:38 +0200 Message-Id: <163221857584.2031971.6026620150373954389.b4-ty@sntech.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210914150756.85190-1-knaerzche@gmail.com> References: <20210914150756.85190-1-knaerzche@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 14 Sep 2021 17:07:56 +0200, Alex Bee wrote: > As discussed at [1] rockchip_drm_endpoint_is_subdriver will currently always > return -ENODEV for non-platform-devices (e.g. external i2c bridges), what > makes them never being considered in rockchip_rgb_init. > > As suggested at [1] this additionally adds a of_device_is_available for > the node found, which will work for both platform and non-platform devices. > Also we can return early for non-platform-devices if they are enabled, > as rockchip_sub_drivers contains exclusively platform-devices. > > [...] Applied, thanks! [1/1] drm/rockchip: handle non-platform devices in rockchip_drm_endpoint_is_subdriver commit: 37825e07ab413187e1ea078bc33dcdb835008be2 Best regards, -- Heiko Stuebner