Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7101008rwb; Wed, 23 Nov 2022 02:04:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf4S8P1/aYvFgCxw9W1HHzuK/RPocPYh9BlVftG9Qy5UsURoyjkC/YDgVSQ427WjKuf0Gynk X-Received: by 2002:a50:fe8d:0:b0:461:9183:834b with SMTP id d13-20020a50fe8d000000b004619183834bmr10437756edt.196.1669197846411; Wed, 23 Nov 2022 02:04:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669197846; cv=none; d=google.com; s=arc-20160816; b=U8EA+nRJ7vZ6fhzwpo40xJpr9aiQ2zL6xYkvox0D1hE/o2TVSQ6EKNsLj3++YhzTfq XxU63pLG4Kmy7XI9ywusFc8t9jHgFsysib6cOuSm9RjvWRH8oxrmOIutgfA4f5RMiFfQ VhJvnOjrTZ+D3uDjfw5sipEpNmvFdmGiMVL3/HY1Y5VJdCL+i7kpTIw92djTBtZalLJK bPvodfNnB3CJ7AikT0f4jaJq+3wNHiMiMrm0rlQRnYYXJSPOlzQB0rBZd4gySXnJE0FQ Q8T8OvuUtS607NK5PSTxAMS2jEPi/KKdcFvbwb4qtb33hrhmnHTd/4cYL8pDmxGxmZPg mjoQ== 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:dkim-signature; bh=t2DAxGe3J6p12vXX5SL5D3wCZRK/doOU6kri+rck6qQ=; b=LcKcH56L+z+REzeakZO8CiAVa8HYWPtuPmb4VrWNwVZWz0PiYlYEKb7WzpG9BkXrcb 8uzcZiDNF7jzGOQUHAXyQ+4pP6QOcb2bx9jUlrbsV9SGteB601nWUz2pvSdmpHMoYp2c n+wRkp048F4Obzea89429HAgwl0RQzGLi5vkKeBu0aRsp4KiE1DDPtgnM0gReAI3Ip11 +DzX3Fo5ff7ULU6WRJEgNyvX8T/w5UTRox6MjCp+HINIAEVrCq7Oxe+OSR8b3G+GnfOk drlSfb6ptwOZhdeoKeFUk/aRg9tGM9Vq1ETwjFuPBJ47/cq3wpmx1aACOojXDQDLNbUP IjyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=S3r8gikP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qf35-20020a1709077f2300b007ade22f401bsi17843093ejc.759.2022.11.23.02.03.44; Wed, 23 Nov 2022 02:04:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=S3r8gikP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236663AbiKWItO (ORCPT + 88 others); Wed, 23 Nov 2022 03:49:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236660AbiKWItF (ORCPT ); Wed, 23 Nov 2022 03:49:05 -0500 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2FBC14D0A; Wed, 23 Nov 2022 00:49:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669193344; x=1700729344; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=fgOfapqW2CoqDrEhOH22xK8eCPNP5ZTokn6bHwFpdvA=; b=S3r8gikPQDS8eFUkQGjaFLARx/6k7GtXdIMscakbylHxaAv/R0ZXdOM/ 2M7gXKfH9fUAUiW06DU00YTO8sRQy11gmMGWXwLwnYoxzTcJ0YfzB4pJa TzkOwLiK6wSz5Zs5prT/Lu0UQrf+YbqPkwo8gSPcw69hzUPf4kzStDOdH j3jtxUAT4ZqY6C2V56t5ff1jsEs8zw9QD8CCdHfem4SBxlDifMacwWMmp CdBzAaJtSAxYHMsvL2Xu6irCwoTtH1eDDn58M+0kXUUp2Nru8CCvad4Qx 12Wx0hKap1tlA9F/J9yHf6kjyuXUPpNsgtkXTWjERApWrt1SnA9KlSyiT g==; X-IronPort-AV: E=McAfee;i="6500,9779,10539"; a="340894622" X-IronPort-AV: E=Sophos;i="5.96,186,1665471600"; d="scan'208";a="340894622" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Nov 2022 00:49:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10539"; a="784160188" X-IronPort-AV: E=Sophos;i="5.96,186,1665471600"; d="scan'208";a="784160188" Received: from kuha.fi.intel.com ([10.237.72.185]) by fmsmga001.fm.intel.com with SMTP; 23 Nov 2022 00:49:01 -0800 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Wed, 23 Nov 2022 10:49:01 +0200 Date: Wed, 23 Nov 2022 10:49:01 +0200 From: Heikki Krogerus To: Prashant Malani Cc: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, chrome-platform@lists.linux.dev, Benson Leung , Greg Kroah-Hartman , Guenter Roeck Subject: Re: [PATCH 1/2] usb: typec: Add helper to get partner device struct Message-ID: References: <20221121201337.2772216-1-pmalani@chromium.org> <20221121201337.2772216-2-pmalani@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 22, 2022 at 11:05:04AM -0800, Prashant Malani wrote: > Hi Heikki, > > Thanks for reviewing the patch. > > On Tue, Nov 22, 2022 at 1:58 AM Heikki Krogerus > wrote: > > > > Let's not loose the protection around these devices unless there is no > > other way, and in this case there is. > > > > Please just create a wrapper for usb_power_delivery_register() instead: > > > > struct usb_power_delivery * > > typec_partner_usb_power_delivery_register(struct typec_partner *partner, > > struct usb_power_delivery_desc *desc) > > { > > return usb_power_delivery_register(&partner->dev, desc); > > } > > EXPORT_SYMBOL_GPL(typec_partner_usb_power_delivery_register); > > Sounds good. I'll send a v2 with the above change as patch 1 (instead > of the current patch 1). > > I will list you as the "Suggested-by" tag (but please let me know if > you'd like attribution stated differently). Thanks. Suggested-by is the correct tag IMO. cheers, -- heikki