From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Stuebner Subject: Re: [PATCH v4 2/2] phy: add Rockchip Innosilicon hdmi phy Date: Fri, 07 Sep 2018 12:38:21 +0200 Message-ID: <7862264.msy1cYF2Tk@phil> References: <20180906135047.30788-1-heiko@sntech.de> <20180906135047.30788-2-heiko@sntech.de> <81c527fc-5837-658f-5c57-60acd909ed2e@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <81c527fc-5837-658f-5c57-60acd909ed2e@arm.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Robin Murphy Cc: linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, zhengyang@rock-chips.com, linux-arm-kernel@lists.infradead.org, kishon@ti.com List-Id: devicetree@vger.kernel.org Am Freitag, 7. September 2018, 10:58:04 CEST schrieb Robin Murphy: > On 2018-09-06 2:50 PM, Heiko Stuebner wrote: > > From: Zheng Yang > > > > Add a driver for the Innosilicon hdmi phy used on rk3228/rk3229 > > and rk3328 socs from Rockchip. > > > > Signed-off-by: Zheng Yang > > Signed-off-by: Heiko Stuebner > > Tested-by: Robin Murphy > > That reminds me, I really must dig out that box again and finish > figuring out the GPIOs and regulators... :) > > [...] > > +static int inno_hdmi_phy_probe(struct platform_device *pdev) > > +{ > > + struct inno_hdmi_phy *inno; > > + const struct of_device_id *match; > > + struct phy_provider *phy_provider; > > + struct resource *res; > > + void __iomem *regs; > > + int ret; > > + > > + inno = devm_kzalloc(&pdev->dev, sizeof(*inno), GFP_KERNEL); > > + if (!inno) > > + return -ENOMEM; > > + > > + inno->dev = &pdev->dev; > > + > > + match = of_match_device(inno->dev->driver->of_match_table, inno->dev); > > + inno->plat_data = (struct inno_hdmi_phy_drv_data *)match->data; > > Nit: if there's cause to do another respin anyway, you could simplify > this part with of_device_get_match_data(). done in v6 ... I found your mail directly after sending v5 ;-) .