From: Krzysztof Kozlowski <krzk@kernel.org>
To: Paul Geurts <paul.geurts@prodrive-technologies.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 4/4] net: dsa: b53: mdio: Add optional reset gpio
Date: Tue, 28 Feb 2023 12:34:31 +0100 [thread overview]
Message-ID: <7037a310-dca0-3486-e560-18ac8c127e26@kernel.org> (raw)
In-Reply-To: <AM0PR02MB5524BDEBE80C82BC689C3DD6BDAF9@AM0PR02MB5524.eurprd02.prod.outlook.com>
On 27/02/2023 20:44, Paul Geurts wrote:
> Some Broadcom Ethernet switch devices feature a reset pin driven by GPIO.
> Provide the option to specify a reset gpio.
>
> Signed-off-by: Paul Geurts <paul.geurts@prodrive-technologies.com>
> ---
> drivers/net/dsa/b53/b53_mdio.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/drivers/net/dsa/b53/b53_mdio.c b/drivers/net/dsa/b53/b53_mdio.c index 8b422b298cd5..32af5881834c 100644
> --- a/drivers/net/dsa/b53/b53_mdio.c
> +++ b/drivers/net/dsa/b53/b53_mdio.c
> @@ -22,6 +22,7 @@
> #include <linux/delay.h>
> #include <linux/brcmphy.h>
> #include <linux/rtnetlink.h>
> +#include <linux/gpio/consumer.h>
> #include <net/dsa.h>
>
> #include "b53_priv.h"
> @@ -303,6 +304,14 @@ static int b53_mdio_probe(struct mdio_device *mdiodev)
> return -ENODEV;
> }
>
> + /* Try to get a reset GPIO and get the switch out of reset when its there */
> + mdiodev->reset_gpio = devm_gpiod_get_optional(&mdiodev->dev, "reset", GPIOD_OUT_HIGH);
Aren't you adding now undocumented property? Does your DTS passes
dtbs_check?
Best regards,
Krzysztof
prev parent reply other threads:[~2023-02-28 11:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20221212135640.3590545-1-paul.geurts@prodrive-technologies.com>
2023-02-27 19:44 ` [PATCH 0/4] b53: Add BCM53134 support Paul Geurts
[not found] ` <20221212135640.3590545-2-paul.geurts@prodrive-technologies.com>
2023-02-27 19:44 ` [PATCH 1/4] net: dsa: b53: Add support for Broadcom BCM53134 managed Ethernet switch Paul Geurts
2023-02-28 11:35 ` Krzysztof Kozlowski
[not found] ` <20221212135640.3590545-3-paul.geurts@prodrive-technologies.com>
2023-02-27 19:44 ` [PATCH 2/4] dt-bindings: net/dsa/: add brcm,bcm53134 as compatible flag Paul Geurts
2023-02-28 11:33 ` Krzysztof Kozlowski
[not found] ` <20230301085531.3713797-1-paul.geurts@prodrive-technologies.com>
2023-03-01 8:58 ` Paul Geurts
[not found] ` <20221212135640.3590545-4-paul.geurts@prodrive-technologies.com>
2023-02-27 19:44 ` [PATCH 3/4] net: dsa: b53: fail switch initialization for unsupported switch types Paul Geurts
[not found] ` <20221212135640.3590545-5-paul.geurts@prodrive-technologies.com>
2023-02-27 19:44 ` [PATCH 4/4] net: dsa: b53: mdio: Add optional reset gpio Paul Geurts
2023-02-28 11:34 ` Krzysztof Kozlowski [this message]
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=7037a310-dca0-3486-e560-18ac8c127e26@kernel.org \
--to=krzk@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=paul.geurts@prodrive-technologies.com \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®