Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5246315imu; Wed, 19 Dec 2018 07:59:38 -0800 (PST) X-Google-Smtp-Source: AFSGD/W5UAH5rWNE196M+EPEV7IgJu/6F859CVAR1WOWpNxoKrPEH/d6/pnndzTkgfu2gzxmEDjD X-Received: by 2002:a17:902:b90b:: with SMTP id bf11mr20479354plb.284.1545235178590; Wed, 19 Dec 2018 07:59:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545235178; cv=none; d=google.com; s=arc-20160816; b=QWonVkJvlrr9iWHS0B7o4cSQAGDIanWtl1JYCrwJzoETyge3kTJlEMmI4TGp6VLqsL ojHh6g85fwPISxHLBOIl3qJUUWuYf6Vf21RbXzqwt4a7X6iHdcznESXqhpa+XiyTfpYP HBIG+ZVGbxFKchYA0qaFngRG+9SnQKinHtpwR3dhP8hg2uGqk5uX+LT9HJjWSca1w7Lu nEzJnLjJ5G/0slNVk4h44godqnxGK03ro/AnYYgF2skjtu+K4DPebGQmwx1HPVrddPvf 3sSPs9z8jK0XwwsDrFu0G3xuyrJoz+zw9g5SyY0zVI/BMIAT2rwvaYRb722r6oeqbMza sHNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:to :from:date:dkim-signature; bh=6lvsHz+mNNpJyknPVPFM8KND/wzNCgnfZSifRD+HhKc=; b=P0Dodw534LzgXzHfBlRhri1r0Yix9jhC2XT/+LSo29ToGB03nPNJi21Q/ZAwj4hMnD 0Z08Q/UPb1WUO7c6C5XVp9bDJ+7BXxCuCHTqC3EXi8M/2yqw87JNVjThY1qIuoMSyRjy jIubT8ii0wMoChj1qFdcGdv9nKimOh6zeBJ976nVvbwZEF3XWAyO9nTPbZ0fZsCa/AGy K8LbROxnGF7XuB3sjqQKiRSrL6C1xoHNSRVBOzpejqmgkyGnD+sUHD9ggVrwOLN7w4Ox QJgqCgL5npF7SxFdOxjzzk5E0zPd7VMTCD7zLzh63FyIexQQTvCBgOvk5JiGAnsgNRqO McTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GY46YC+E; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v16si15944899pgg.290.2018.12.19.07.59.22; Wed, 19 Dec 2018 07:59:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GY46YC+E; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728585AbeLSPFD (ORCPT + 99 others); Wed, 19 Dec 2018 10:05:03 -0500 Received: from mail.kernel.org ([198.145.29.99]:37164 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727071AbeLSPFC (ORCPT ); Wed, 19 Dec 2018 10:05:02 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9FD4D20874; Wed, 19 Dec 2018 15:05:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1545231902; bh=ZRQ0eu16f5oAPxPyA5eKjBCN2sadEwOj0SLRuZ9s1Yg=; h=Date:From:To:Subject:References:In-Reply-To:From; b=GY46YC+EqnLETSXH1afaUzvkxZfL3QPUL1WrUP6w7Qm+7JxLnW5dn/Y+dUi+4t+Pd SiKp7DBQQpkb0Q8cfygO9ZU+u9vudsbCSYsyVZ0moRiX7QHr7FSZy7OvfhstV860Ss mWC93Pxltj6zOTLr2fxAM1ohB4tYp2rWOY840HHs= Date: Wed, 19 Dec 2018 16:04:59 +0100 From: Greg Kroah-Hartman To: Ramalingam C , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, seanpaul@chromium.org, tomas.winkler@intel.com, uma.shankar@intel.com, ville.syrjala@linux.intel.com, chris@chris-wilson.co.uk, Kate Stewart , Thomas Gleixner , Philippe Ombredanne , linux-kernel@vger.kernel.org Subject: Re: [PATCH v9 04/39] component: alloc component_match without any comp to match Message-ID: <20181219150459.GA25653@kroah.com> References: <1544673701-6353-1-git-send-email-ramalingam.c@intel.com> <1544673701-6353-5-git-send-email-ramalingam.c@intel.com> <20181219134245.GB21184@phenom.ffwll.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181219134245.GB21184@phenom.ffwll.local> User-Agent: Mutt/1.11.1 (2018-12-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 19, 2018 at 02:42:45PM +0100, Daniel Vetter wrote: > On Thu, Dec 13, 2018 at 09:31:06AM +0530, Ramalingam C wrote: > > If all the components associated to a component master is not added > > to the component framework due to the HW capability or Kconfig > > selection, component_match will be NULL at > > component_master_add_with_match(). > > > > To avoid this, component_match_alloc() is added to the framework, > > to allcoate the struct component_match with zero associated components. > > Hence component master can be added with a component_match with zero > > associated components. > > > > This helps the component master bind call to get triggered, > > even if no component is registered for that particular master. > > > > This is meant for big PCI device drivers where small/optional > > features are external components, and based on usecases different > > combination of components are build as entire driver. > > > > In such PCI device driver Load, if we use the component master for > > waiting for few components(features) availability, only if they are > > supported by the underlying HW, then we need to allocate memory for > > component_match using the API introduced in this change before > > the call to component_master_add_with_match. > > > > v2: > > No Change. > > > > Signed-off-by: Ramalingam C > > Suggested-by: Daniel Vetter > > Cc: Greg Kroah-Hartman > > Cc: Kate Stewart > > Cc: Thomas Gleixner > > Cc: Philippe Ombredanne > > Cc: linux-kernel@vger.kernel.org > > Reviewed-by: Daniel Vetter > > Greg, I expect the i915 feature that needs this will only land in 4.22. > I'm also not aware of anyone else using this (all the other component > users always use components). How do you want to get this landed? > > I think either getting this into 4.21, or an ack for merging through drm > trees would work well for us. I have no objection to you taking this through the drm tree. As I really do not know the component code at all (that would be Russell King), feel free to add my: Acked-by: Greg Kroah-Hartman as it looks sane to me. thanks, greg k-h