From: Alan Stern <stern@rowland.harvard.edu> To: Rob Herring <robh@kernel.org> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Kishon Vijay Abraham I <kishon@ti.com>, <linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-usb@vger.kernel.org> Subject: Re: [PATCH 5/5] usb: add pxa1928 ehci support Date: Thu, 14 May 2015 11:55:36 -0400 (EDT) [thread overview] Message-ID: <Pine.LNX.4.44L0.1505141152300.1107-100000@iolanthe.rowland.org> (raw) In-Reply-To: <1431557340-5421-6-git-send-email-robh@kernel.org> On Wed, 13 May 2015, Rob Herring wrote: > Add platform driver for Marvell PXA1928 SOC. This is different from the > mv-ehci driver in that it uses the generic phy framework, uses DT, does > not use platform_data, is host only, and has a specific HSIC PHY and > controller initialization handshake. One more thing, which I had intended to include in my earlier review but then forgot about... > +static int mv_ehci_probe(struct platform_device *pdev) > +{ ... > + hcd->phy = devm_of_phy_get(&pdev->dev, pdev->dev.of_node, NULL); > + if (IS_ERR_OR_NULL(hcd->phy)) { > + retval = PTR_ERR(hcd->phy); > + if (retval != -EPROBE_DEFER && retval != -ENODEV) > + dev_err(&pdev->dev, "failed to get the phy\n"); > + else > + return -EPROBE_DEFER; > + goto err_put_hcd; > + } Please straighten out this convoluted logic. It should go like this: hcd->phy = devm_of_phy_get(&pdev->dev, pdev->dev.of_node, NULL); if (IS_ERR_OR_NULL(hcd->phy)) { retval = PTR_ERR(hcd->phy); if (retval == -EPROBE_DEFER || retval == -ENODEV) return -EPROBE_DEFER; dev_err(&pdev->dev, "failed to get the phy\n"); goto err_put_hcd; } Alan Stern
WARNING: multiple messages have this Message-ID (diff)
From: Alan Stern <stern@rowland.harvard.edu> To: Rob Herring <robh@kernel.org> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Kishon Vijay Abraham I <kishon@ti.com>, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-usb@vger.kernel.org Subject: Re: [PATCH 5/5] usb: add pxa1928 ehci support Date: Thu, 14 May 2015 11:55:36 -0400 (EDT) [thread overview] Message-ID: <Pine.LNX.4.44L0.1505141152300.1107-100000@iolanthe.rowland.org> (raw) In-Reply-To: <1431557340-5421-6-git-send-email-robh@kernel.org> On Wed, 13 May 2015, Rob Herring wrote: > Add platform driver for Marvell PXA1928 SOC. This is different from the > mv-ehci driver in that it uses the generic phy framework, uses DT, does > not use platform_data, is host only, and has a specific HSIC PHY and > controller initialization handshake. One more thing, which I had intended to include in my earlier review but then forgot about... > +static int mv_ehci_probe(struct platform_device *pdev) > +{ ... > + hcd->phy = devm_of_phy_get(&pdev->dev, pdev->dev.of_node, NULL); > + if (IS_ERR_OR_NULL(hcd->phy)) { > + retval = PTR_ERR(hcd->phy); > + if (retval != -EPROBE_DEFER && retval != -ENODEV) > + dev_err(&pdev->dev, "failed to get the phy\n"); > + else > + return -EPROBE_DEFER; > + goto err_put_hcd; > + } Please straighten out this convoluted logic. It should go like this: hcd->phy = devm_of_phy_get(&pdev->dev, pdev->dev.of_node, NULL); if (IS_ERR_OR_NULL(hcd->phy)) { retval = PTR_ERR(hcd->phy); if (retval == -EPROBE_DEFER || retval == -ENODEV) return -EPROBE_DEFER; dev_err(&pdev->dev, "failed to get the phy\n"); goto err_put_hcd; } Alan Stern
next prev parent reply other threads:[~2015-05-14 15:55 UTC|newest] Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-05-13 22:48 [PATCH 0/5] Marvell PXA1928 USB support Rob Herring 2015-05-13 22:48 ` Rob Herring 2015-05-13 22:48 ` [PATCH 1/5] dt-bindings: Add Marvell PXA1928 USB and HSIC PHY bindings Rob Herring 2015-05-13 22:48 ` Rob Herring 2015-05-13 22:48 ` [PATCH 2/5] dt-bindings: Add Marvell PXA1928 USB EHCI controller binding Rob Herring 2015-05-13 22:48 ` [PATCH 3/5] phy: Add Marvell USB 2.0 OTG 28nm PHY Rob Herring 2015-05-13 22:48 ` Rob Herring 2015-05-21 12:33 ` Kishon Vijay Abraham I 2015-05-21 12:33 ` Kishon Vijay Abraham I 2015-05-13 22:48 ` [PATCH 4/5] phy: add Marvell HSIC " Rob Herring 2015-05-21 12:45 ` Kishon Vijay Abraham I 2015-05-21 12:45 ` Kishon Vijay Abraham I 2015-05-21 12:51 ` Kishon Vijay Abraham I 2015-05-21 12:51 ` Kishon Vijay Abraham I 2015-05-22 19:54 ` Rob Herring 2015-05-22 19:54 ` Rob Herring 2015-05-26 6:06 ` Kishon Vijay Abraham I 2015-05-13 22:49 ` [PATCH 5/5] usb: add pxa1928 ehci support Rob Herring 2015-05-14 8:24 ` Paul Bolle 2015-05-14 10:42 ` Arnd Bergmann 2015-05-14 13:25 ` Rob Herring 2015-05-14 13:25 ` Rob Herring 2015-05-14 10:43 ` Arnd Bergmann 2015-05-14 14:56 ` Alan Stern 2015-05-14 14:56 ` Alan Stern 2015-05-14 16:36 ` Rob Herring 2015-05-14 16:36 ` Rob Herring 2015-05-14 17:06 ` Alan Stern 2015-05-14 17:06 ` Alan Stern 2015-05-14 15:55 ` Alan Stern [this message] 2015-05-14 15:55 ` Alan Stern 2015-05-15 9:32 ` Arnd Bergmann 2015-05-15 9:55 ` [PATCH 0/5] Marvell PXA1928 USB support Sebastian Hesselbarth 2015-05-15 9:55 ` Sebastian Hesselbarth 2015-05-15 12:48 ` Rob Herring 2015-05-15 12:48 ` Rob Herring 2015-05-15 14:11 ` Arnd Bergmann 2015-05-15 16:04 ` Rob Herring 2015-05-15 16:04 ` Rob Herring
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=Pine.LNX.4.44L0.1505141152300.1107-100000@iolanthe.rowland.org \ --to=stern@rowland.harvard.edu \ --cc=devicetree@vger.kernel.org \ --cc=gregkh@linuxfoundation.org \ --cc=kishon@ti.com \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-usb@vger.kernel.org \ --cc=robh@kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.