From: Pavel Machek <pavel@denx.de>
To: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
Cc: cip-dev@lists.cip-project.org
Subject: Re: [cip-dev] [PATCH v2 4.19.y-cip 01/22] device connection: Add fwnode member to struct device_connection
Date: Sun, 23 Feb 2020 21:11:29 +0100 [thread overview]
Message-ID: <20200223201129.GA24510@duo.ucw.cz> (raw)
In-Reply-To: <1582303929-5773-2-git-send-email-marian-cristian.rotariu.rb@bp.renesas.com>
[-- Attachment #1.1: Type: text/plain, Size: 1554 bytes --]
Hi!
> From: Heikki Krogerus <heikki.krogerus@linux.intel.com>
>
> commit 09aa11cfda9d8186046bcd1adcd6498b688114f4 upstream.
>
> This will prepare the device connection API for connections
> described in firmware.
Ok, I made you do this. Sorry. I assumed it you'd just audit
initializers. I suggest to take this, anyway, but:
> +++ b/drivers/extcon/extcon-axp288.c
> @@ -446,6 +446,7 @@ static struct platform_driver axp288_extcon_driver = {
> };
>
> static struct device_connection axp288_extcon_role_sw_conn = {
> + .fwnode = NULL,
> .endpoint[0] = "axp288_extcon",
> .endpoint[1] = "intel_xhci_usb_sw-role-switch",
> .id = "usb-role-switch",
This one is not neccessary as struct initializers are "filled" with 0s
when no other value is present.
> diff --git a/drivers/platform/x86/intel_cht_int33fe.c b/drivers/platform/x86/intel_cht_int33fe.c
> index f40b1c19..1fa77e4 100644
> --- a/drivers/platform/x86/intel_cht_int33fe.c
> +++ b/drivers/platform/x86/intel_cht_int33fe.c
> @@ -175,15 +175,19 @@ static int cht_int33fe_probe(struct platform_device *pdev)
> return -EPROBE_DEFER; /* Wait for i2c-adapter to load */
> }
>
> + data->connections[0].fwnode = NULL;
And these should be already zero-initialized by
data = devm_kzalloc(dev, sizeof(*data), GFP_KERNEL);
Anyway, extra initializations will not hurt.
Best regards,
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
[-- Attachment #2: Type: text/plain, Size: 154 bytes --]
_______________________________________________
cip-dev mailing list
cip-dev@lists.cip-project.org
https://lists.cip-project.org/mailman/listinfo/cip-dev
next prev parent reply other threads:[~2020-02-23 20:11 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-21 16:51 [cip-dev] [PATCH v2 4.19.y-cip 00/22] Renesas RZ/G2E USB Type-C Backport Marian-Cristian Rotariu
2020-02-21 16:51 ` [cip-dev] [PATCH v2 4.19.y-cip 01/22] device connection: Add fwnode member to struct device_connection Marian-Cristian Rotariu
2020-02-23 20:11 ` Pavel Machek [this message]
2020-02-21 16:51 ` [cip-dev] [PATCH v2 4.19.y-cip 02/22] usb: typec: mux: Find the muxes by also matching against the device node Marian-Cristian Rotariu
2020-02-21 16:51 ` [cip-dev] [PATCH v2 4.19.y-cip 03/22] usb: typec: mux: Fix unsigned comparison with less than zero Marian-Cristian Rotariu
2020-02-21 16:51 ` [cip-dev] [PATCH v2 4.19.y-cip 04/22] usb: roles: Find the muxes by also matching against the device node Marian-Cristian Rotariu
2020-02-21 16:51 ` [cip-dev] [PATCH v2 4.19.y-cip 05/22] usb: typec: Find the ports " Marian-Cristian Rotariu
2020-02-21 16:51 ` [cip-dev] [PATCH v2 4.19.y-cip 06/22] device connection: Prepare support for firmware described connections Marian-Cristian Rotariu
2020-02-21 16:51 ` [cip-dev] [PATCH v2 4.19.y-cip 07/22] device connection: Find device connections also from device graphs Marian-Cristian Rotariu
2020-02-21 16:51 ` [cip-dev] [PATCH v2 4.19.y-cip 08/22] device property: Introduce fwnode_find_reference() Marian-Cristian Rotariu
2020-02-21 16:51 ` [cip-dev] [PATCH v2 4.19.y-cip 09/22] device connection: Find connections also by checking the references Marian-Cristian Rotariu
2020-02-21 16:51 ` [cip-dev] [PATCH v2 4.19.y-cip 10/22] usb: roles: Introduce stubs for the exiting functions in role.h Marian-Cristian Rotariu
2020-02-21 16:51 ` [cip-dev] [PATCH v2 4.19.y-cip 11/22] device connection: Add fwnode_connection_find_match() Marian-Cristian Rotariu
2020-02-21 16:51 ` [cip-dev] [PATCH v2 4.19.y-cip 12/22] usb: roles: Add fwnode_usb_role_switch_get() function Marian-Cristian Rotariu
2020-02-21 16:52 ` [cip-dev] [PATCH v2 4.19.y-cip 13/22] dt-bindings: usb: hd3ss3220 device tree binding document Marian-Cristian Rotariu
2020-02-21 16:52 ` [cip-dev] [PATCH v2 4.19.y-cip 14/22] dt-bindings: usb: renesas_usb3: Document usb role switch support Marian-Cristian Rotariu
2020-02-21 16:52 ` [cip-dev] [PATCH v2 4.19.y-cip 15/22] usb: typec: driver for TI HD3SS3220 USB Type-C DRP port controller Marian-Cristian Rotariu
2020-02-23 20:13 ` Pavel Machek
2020-02-21 16:52 ` [cip-dev] [PATCH v2 4.19.y-cip 16/22] usb: typec: hd3ss3220_irq() can be static Marian-Cristian Rotariu
2020-02-21 16:52 ` [cip-dev] [PATCH v2 4.19.y-cip 17/22] usb: typec: add dependency for TYPEC_HD3SS3220 Marian-Cristian Rotariu
2020-02-21 16:52 ` [cip-dev] [PATCH v2 4.19.y-cip 18/22] usb: typec: hd3ss3220: hd3ss3220_probe() warn: passing zero to 'PTR_ERR' Marian-Cristian Rotariu
2020-02-21 16:52 ` [cip-dev] [PATCH v2 4.19.y-cip 19/22] usb: typec: fix an IS_ERR() vs NULL bug in hd3ss3220_probe() Marian-Cristian Rotariu
2020-02-21 16:52 ` [cip-dev] [PATCH v2 4.19.y-cip 20/22] usb: gadget: udc: renesas_usb3: Enhance role switch support Marian-Cristian Rotariu
2020-02-21 16:52 ` [cip-dev] [PATCH v2 4.19.y-cip 21/22] arm64: dts: renesas: cat874: Enable USB3.0 host/peripheral device node Marian-Cristian Rotariu
2020-02-21 16:52 ` [cip-dev] [PATCH v2 4.19.y-cip 22/22] arm64: dts: renesas: cat874: Enable usb role switch support Marian-Cristian Rotariu
2020-02-23 20:21 ` [cip-dev] [PATCH v2 4.19.y-cip 00/22] Renesas RZ/G2E USB Type-C Backport Pavel Machek
2020-02-24 21:29 ` Pavel Machek
2020-02-25 8:58 ` Marian-Cristian Rotariu
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=20200223201129.GA24510@duo.ucw.cz \
--to=pavel@denx.de \
--cc=cip-dev@lists.cip-project.org \
--cc=marian-cristian.rotariu.rb@bp.renesas.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