Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2083014rwr; Fri, 21 Apr 2023 04:11:47 -0700 (PDT) X-Google-Smtp-Source: AKy350YD7HgEhumKyqh7XrTB8LBjDbOCKCwH7/A1WE7mQtnNlddMze9+Uic6/HBj5XPmi3Y4g/oW X-Received: by 2002:a05:6a20:440d:b0:dd:dfe4:f06a with SMTP id ce13-20020a056a20440d00b000dddfe4f06amr5386161pzb.3.1682075506739; Fri, 21 Apr 2023 04:11:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682075506; cv=none; d=google.com; s=arc-20160816; b=hF3qiWez2HDDnPwZKZSIYSZYsr2sP6Ul2DclBITImMgN/qafkj/AKGhtp8e7SXubcH MA16h+ewLO8xoGyXxJphH21yRirV4aVlrjaFRTRgA7q1yC/TGwHCR8q0AKkRfflfc3u7 FioXg6RLbd98/jtc4zRjdBn4bi1Rbpyrx9Y5HAtm27/AWY0wS5JtMweCkXsYucIGwnY0 d4XvBReXuOhPqcj+lErfpFs7lZ5j1O5dMLy7EvdE+pzGFhijbHCxjCD4e/3spImdR24k 6hgddOXadYj7ovuY3onxohZz/1mOjNbVNvZ8Ac/vh/Zg0jaAKZvNvMVgej/Boeamf2+v x2NA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=B9ponSIB72jgP4AESIvCA5L4KyeDHUKKzw+5O4Ncw/M=; b=LJ5AFxD/44F48cwDsD4zpDzdGtsB115Tfe9ZnhPuWg6XvRXsdzCaZC+G2Ed53rW0G9 9buC74Qk2xr20NtrS3Q8DMf0LWw4fgWut2nNR/J9hLIEdMzh3lk+aYeg2/5i5czuJmeF cK6SP1M8zgnWIrVVGSTYH9LmchJJRgh5e+i0h1Cl9NkcaplRb5Dkosv/B9n125W7XuEZ q9ikHZj4Is5/5lhCSR2wZCxSXouONkufiyCW2TZbFIt/AJl/V35iIR2HiOKHtOGJSlK7 jSsj3iTnm3ek3DBG7wIV/9VV5z+tXslZhf0mPjHpSdZ2NlowOYrDyl/KDeMo4qaA17Jo 6IZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="TJohQZI/"; 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 u12-20020a63600c000000b00524b2939727si4479462pgb.14.2023.04.21.04.11.24; Fri, 21 Apr 2023 04:11:46 -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="TJohQZI/"; 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 S231161AbjDULJN (ORCPT + 99 others); Fri, 21 Apr 2023 07:09:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229575AbjDULJM (ORCPT ); Fri, 21 Apr 2023 07:09:12 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D43193F6; Fri, 21 Apr 2023 04:09:11 -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 9D01061654; Fri, 21 Apr 2023 11:09:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8CF3FC433EF; Fri, 21 Apr 2023 11:09:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1682075350; bh=lmNia07ZER0CBxltSg2zLh3RRHlpope5dUs5elkjwww=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TJohQZI/1n5YgSB2/dKB/fsfDxMle61fpiSt9jLuEWEOTbBdZzVlsl5iMwsFNU0bj 9rHI6npDEXkTk+KznKGXkIP/l7QQGUH1TaIIj0wH02wAHI7yZDHZvBQQQ0xeOFmlPH f7F9c4pqac8HEgPC6aHfMWe45hiItfdNJkjQXa8k= Date: Fri, 21 Apr 2023 13:08:55 +0200 From: Greg Kroah-Hartman To: Stanley =?utf-8?B?Q2hhbmdb5piM6IKy5b63XQ==?= 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 08:32:19AM +0000, Stanley Chang[昌育德] wrote: > > > > 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. > > > > In this stage, we usb phy driver is not at linux upstream. Then obviously we can not take this change (nor would you want us to.) > For the android GKI, we have to add this callback to upstream or use the vendor hook of android. > I will plan to upstream the realtek usb phy driver. As you already have this driver, why not send it to us now? thanks, greg k-h