From: Dan Murphy <dmurphy@ti.com>
To: Pankaj Sharma <pankj.sharma@samsung.com>,
<linux-can@vger.kernel.org>, <netdev@vger.kernel.org>,
<linux-kernel@vger.kernel.org>
Cc: <wg@grandegger.com>, <mkl@pengutronix.de>, <davem@davemloft.net>,
<rcsekar@samsung.com>, <pankaj.dubey@samsung.com>,
Sriram Dash <sriram.dash@samsung.com>
Subject: Re: [PATCH 1/2] can: m_can_platform: set net_device structure as driver data
Date: Tue, 19 Nov 2019 08:43:18 -0600 [thread overview]
Message-ID: <cb975009-2d89-40b9-8c28-e5cf40bf20a2@ti.com> (raw)
In-Reply-To: <1574158838-4616-2-git-send-email-pankj.sharma@samsung.com>
Pankaj
On 11/19/19 4:20 AM, Pankaj Sharma wrote:
> A device driver for CAN controller hardware registers itself with the
> Linux network layer as a network device. So, the driver data for m_can
> should ideally be of type net_device.
>
> Fixes: f524f829b75a ("can: m_can: Create a m_can platform framework")
>
> Signed-off-by: Pankaj Sharma <pankj.sharma@samsung.com>
> Signed-off-by: Sriram Dash <sriram.dash@samsung.com>
> ---
> drivers/net/can/m_can/m_can_platform.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/can/m_can/m_can_platform.c b/drivers/net/can/m_can/m_can_platform.c
> index 6ac4c35..2eaa354 100644
> --- a/drivers/net/can/m_can/m_can_platform.c
> +++ b/drivers/net/can/m_can/m_can_platform.c
> @@ -107,7 +107,7 @@ static int m_can_plat_probe(struct platform_device *pdev)
>
> mcan_class->is_peripheral = false;
>
> - platform_set_drvdata(pdev, mcan_class->dev);
> + platform_set_drvdata(pdev, mcan_class->net);
>
> m_can_init_ram(mcan_class);
>
Thanks for the fix.
Acked-by: Dan Murphy <dmurphy@ti.com>
next prev parent reply other threads:[~2019-11-19 14:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20191119102134epcas5p4d3c1b18203e2001c189b9fa7a0e3aab5@epcas5p4.samsung.com>
2019-11-19 10:20 ` [PATCH 0/2] can: m_can_platform: Bug fix of kernel panic for Pankaj Sharma
2019-11-19 10:20 ` [PATCH 1/2] can: m_can_platform: set net_device structure as driver data Pankaj Sharma
2019-11-19 14:43 ` Dan Murphy [this message]
2019-11-19 10:20 ` [PATCH 2/2] can: m_can_platform: remove unnecessary m_can_class_resume() call Pankaj Sharma
2019-11-19 14:45 ` Dan Murphy
2019-12-05 20:57 ` [PATCH 0/2] can: m_can_platform: Bug fix of kernel panic for Dan Murphy
2019-12-06 6:53 ` pankj.sharma
2019-12-06 7:39 ` Marc Kleine-Budde
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=cb975009-2d89-40b9-8c28-e5cf40bf20a2@ti.com \
--to=dmurphy@ti.com \
--cc=davem@davemloft.net \
--cc=linux-can@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mkl@pengutronix.de \
--cc=netdev@vger.kernel.org \
--cc=pankaj.dubey@samsung.com \
--cc=pankj.sharma@samsung.com \
--cc=rcsekar@samsung.com \
--cc=sriram.dash@samsung.com \
--cc=wg@grandegger.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