From: Iyappan Subramanian <isubramanian@apm.com> To: davem@davemloft.net, netdev@vger.kernel.org Cc: Quan Nguyen <qnguyen@apm.com>, dnelson@redhat.com, patches@apm.com, linux-arm-kernel@lists.infradead.org, Iyappan Subramanian <isubramanian@apm.com> Subject: [PATCH 1/3] drivers: net: xgene: Read tx/rx delay for ACPI Date: Tue, 5 Sep 2017 11:16:30 -0700 [thread overview] Message-ID: <1504635392-19089-2-git-send-email-isubramanian@apm.com> (raw) In-Reply-To: <1504635392-19089-1-git-send-email-isubramanian@apm.com> This patch fixes reading tx/rx delay values for ACPI. Signed-off-by: Iyappan Subramanian <isubramanian@apm.com> Signed-off-by: Quan Nguyen <qnguyen@apm.com> --- drivers/net/ethernet/apm/xgene/xgene_enet_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/apm/xgene/xgene_enet_main.c b/drivers/net/ethernet/apm/xgene/xgene_enet_main.c index 6e253d9..655c0fc 100644 --- a/drivers/net/ethernet/apm/xgene/xgene_enet_main.c +++ b/drivers/net/ethernet/apm/xgene/xgene_enet_main.c @@ -1591,7 +1591,7 @@ static int xgene_get_tx_delay(struct xgene_enet_pdata *pdata) struct device *dev = &pdata->pdev->dev; int delay, ret; - ret = of_property_read_u32(dev->of_node, "tx-delay", &delay); + ret = device_property_read_u32(dev, "tx-delay", &delay); if (ret) { pdata->tx_delay = 4; return 0; @@ -1612,7 +1612,7 @@ static int xgene_get_rx_delay(struct xgene_enet_pdata *pdata) struct device *dev = &pdata->pdev->dev; int delay, ret; - ret = of_property_read_u32(dev->of_node, "rx-delay", &delay); + ret = device_property_read_u32(dev, "rx-delay", &delay); if (ret) { pdata->rx_delay = 2; return 0; -- 2.7.4
WARNING: multiple messages have this Message-ID (diff)
From: isubramanian@apm.com (Iyappan Subramanian) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/3] drivers: net: xgene: Read tx/rx delay for ACPI Date: Tue, 5 Sep 2017 11:16:30 -0700 [thread overview] Message-ID: <1504635392-19089-2-git-send-email-isubramanian@apm.com> (raw) In-Reply-To: <1504635392-19089-1-git-send-email-isubramanian@apm.com> This patch fixes reading tx/rx delay values for ACPI. Signed-off-by: Iyappan Subramanian <isubramanian@apm.com> Signed-off-by: Quan Nguyen <qnguyen@apm.com> --- drivers/net/ethernet/apm/xgene/xgene_enet_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/apm/xgene/xgene_enet_main.c b/drivers/net/ethernet/apm/xgene/xgene_enet_main.c index 6e253d9..655c0fc 100644 --- a/drivers/net/ethernet/apm/xgene/xgene_enet_main.c +++ b/drivers/net/ethernet/apm/xgene/xgene_enet_main.c @@ -1591,7 +1591,7 @@ static int xgene_get_tx_delay(struct xgene_enet_pdata *pdata) struct device *dev = &pdata->pdev->dev; int delay, ret; - ret = of_property_read_u32(dev->of_node, "tx-delay", &delay); + ret = device_property_read_u32(dev, "tx-delay", &delay); if (ret) { pdata->tx_delay = 4; return 0; @@ -1612,7 +1612,7 @@ static int xgene_get_rx_delay(struct xgene_enet_pdata *pdata) struct device *dev = &pdata->pdev->dev; int delay, ret; - ret = of_property_read_u32(dev->of_node, "rx-delay", &delay); + ret = device_property_read_u32(dev, "rx-delay", &delay); if (ret) { pdata->rx_delay = 2; return 0; -- 2.7.4
next prev parent reply other threads:[~2017-09-05 18:16 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-09-05 18:16 [PATCH 0/3] drivers: net: xgene: Misc bug fixes Iyappan Subramanian 2017-09-05 18:16 ` Iyappan Subramanian 2017-09-05 18:16 ` Iyappan Subramanian [this message] 2017-09-05 18:16 ` [PATCH 1/3] drivers: net: xgene: Read tx/rx delay for ACPI Iyappan Subramanian 2017-09-05 18:16 ` [PATCH 2/3] drivers: net: xgene: Configure " Iyappan Subramanian 2017-09-05 18:16 ` Iyappan Subramanian 2017-09-05 18:16 ` [PATCH 3/3] drivers: net: xgene: Remove return statement from void function Iyappan Subramanian 2017-09-05 18:16 ` Iyappan Subramanian 2017-09-05 21:58 ` [PATCH 0/3] drivers: net: xgene: Misc bug fixes David Miller 2017-09-05 21:58 ` David Miller
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=1504635392-19089-2-git-send-email-isubramanian@apm.com \ --to=isubramanian@apm.com \ --cc=davem@davemloft.net \ --cc=dnelson@redhat.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=netdev@vger.kernel.org \ --cc=patches@apm.com \ --cc=qnguyen@apm.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: 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.