Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2582966iof; Wed, 8 Jun 2022 07:58:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqpe6PkpTvi/vczo/ss0ej6yDw4UzeMSiXy+0Sk+Rjln1WRMPoMM6RJk6OeOh2DloiyvC5 X-Received: by 2002:a17:90b:3a8f:b0:1e8:7669:8a2f with SMTP id om15-20020a17090b3a8f00b001e876698a2fmr19556190pjb.55.1654700304498; Wed, 08 Jun 2022 07:58:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654700304; cv=none; d=google.com; s=arc-20160816; b=chWPNqJcGE4DOqMZieT5yoI6TOzAV9742hmYSj0pOs3zfqF1BNP5wFLmL+9/RCe5Km 1Mbd20N51nW9bHz2mOXZuvCKF6w+9H+Wufzi+x/npvhanXfK3KvCLlM2Cttu2i//3ngb lvMgVbHZegO9Xzf9nQ01JoY7SZQE/oLgrzsxBxEv2aC4wvN2HE1mXJwWt/zevs0DbLKC D8Um2mQbR5qsgP0N1KVtk7PfhsD0raxhH5QdxFgMACdUNyDymfkpQp58xBD8JWTqe+Ej qXAA80pvW8NR6e2JcFrq9fdKURhHprnIN6Ch1qmxUz4p+4yot6fhjzOFtJywJVYWeDmF I20A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=wy3q5swCJkf2ktsGowx7L5B+6fEwt7Bq5SRhOUfH3B4=; b=bjEOy72DJfOk+Ke9aui2bZCIyvAD3hoaPaCn4vZUWVB+MeLHxeedo11RUIZAIAKfPB 65jHznEhSGkhwWtWSgc/NFwpNKJOc1GGeTKOv/Df0j4Z7uD5fw2Mx4F8rtCSsDs+UAwD bqm5GHgeJzKE5HSX4vjO/08FkfDn0nsHjV2ffTLXXykHOsZvMgWzALtrDF5EFgEZciDk E6bSnhvWc9Q5+5au+GJlpcZ++VVTMklWdxQv6biX5p5mOa+gixKrRXwVYYG+rG/M6RxV VbbwzQc5/CEI4xc2QTSB2xAEO32FGJjfLc1aNEiIpuZloxd2yXfZ13UOt/BL8Srk2ufq 3oFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=aHw1jM5M; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id c11-20020a170903234b00b00164420193a0si30777834plh.404.2022.06.08.07.58.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 07:58:24 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=aHw1jM5M; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E96C01F1299; Wed, 8 Jun 2022 07:30:46 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241430AbiFHOam (ORCPT + 99 others); Wed, 8 Jun 2022 10:30:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241114AbiFHOak (ORCPT ); Wed, 8 Jun 2022 10:30:40 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 813801F7012; Wed, 8 Jun 2022 07:30:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1654698640; x=1686234640; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=wy3q5swCJkf2ktsGowx7L5B+6fEwt7Bq5SRhOUfH3B4=; b=aHw1jM5M9TAoJazR7PZr66XGMFagx+jOxxPNb8M+s+DoCKe/ke3AMDD7 WP7UvmpWCyT7Y4pIw+0JGd1z0j+MI3c5ysWX8alrpER+VzR9yYikO2orV reBiv319s3G6wFcjdDUkloc2Ts+nqH7uJl9ndXVsuUyJEdRsAmJcAKb4u E=; Received: from ironmsg07-lv.qualcomm.com ([10.47.202.151]) by alexa-out.qualcomm.com with ESMTP; 08 Jun 2022 07:30:39 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg07-lv.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2022 07:30:39 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Wed, 8 Jun 2022 07:30:38 -0700 Received: from [10.216.34.67] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Wed, 8 Jun 2022 07:30:33 -0700 Message-ID: <5c847f66-9caf-b303-2c25-b22e67a83c79@quicinc.com> Date: Wed, 8 Jun 2022 20:00:30 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH v2 2/3] usb: phy: Add devm_of_usb_get_phy_by_phandle Content-Language: en-US To: Sergey Shtylyov , Greg Kroah-Hartman , Rob Herring , Philipp Zabel , Krzysztof Kozlowski , Felipe Balbi , "Bjorn Andersson" CC: , , , , , , References: <1654276362-28930-1-git-send-email-quic_harshq@quicinc.com> <1654276362-28930-3-git-send-email-quic_harshq@quicinc.com> From: Harsh Agarwal In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE 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 On 6/6/2022 4:30 PM, Sergey Shtylyov wrote: > Hello! > > On 6/3/22 8:12 PM, Harsh Agarwal wrote: > >> Adding support for devm_of_usb_get_phy_by_phandle which allows >> us to get PHY phandles of a device declared inside lookup_node. >> >> Signed-off-by: Harsh Agarwal > [...] >> diff --git a/include/linux/usb/phy.h b/include/linux/usb/phy.h >> index e4de6bc..2581c72 100644 >> --- a/include/linux/usb/phy.h >> +++ b/include/linux/usb/phy.h > [...] >> @@ -249,6 +251,12 @@ static inline struct usb_phy *devm_usb_get_phy_by_phandle(struct device *dev, >> return ERR_PTR(-ENXIO); >> } >> >> +extern inline struct usb_phy *devm_of_usb_get_phy_by_phandle(struct device *dev, > *extern inline*? :-O > Shouldn't it be *static*? This was a typo. Will change it. Thanks > >> + const char *phandle, u8 index, struct device_node *lookup_node) >> +{ >> + return ERR_PTR(-ENXIO); >> +} >> + >> static inline struct usb_phy *devm_usb_get_phy_by_node(struct device *dev, >> struct device_node *node, struct notifier_block *nb) >> { > MBR, Sergey