Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2876209rwd; Fri, 19 May 2023 11:21:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4nHkg96T126oW7wTf2+oHyLOsCpo5Rozsr69hbAGF0aAKX/TuWtTvK1Ze1OamMeimhV3Ja X-Received: by 2002:a17:902:778c:b0:19c:3d78:6a54 with SMTP id o12-20020a170902778c00b0019c3d786a54mr2894555pll.14.1684520465842; Fri, 19 May 2023 11:21:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684520465; cv=none; d=google.com; s=arc-20160816; b=0zZ1yP5i7McEKT5NKeW4s+5AnGBH3swH1kOmSjwzS7rmAwD1pvksSjN29qGYx5OEml MEhMLwsm1Id9WWXP68zBT7UTRbloU/0m+/WSyS8Pd6D7nanh5svgaQ3+ksorNilnXFZM selAh04R9VBbqxY82MjJSfXt2C2Tptq1fCPZvuvrcQgEuWPLBXmnRuEzgV2A/IhWgvHj fSx/wn7jyAFXQyaEI+iosZ3mnuFBPPlek3wNzNLjGn85kKelHrexXv4w+NNSIubNBpQ0 SAxACkHq6WltzNfqT7yAwMeKIk5COHMx9P6feObrR1DXjmG6sHYw6aCoYZIiSkrmAnMv 05uA== 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=nV0e6ooWax3g7A1TXRArfuWG0sdo/p3J9hvN6GHfa20=; b=jRLVCL7sJuKQaln7+Gn/6Vl38As7tLQW8T+6nX2UgqANH4T4FXBLgD3LKG3yqtGy45 9TiwCzL/KVeSsSc/ksOe+4p+3Zs7hrrr5pCWUQGFcosZAAH96E5gCZptdfbD1qh1PVwn wgZvV/faqhCk9Hb4PRLGUjGkKbLDpMQTSwzu9KX8uAX83GcWiUitWdSbxQoZUvt8tTSn a/unuDDMEW9c+KgjY479NFEHHke5d8jQBzefhHNUagdm8o6/6NkT0TBwoexKSCvnh+1f RpXEQzJhp5Kt9hwDvZ/iratsx2Txt9PvctZXSwP4WaKzLbkBuTJNA7NWvlpfItEPJFG2 A04g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Aqw8D6mp; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 1-20020a170902ee4100b001ae5fe35b6esi3731252plo.261.2023.05.19.11.20.50; Fri, 19 May 2023 11:21:05 -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=@kernel.org header.s=k20201202 header.b=Aqw8D6mp; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232086AbjESRkY (ORCPT + 99 others); Fri, 19 May 2023 13:40:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231856AbjESRkW (ORCPT ); Fri, 19 May 2023 13:40:22 -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 9D2E2F9; Fri, 19 May 2023 10:40:21 -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 313F6617CA; Fri, 19 May 2023 17:40:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4EDEC433D2; Fri, 19 May 2023 17:40:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684518020; bh=UDkPTriVgF63ln4ZyrbQRph9MfKBLUZJt2i1hBGxbgI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Aqw8D6mpeQT4w0fcGePat4H8HZzBKIKWOeUIA8alAX2uA2qSAZBBelFH1hPRBkWB5 zCW7JnxXImPHDm1iFUam6V5xw63zRqh9PdXExsNYp081ytq/Tt16x0WpfMUCNOteX6 qBiUUORVTc5/nF6UChgQRNfB4VpikiTTxgof71VDpl6VjA3G0czOdDFRwvarH4XDND pQlyZ9tx184IAxdcTRxFt2ul+EkdzLzzf+bYtdqnSAAjuEFWZA9OBQNYtxCjAw9P6N D/Jgh9+OqviTJDwRB8ZudGMqBlFs6qx3Y0Pf4hWfzrXd6bpUg3KMCJ9IskzeXqQHQo q94fvn1FHRRcQ== Date: Fri, 19 May 2023 23:10:15 +0530 From: Vinod Koul To: Arnd Bergmann Cc: Stanley Chang , Paul Cercueil , Greg Kroah-Hartman , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alan Stern , Ray Chi , Bagas Sanjaya , Eugeniu Rosca , Michael Grzeschik , Matthias Kaehlcke , Flavio Suligoi , Mathias Nyman , Bhuvanesh Surachari , Linus Walleij , "linux-phy@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-usb@vger.kernel.org" Subject: Re: [PATCH v1 2/3] usb: phy: Add driver for the Realtek SoC USB 2.0/3.0 PHY Message-ID: References: <20230519045825.28369-1-stanley_chang@realtek.com> <20230519045825.28369-2-stanley_chang@realtek.com> <0d165c7efbb71a65803abddc364e1c5252b8b939.camel@crapouillou.net> <0ee8a26205a041cab9a787ec29201a9f@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=-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 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 19-05-23, 13:01, Arnd Bergmann wrote: > On Fri, May 19, 2023, at 12:58, Stanley Chang[昌育德] wrote: > >> > >> I'm pretty sure that drivers/usb/phy/ is deprecated now... > >> > >> New drivers should be written for the generic PHY subsystem in > >> drivers/phy/. > > Indeed, I missed that in my review. > > > Thanks for your reminder. > > Will drivers/usb/phy be removed? > > Is it not allowed to add new drivers? > > > > In our application, driver/phy is not suitable. > > We need to notify the phy driver when the USB hub port status changes. > > However, generic PHY drivers are designed for various device's PHY. > > And it seems inappropriate to add this function. So we choose to use > > driver/usb/phy. > > If you run into something that works in the old usbphy layer > but can't be done in drivers/phy, I think the better solution > would be to change the drivers/phy/ code to add this. The is correct, phy interfaces can be improved upon and have been added upon as and when we have users. FWIW there are already usb phy drivers in Generic phy susbystem, so you need to really justify why you need a new interface? -- ~Vinod