From: Dan Carpenter <hidden> Date: 2021-11-24 06:57:01
If the last channel is not available then "dev" is freed. Fortunately,
we can just use "pdev->irq" instead.
Fixes: fd734c6f25ae ("can/sja1000: add driver for EMS PCMCIA card")
Signed-off-by: Dan Carpenter <redacted>
---
v2: In the first version, I just failed the probe. Sorry about that.
drivers/net/can/sja1000/ems_pcmcia.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: Oliver Hartkopp <socketcan@hartkopp.net> Date: 2021-11-24 07:37:51
Hello Dan,
On 24.11.21 07:56, Dan Carpenter wrote:
If the last channel is not available then "dev" is freed. Fortunately,
we can just use "pdev->irq" instead.
But in the case that we do not find any channel the irq for the card is
still requested (via pdev->irq).
quoted hunk
Fixes: fd734c6f25ae ("can/sja1000: add driver for EMS PCMCIA card")
Signed-off-by: Dan Carpenter <redacted>
---
v2: In the first version, I just failed the probe. Sorry about that.
drivers/net/can/sja1000/ems_pcmcia.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Thanks for checking this code after so many years!
I saved that 17 year old EMS PCMCIA Card from my former CAN hardware box
two weeks ago and made a 5.16-rc2 run on a 2006 Samsung X20 with Pentium
M 1.7GHz yesterday. My only machine here at home with a PCMCIA slot :-D
https://www.amazon.de/Samsung-Centrino-1-73GHz-Graphic-Accelerator/dp/B000AXSIRE
And it still works with the CAN card!
Best regards,
Oliver
From: Dan Carpenter <hidden> Date: 2021-11-24 08:57:48
On Wed, Nov 24, 2021 at 08:37:27AM +0100, Oliver Hartkopp wrote:
Hello Dan,
On 24.11.21 07:56, Dan Carpenter wrote:
quoted
If the last channel is not available then "dev" is freed. Fortunately,
we can just use "pdev->irq" instead.
But in the case that we do not find any channel the irq for the card is
still requested (via pdev->irq).
quoted
Fixes: fd734c6f25ae ("can/sja1000: add driver for EMS PCMCIA card")
Signed-off-by: Dan Carpenter <redacted>
---
v2: In the first version, I just failed the probe. Sorry about that.
drivers/net/can/sja1000/ems_pcmcia.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: Oliver Hartkopp <socketcan@hartkopp.net> Date: 2021-11-24 09:13:23
On 24.11.21 09:57, Dan Carpenter wrote:
On Wed, Nov 24, 2021 at 08:37:27AM +0100, Oliver Hartkopp wrote:
quoted
Hello Dan,
On 24.11.21 07:56, Dan Carpenter wrote:
quoted
If the last channel is not available then "dev" is freed. Fortunately,
we can just use "pdev->irq" instead.
But in the case that we do not find any channel the irq for the card is
still requested (via pdev->irq).
quoted
Fixes: fd734c6f25ae ("can/sja1000: add driver for EMS PCMCIA card")
Signed-off-by: Dan Carpenter <redacted>
---
v2: In the first version, I just failed the probe. Sorry about that.
drivers/net/can/sja1000/ems_pcmcia.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)