Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1926748rwr; Fri, 21 Apr 2023 01:25:14 -0700 (PDT) X-Google-Smtp-Source: AKy350Yjf2yals3h+LJ4nx0l4TTVZF2nRhgXXJkYBI13hzb1fDn6zTlPEQqZA1e2QYL655o0tsj7 X-Received: by 2002:a17:903:888:b0:1a8:5083:21dd with SMTP id kt8-20020a170903088800b001a8508321ddmr4286740plb.41.1682065514438; Fri, 21 Apr 2023 01:25:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682065514; cv=none; d=google.com; s=arc-20160816; b=Qf6XP9bdfMWEHMYlIFetTuAaorDJKcxzy4tVO/VqWhYjP71EA+qvw9lQBZ/ZQUAepB D/h08tPwj15sPbsi6QlxeKjeV7e8j3v+SicLQu6JCOyghhNLaSJka0z+As0KcRQ21W8q ou08P5bmtxzJgG/gOeM+vesK7SJP+KJ2yueQMIix9s2iNZnAK2XZOSEBJy5r0RowsPzb O7o7/rAtUFslPkUkkgnQ5YdDZGcIJ9d4Ob7pC43WYLNF0KWolWGBlifyKYlvJ16iH9sM T1SOxW/aSCFsx7x4bcuRo7Tleyc7ApaJEWN5y3iHyHjjKqBoSXMvxc/pJSJI5TdM5jHY rzFA== 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=JetgxhwqzYL6YLMtCzSboMzaxXng923jfVva7S/7MXQ=; b=fLRhQSAYbnhklmrbdQe+G7Dl5LMeqqts+9eSMN2FY5dowg0bTuyq8XYOXcNaBavidL RCdVJ5hlmuDnuslU0xqJinyeD17iM8+nhkPhCsy4e/izLvSXbLQRwnPTj4UKQUPvmzK8 BKh8u/fDfRSgVEobqrQSv6TYf/GL+O/OznQCzi6R3zI4Yob6OmtHE5HMg1b6jbRBqUkS D2yLH8LCbl+nEAZ6jDarYHQQpa+V+mCJ5GKe1yVKtNWyCgxn9nWstROeiWHvpEW3g8LW NRWvBNA8Y9kqjg6mgu67TeJ25Hbzgh7UvZyPbNenLhWEXEpcn4IVuuTPSi0W4UghkXPp oCFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jc50rMcR; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d3-20020a170903230300b001a6f93aa11asi4267586plh.497.2023.04.21.01.25.00; Fri, 21 Apr 2023 01:25:14 -0700 (PDT) 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=@linuxfoundation.org header.s=korg header.b=jc50rMcR; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231161AbjDUIUD (ORCPT + 99 others); Fri, 21 Apr 2023 04:20:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229882AbjDUIUC (ORCPT ); Fri, 21 Apr 2023 04:20:02 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CD99524B; Fri, 21 Apr 2023 01:20:01 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2B5DB64E38; Fri, 21 Apr 2023 08:20:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E3706C433D2; Fri, 21 Apr 2023 08:19:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1682065200; bh=WA3xrg142/hkPVe+A6GFv5GD7hvKC88OslgXgbkmlhk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jc50rMcRLMk5vIJzlaOApFgPwBDRiRTOXdk+51a2JPlVCa8LnXyU5PagUN1rWqxA4 lltrAI8JEOeS0avJaRUFxryAtYWFDVlT8Md8JjKZOcHW941nSxY5yyIW6ZDytTFl8c Kdw4h/05lR1XFBR2d4uLp1XLGv/enVlM84UK/D4E= Date: Fri, 21 Apr 2023 10:19:57 +0200 From: Greg Kroah-Hartman To: Stanley Chang Cc: Alan Stern , Douglas Anderson , Vincent Mailhol , Bhuvanesh Surachari , Mathias Nyman , Flavio Suligoi , Ray Chi , Michael Grzeschik , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] usb: phy: add usb phy notify port status API Message-ID: References: <20230421080333.18681-1-stanley_chang@realtek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230421080333.18681-1-stanley_chang@realtek.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Fri, Apr 21, 2023 at 04:03:31PM +0800, Stanley Chang wrote: > In Realtek SoC, the parameter of usb phy is designed to can dynamic > tuning base on port status. Therefore, add a notify callback of phy > driver when usb port status change. > > Signed-off-by: Stanley Chang > --- > drivers/usb/core/hub.c | 13 +++++++++++++ > include/linux/usb/phy.h | 14 ++++++++++++++ > 2 files changed, 27 insertions(+) We can not add callbacks in the kernel that are not actually used, otherwise they will just be instantly removed. Please submit any drivers that need this change at the same time so that we can verify that the callback is actually correct and needed, otherwise we can not take this change. thanks, greg k-h