Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp700504pxf; Thu, 1 Apr 2021 11:13:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkU05Vpkib9vBV7ySzm/j4RQke1moRrvUyKk+h+NeUVrucdi3SGSjZNZwCJn5se/Uou7Wu X-Received: by 2002:a17:906:a51:: with SMTP id x17mr10612343ejf.25.1617300832076; Thu, 01 Apr 2021 11:13:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617300832; cv=none; d=google.com; s=arc-20160816; b=NLkQZ018V3YFS3oFkQR9BpdzRsia8Ie6QoOsYpSdiILC+mp3Xcph6JRI4Umi0EM3v4 w1AcYe//wWFbIiRFsacCUNUcsXCqzysGtKHbL5+RWulf9ExQnKxRcCMbLXMP86XOSypH pOCept/XVASx4mwo8Uae3kzD84rXatHKCzy2zAzh/wS4icaTV10h4LP/o+81xlTeSZYh efIoValqdKbe/dZXA5gTISNW78lHAtCgFvXuiJR0gJp6YwQjUpmjnV/DnZ7bQD4svLPe KIi5Ew6Kwvdm5u97Uf2Von9Ikc9R2un+9bayBzs/xTY/Frlt54W19u2qo/5enTyEQ/fi NURw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :organization:in-reply-to:subject:cc:to:from:ironport-sdr :ironport-sdr; bh=q5NuzULeqCPDVEEb/5u5asODUpLIL+c6mBvzH8WYcoA=; b=PpVgRqVHAlxy3W7vqoIIcUSOS/ePU38cL0BOyOtyvItlYRS3NYnjz0SO8h15xUdZkz Rs0oYgf+WQTy9Oj20QNKF7yknY0DrEVibkj+KLWrUbiy0VApJyA7pctZ+7hiRVKtVzPr qAU0AwDJlum5AHX8ASKpxp2bXdYK43tG4gcg4iJFydJHZwmuai4o3tFPtiKjuifkpuNN Bc3/DrVnxSrWqNCdC+6xPiZEWKKpUWv5CSZNlPSrp4QDZf1lgU3VFu6pHvXNsbTFMg5w ouUoh/H/6FwMQproUkHzaX4hG2nFhmeXwCauaYx+Bk6mL46PPw/H3prwrJh6sehiiFm8 t7KA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d5si4565283edr.381.2021.04.01.11.13.28; Thu, 01 Apr 2021 11:13:52 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238695AbhDASJz (ORCPT + 99 others); Thu, 1 Apr 2021 14:09:55 -0400 Received: from mga11.intel.com ([192.55.52.93]:15100 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236526AbhDARys (ORCPT ); Thu, 1 Apr 2021 13:54:48 -0400 IronPort-SDR: VbTwa833wtDfiYnYgPXW1eJ3ghvP3244r5/ispRtPtRBkx7Ud0dpGdEdRRiXD4j8zwpukZou+l Jz5cLs3aNSgw== X-IronPort-AV: E=McAfee;i="6000,8403,9941"; a="188983926" X-IronPort-AV: E=Sophos;i="5.81,296,1610438400"; d="scan'208";a="188983926" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Apr 2021 06:31:28 -0700 IronPort-SDR: 5tvB92jiRMGNLabXybckCSLFFBmaAQU7vUD+qPiiyyb+IZu2wKXYLWG2p2afaEIA03ZnIMWo2v zWr4SP+SYDZg== X-IronPort-AV: E=Sophos;i="5.81,296,1610438400"; d="scan'208";a="419204532" Received: from shergane-mobl.ger.corp.intel.com (HELO localhost) ([10.252.41.188]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Apr 2021 06:31:08 -0700 From: Jani Nikula To: Lyude Paul , nouveau@lists.freedesktop.org, dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, intel-gfx@lists.freedesktop.org Cc: Alex Deucher , Christian =?utf-8?Q?K=C3=B6n?= =?utf-8?Q?ig?= , David Airlie , Daniel Vetter , Harry Wentland , Leo Li , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Joonas Lahtinen , Rodrigo Vivi , Rob Clark , Sean Paul , Ben Skeggs , Thierry Reding , Jonathan Hunter , Hyun Kwon , Michal Simek , Luben Tuikov , Oleg Vasilev , Mikita Lipski , Eryk Brol , Rodrigo Siqueira , "Jerry \(Fangzhi\) Zuo" , Chris Park , Sam Ravnborg , Joe Perches , Vasily Khoruzhick , Guido =?utf-8?Q?G=C3=BCnther?= , Boris Brezillon , Andy Yan , Marek Szyprowski , Tomi Valkeinen , Swapnil Jakhade , Yuti Amonkar , Jyri Sarha , Julia Lawall , Ville =?utf-8?B?U3lyasOkbMOk?= , Imre Deak , Matt Roper , Lucas De Marchi , open list , "open list\:DRM DRIVER FOR MSM ADRENO GPU" , "open list\:DRM DRIVER FOR MSM ADRENO GPU" , "open list\:DRM DRIVERS FOR NVIDIA TEGRA" , "moderated list\:ARM\/ZYNQ ARCHITECTURE" Subject: Re: [PATCH v2 05/20] drm/dp: Add backpointer to drm_device in drm_dp_aux In-Reply-To: <20210326203807.105754-6-lyude@redhat.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20210326203807.105754-1-lyude@redhat.com> <20210326203807.105754-6-lyude@redhat.com> Date: Thu, 01 Apr 2021 16:31:05 +0300 Message-ID: <87eefum8rq.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 26 Mar 2021, Lyude Paul wrote: > * The @dev field should be set to a pointer to the device that implements the > - * AUX channel. > + * AUX channel. As well, the @drm_dev field should be set to the &drm_device > + * that will be using this AUX channel as early as possible. For many graphics > + * drivers this should happen before drm_dp_aux_init(), however it's perfectly > + * fine to set this field later so long as it's assigned before calling > + * drm_dp_aux_register(). Perhaps add a follow-up patch to actually ensure this is the case in drm_dp_aux_register()? > * > * The @name field may be used to specify the name of the I2C adapter. If set to > * %NULL, dev_name() of @dev will be used. > @@ -1877,6 +1883,7 @@ struct drm_dp_aux { > const char *name; > struct i2c_adapter ddc; > struct device *dev; > + struct drm_device *drm_dev; Bikeshed, I would probably have called it just drm for brevity, but no strong feelings. BR, Jani. -- Jani Nikula, Intel Open Source Graphics Center