Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp490098lqb; Wed, 17 Apr 2024 02:28:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWP4YSfkotH7afzvN2Xp9Wvap4gRu4vw+6wSEkmYNOaj1BoF4PF2mP8uNNEHx73AC++FL82oCKHVoy2/tT1yMLfquG1YB/f27hPEGzJmg== X-Google-Smtp-Source: AGHT+IFaP5YNttbtp+NCptmqEiMfOzjo+8LkUqIe5e0C5E3b/DuQ3gfaoxMJcdHOZr/wY4T5tBH+ X-Received: by 2002:a17:903:48c:b0:1e4:425f:5795 with SMTP id jj12-20020a170903048c00b001e4425f5795mr11648109plb.58.1713346105850; Wed, 17 Apr 2024 02:28:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713346105; cv=pass; d=google.com; s=arc-20160816; b=bL6WHeM/pXsNHjPtJSrQo8CiVgipHBy2/sBQvXaUM8W8gHpS9Ru7ODyqU/dhCZRNfM rzfhF5OBHKRaOVMUt3qKTQdR5B/7VgD8XvePFnLJP6fttIaLh3nMMJsWupaYyPDp/nSf 3TEtobBO25Ni7O7O0UfCQqu/8VwI58WZSsee+7c35nAL96fogjETv/tDAfvq3JQIZg3C 5eNSm3q8CE9vRQDbAXvUgqN6KtDslnHdTziW3cZZA8JRr+CZhPWIeuhwbZeG5vUR2fdY fn24hcblAVi8pnnUEd2czmECjojfh+DrG5qfyt4PCKOTuHINAAwJRi43XsP2DVLw/LBT cu4g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=OzG9GBsXBovuJmUFUSaC7oWWjMYql0ItqvH++nCzOQw=; fh=q4q34w2+CjdNieU1b1liBjwI9ovGI9y3kXoJBlxEEyE=; b=0Y37ZmBwIIb6v9NxK3eAMYpH2PZqCFJYHjeHzqpy2bXEIAqvvBMz51w3ISTpm1w7sg B/WDJ281nG2YmRemKMi8fIm7kYsD44lyKkQn4pihVY5B/Dl6qBaT0CfMBeBy0jgMtsBJ +ExYBTOkI5mRTaVika8X2JihqOuME4H5gWN/5u25WxkZ1CVrTdp8wOgQOXEXU+RGEPHS Opq1AtEaANfx0Z6z3L4RgijchbGQpjlco9yiQzKEqdLi8VXrZRiI/mdAMrdHlTr60SO+ e/v1e24p5H8/CfL66FMjT+cB4MuErWK+0GQkRRvhBLMRKNRgYT/FEkxQlfXQcfxgEuEG tTCw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=t4oQDr5h; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-148230-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148230-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id z17-20020a170902ccd100b001e7d4e1a88esi2673763ple.42.2024.04.17.02.28.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 02:28:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-148230-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=t4oQDr5h; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-148230-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148230-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id D26CAB20E0F for ; Wed, 17 Apr 2024 09:28:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 269D112F59A; Wed, 17 Apr 2024 09:28:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="t4oQDr5h" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3E7E0E572 for ; Wed, 17 Apr 2024 09:28:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713346095; cv=none; b=sT5awzpg7MEmvp16CzBuasxBGPqwWpGjw/IBYhWAle7ShtsrTf8suNa+owaIMnNUvI/w3HDHqwllr3pn4RpZ1hWTdjo5Y95jeALdy2n7I795dPpB1QeqgqfjSqWKAyVzGcog7aDFfWJcdypWYY/wyBMvsYV+hNrCuzI8o0kZa8k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713346095; c=relaxed/simple; bh=E4NxfokkS134BQqYi4l9d24KTL7bidk0mUYpB0lh7pY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NYXbbXYw1mnbOSttS/U4c37Hixmk3dtxOKAPtEo7+VzrjB6tMPG89iG2iPENLBOjaHQF6LHMP58aUkNkjjOX9+kOtG2wjeNTIdodRWFf3urw3NQak8TyLlXPDH4HwCmrrfDP4WtX18c5A8gP+wK0pj632yjMk93GYAk24Fbp1Dw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=t4oQDr5h; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 61A6FC072AA; Wed, 17 Apr 2024 09:28:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1713346094; bh=E4NxfokkS134BQqYi4l9d24KTL7bidk0mUYpB0lh7pY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=t4oQDr5h3H7bnXCR4Cr7SVoVflqDgciWtzCI+XZ1BRaSCxfdTgH/0Db67Z3HjnZGi M2rQLFsltdSnsvpgsnvu5zUe2b/7uWjUEE4xAL9nwxKI2yUJkdlYAtALzvMkg+FYcm ltWSGy0EFIIYcm6hQwSdQmADIwIeSTKtlluGXBm0= Date: Wed, 17 Apr 2024 11:28:12 +0200 From: Greg Kroah-Hartman To: Herman van Hazendonk Cc: "Rafael J. Wysocki" , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Linus Walleij Subject: Re: [PATCH] component: Support masters with no subcomponents Message-ID: <2024041713-devalue-unsightly-56cb@gregkh> References: <20240417-component-dummy-v1-1-b0854665c760@herrie.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240417-component-dummy-v1-1-b0854665c760@herrie.org> On Wed, Apr 17, 2024 at 11:12:09AM +0200, Herman van Hazendonk wrote: > This happens in the MSM DRM driver when it is used > without any subcomponents, which is a special corner > case. > > If the MDP4 is used with nothing but the LVDS display, > we get this problem that no components are found since > the LVDS is part of the MDP4 itself. > > We cannot use a NULL match, so create a dummy match > with no components for this case so the driver will > still probe nicely without adding a secondary > complicated probe() path to the MSM DRM driver. > > Signed-off-by: Linus Walleij > Signed-off-by: Herman van Hazendonk > --- > This happens in the MSM DRM driver when it is used > without any subcomponents, which is a special corner > case. > > If the MDP4 is used with nothing but the LVDS display, > we get this problem that no components are found since > the LVDS is part of the MDP4 itself. > > We cannot use a NULL match, so create a dummy match > with no components for this case so the driver will > still probe nicely without adding a secondary > complicated probe() path to the MSM DRM driver. Why is the text duplicated here twice? Also, why are you adding complexity to the core for something that has not been an issue for any other device? Shouldn't the driver need to handle this instead if it wishes to use the component code? Will this change affect any other in-tree user? thanks, greg k-h