From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.216.42 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793090534; b=g7RphESyeVLqd9Pif8lOyAqFrO0DRN4dpM9lZ+HZVUYbPhPGUrLTo+QvqScc3AARctMc YyQG2v2K+JOAR1CTrX2VuUliIIXmWGTHIHAsVZahCQDT1kwQ7DmFvIhEu/A+iM01wJdYJ +Ug2ev3Nf0XI/nCV682pQ3oNYStngWStsH6rxEBTcSCnP++ch4qC9G2uA/WgmAo6uM7rS vuXK4VznbtEveNFacoGLAvfV/3Y3bosDAYSp+VmRzzJOkFP5Fl3uxbmmbFy5Rta/ZLZQk EYM56OIy3oK20OvVvkUQvxE3Lm5olEJOlWGG277mQcmWptVJpsefZRGJJqsj7gKKFHA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793090534; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:Content-Transfer-Encoding: In-Reply-To; bh=HO3eUNo6YHl/86Pkx4f7zdxkSoZXsSxNeQ0MlXL2Mv4=; b=VPrHEZX6hqoZxJK9gB8pZe8asphXMYfh6IEZ4vsx25EYkThjzqprXWGZ/W9YWktPESZv fFytEQKVrnc3hwT1e+v/xoJNT6FwD/+sAimjsDAuYXxaz8ZX1eKVnYyJP+TD+/UHH/bp1 Ue7HlLA/CSsbCnStS7In/XEtF35qrTch5JtOLYhD/EuLpgqwMSRjCigTV2yFYNFIMgR+d S82AoXvZcap7I2kClG+XbryIkXr8EzTdpw9Qed69GCyOb/3vhDqlnr2G6XF7ZPX1WoNmF r+09DFQoKr2DUV4Zt2GYSR9ZZ21uFNqXioSLZCstT+ld+4sIgZMPmOaHGmUlpyfb7gA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104 header.b=kbLKbXcT; arc=none smtp.remote-ip=209.85.216.42 Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3D2DD606A31A for ; Tue, 27 Oct 2026 08:42:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3D2DD606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104 header.b=kbLKbXcT Received: by mail-pj1-f42.google.com with SMTP id 98e67ed59e1d1-3acb512a7a0so2104088a91.1 for ; Tue, 27 Oct 2026 01:42:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1793090534; x=1793695334; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :content-type:mime-version:references:message-id:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to:content-type; bh=HO3eUNo6YHl/86Pkx4f7zdxkSoZXsSxNeQ0MlXL2Mv4=; b=kbLKbXcTXY4lbkQf0cQz0moLcTATOuZVNofYBgKq6tPkjWg5NOHG7SZ8oIUap98YN9 NToX0hK0jwRemF/XRhEAEIc1fJeKvmoeusTWHdMS1Py1WQbPyLLFmhIXPv6DKy8ATqU5 o4xqNFm25HiGyAYcnsNDMcRpbpjopsCS/Lnlhwv7Gj7t8YRsgBCrKhEirLcGGh8XPX6x uocoYlEVzFEnb4NL/vCXQzhhmhBtfsGYbBAjq/09kAUetJOLi58rUkvWSX5hFqZymjAq Frns760Ur4/TWlRDN5/WCyfwjafEuXNEZqeT+cp5gU6UJwA0svvD99AOP6xR0bxJSCJr 6SIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793090534; x=1793695334; h=in-reply-to:content-transfer-encoding:content-disposition :content-type:mime-version:references:message-id:subject:cc:to:from :date:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=HO3eUNo6YHl/86Pkx4f7zdxkSoZXsSxNeQ0MlXL2Mv4=; b=lNuSUwd0wwN1Pm1Vc45sVac3mKF8tbmgYh4ILullynVapHAbdktTlwSw/j906oMmxP CWOzoahuhNzDGH85yvlTlH2wN3YMMCjFH8IlowEsxcmZew+q7FYFN8GH3NZUxlMyOm5V 9DkpeBVUxlGXNX4zGZu3P3szVXgR8iMbVZtY2GeN9j9E3UR2ziOYJ2mZ+mIeH4cpfirR pi90xXo12yWkFKmhWiNryn78PKprQp4Vz9aNFKw++xVo8b/hzzDxVzW3//XyesJcZ0NI KUDPkHVcG4ZENtv3zybAx2GbZGgTgbY0ol9OA8Nps8JujAVR5dyDxwPVKgp/10OzF3xK ALoA== X-Forwarded-Encrypted: i=1; AKwUvBwQnkEprGnV1ib6QkOYQEvejDS4Fkj1PkD944/zE3gSTi9A3ipsZ1tnXF4Fjry398BCAPcEE1BnIcY=@vger.kernel.org X-Gm-Message-State: AFq9FYKIFEfv652Frok/PQ4iIOmYpMXR1X2S1rBwvqHjXTMFyQk6kwfc rBC8pMVTGsS1znjp793/cgtbsFGAbBsJR/DCxQ0wdrmx3BOtoj4pLeab X-Gm-Gg: AYBFou0Fn/WEKm4J/ApaXGKzAL/ArXE4f0yvdu+USetyTlVd7tI5Q7nN16HxmcSlYsF ZLrQk4TEI5QH1VHtyRMyVzJxZolsNLiBa50ylqS0W0Wo2yo/g2EY6y0pO8xPARreMVC7DMuM5W2 7SNiB2ZEYIstzaP8a5oavaHROUIF+bzkCxfG+gMO7HutposmDsPuctmjFepWqVbwoQiwym8Bjiv CXI5n5clHbStwnoRTcnxZyvIiJE0gMi9v6+uFy1VtckSiW8PzS4+ttgVjZ3inmsJlNhPdwvo7bk 28I1QcOFM4vJ9O1+75z3wvIfERsirw3nSe6hzW+zuhpp15+S7OvFHxNNHqy9zn785LPIPW3fLPA jWUoJ7FXO3/QAcIndYtFH59MOKDbT5v4yI/4QDu/v1dbgTRub8JspJtrIzuv12dOirTBytmoukV h3QUT0WYrBY8ptQuCKBQ+BWayq+ngiy1Zty3LWfKY+DVLPSf73Ad6ZaJU1bBqPnjN8nPxzjnqSC C5H4UJHTdWtCuxpDcOFqHoKuJqyp2XX1YoU8gmyDi8KwxkHWowQuQ== X-Received: by 2002:a17:90b:548e:b0:3ac:8741:e2e4 with SMTP id 98e67ed59e1d1-3adeafad105mr7635070a91.52.1793090533442; Tue, 27 Oct 2026 01:42:13 -0700 (PDT) Received: from localhost ([2001:19f0:8000:3e6e:5400:6ff:fe38:3d01]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2eae64549dfsm5844425ad.4.2026.10.27.01.42.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Oct 2026 01:42:12 -0700 (PDT) Date: Tue, 27 Oct 2026 16:41:26 +0800 From: Inochi Amaoto To: Manivannan Sadhasivam , Inochi Amaoto Cc: Vinod Koul , Andy Shevchenko , Jonathan Corbet , Shuah Khan , Randy Dunlap , Neil Armstrong , Rhys Tumelty , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, Yixun Lan , Longbin Li Subject: Re: [PATCH v4 3/5] phy: core: Add phy bulk data helper functions Message-ID: References: <20260929085235.469515-1-inochiama@gmail.com> <20260929085235.469515-4-inochiama@gmail.com> X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Sun, Oct 18, 2026 at 06:09:49PM +0530, Manivannan Sadhasivam wrote: > On Mon, Oct 05, 2026 at 07:41:52PM +0800, Inochi Amaoto wrote: > > On Mon, Oct 05, 2026 at 12:12:51PM +0200, Vinod Koul wrote: > > > On 29-09-26, 16:52, Inochi Amaoto wrote: > > > > Add several helper functions that allow drivers to get several phy > > > > consumers in one operation. If any of the phy cannot be acquired then > > > > any phys that were got will be put before returning to the caller. > > > > > > Do we have many such examples? Phy is not a many resource like > > > clock/regulators... Do we really need this. How many in kernel users > > > will benefit from this API? > > > > > > > > > I guess the following driver may benefit from bulk api. Most of them > > are PCIe drivers.... > > > > drivers/ata/ahci_imx.c > > drivers/pci/controller/cadence/pcie-cadence.c > > drivers/pci/controller/dwc/pci-dra7xx.c > > drivers/pci/controller/dwc/pcie-tegra194.c > > drivers/pci/controller/pcie-rockchip.c > > drivers/pci/controller/dwc/pcie-qcom.c > > > > Note: I mean the bulk api, not just the things I added. I guess many > > may want devm_phy_bulk_get() or devm_of_phy_bulk_get() instead of > > devm_phy_bulk_get_all(). > > > > No. I don't think the PCIe host controllers need the PHY bulk APIs. Most of the > time they need to control each PHY independently in a multi-port setup. So > having the bulk API doesn't seem logical to me. > > - Mani > > -- > மணிவண்ணன் சதாசிவம் Sorry for missing this one. For multi-port setup, the answer is no. The bulk API is not a good choice. But for multi-lane setup of one port, I think the answer is yes, the driver can just control the phy together and do not need a loop for that. At least for pcie-rockchip.c, I think it is reasonable, its logic show it use multi-lane setup, so I think it is fine to port. Regards, Inochi