Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6321139rwb; Tue, 22 Nov 2022 11:37:50 -0800 (PST) X-Google-Smtp-Source: AA0mqf6JQ290RNMur+rtmED3JBJA90fXHNKg6xv8vIzArycunXLqVEfQcg+EOWgYSIJBWNaMucQw X-Received: by 2002:a17:906:850d:b0:7ae:21bc:89f0 with SMTP id i13-20020a170906850d00b007ae21bc89f0mr20838369ejx.132.1669145870223; Tue, 22 Nov 2022 11:37:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669145870; cv=none; d=google.com; s=arc-20160816; b=z7Ed6GjzEP6YJOaksIyNR/FPjkE1xc5yMj+80uNn0XwBje7o369hsStipnzHDrioF5 03lFoFM8lU77HqZJzOXuW45rpV5TMfmxtD1rdcQWulF8XtCN4A6KY1c89wcSwmVqaCST hX3LNyfnfWLTGghx1LJOiss6TFERvwPklFy35x27d2eZdp3dyjmhqfhrvuCUiwGEWK6p /F5uMy2TmQbzl/F6Thek4+ugB/DscdqTi1H6TsxO0MiEoMPLgItDIUVJR83MzyccaLCL rAV/ezxMs6ytuxUQBoSXjqFpasnVvrbYUaoPkLEh1adWpAfpKkrMDx6xRxUeK0OJa4zJ X8ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=V113i9op2pduVlxmzasvaIEvnqTrh+10a7z1AWq+aEg=; b=hed1utMTnRMbiq6pwMA0kgo7xGypGVrWhFhbEzMIWDHhaQGDyKHo1WF30HehVQggD+ qylDAY5oBmGR3H9e/nTcGSRlIR8QIbXaNQ44wVgmEIiCohfGQ1gois0gdrod6wUWmulg tOVqbdtL5ZbbefNoz4LVj5RdyLkkGMahwR9MgO+MHJGnbMLsnNCM4h58eEJIUKXywxoz Fu8P0hPLbXYoeMydvm7mrWUNHuU8/Lu/4KH4NnuSzxvxOniW2yPVGotQxUnvy17VAPQF dxja46zsPl9uDBgnSfz4ExWkFy8Eznd5VcLGvO7xYNan8NfR1UiNIg0sXHzgaBzjG9Hq l7qQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=DBN3eB8V; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xd9-20020a170907078900b007addbdb9fbbsi9142986ejb.558.2022.11.22.11.37.27; Tue, 22 Nov 2022 11:37:50 -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=@chromium.org header.s=google header.b=DBN3eB8V; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234536AbiKVTFk (ORCPT + 90 others); Tue, 22 Nov 2022 14:05:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234693AbiKVTFT (ORCPT ); Tue, 22 Nov 2022 14:05:19 -0500 Received: from mail-qv1-xf2c.google.com (mail-qv1-xf2c.google.com [IPv6:2607:f8b0:4864:20::f2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2812F8A142 for ; Tue, 22 Nov 2022 11:05:16 -0800 (PST) Received: by mail-qv1-xf2c.google.com with SMTP id s18so9130638qvo.9 for ; Tue, 22 Nov 2022 11:05:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=V113i9op2pduVlxmzasvaIEvnqTrh+10a7z1AWq+aEg=; b=DBN3eB8VZE6euKV0t6YywqYDdM8aZxRa6ITHKBt4yJZC3AJTs9exx/n7bFt9NNjUKr 5CjoFGf2TLv9zR78cgumEbZbl8oR5DgMThLgtJ+KaaaS3gzcFVHTEufJFWw782w3jmc1 /99JGLlaeNSdOl+n1kP9dtSZgkJV+TFm5U9I0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=V113i9op2pduVlxmzasvaIEvnqTrh+10a7z1AWq+aEg=; b=EFThtIzdqKQP6igH+R8GTHmQPB1WDz3UEWDnypdH+fe2LaPDeXhmrQ+ACBq4+/6eYY xEp7SfADdU2szs+US78tZoHASCpUmp9rjmaVY8AMA4qU8gjKqSU7EdLy/2X9qOHd+QjY py9LHDCHnlbFCyO3BuwHqXbQ7bmANGTuv+1N4igoO2h+aagpJRtJvgj+hnRuTWaj+mVP NtyqdmID2oHqBUnFyA0nKH18/q965GgyxyhWi4eZOgdEPGor5aktxN9k6jXL2aNa3hnV jnbZhcdi7Y+JVjbGcFL75c7Ob2ldJ7Jfdk8Iufpr74P4b+LrEwFK0t29acFBl3kisBoy JWvg== X-Gm-Message-State: ANoB5pkhgpaFX9MmymT4dWEIDamRAJMgq+Fv9DQncyHg5aJkWqNx8q9P BusOR5tEB26aWj1Vp/uIyskSLipJmttZcTjZVnHsgl77TIw= X-Received: by 2002:ad4:4c03:0:b0:4bc:182e:78c2 with SMTP id bz3-20020ad44c03000000b004bc182e78c2mr4883234qvb.2.1669143915309; Tue, 22 Nov 2022 11:05:15 -0800 (PST) MIME-Version: 1.0 References: <20221121201337.2772216-1-pmalani@chromium.org> <20221121201337.2772216-2-pmalani@chromium.org> In-Reply-To: From: Prashant Malani Date: Tue, 22 Nov 2022 11:05:04 -0800 Message-ID: Subject: Re: [PATCH 1/2] usb: typec: Add helper to get partner device struct To: Heikki Krogerus Cc: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, chrome-platform@lists.linux.dev, Benson Leung , Greg Kroah-Hartman , Guenter Roeck Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 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 again! -Prashant