Re: [PATCH] net-next:can: add TI CAN (HECC) driver

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Wolfgang Grandegger
Date: Monday, October 5, 2009 - 4:25 am

Anant Gole wrote:

I already reviewed this driver on the Socketcan-core ML and it's almost
OK from the Socket-CAN point of view. Just one issue...

[snip]
[snip]

That's not correct from my point of view. The warning message should
only be printed when the user tries to set triple sampling. I think it
should be similar to:

	if (priv->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES) {
		if (bit_timing->brp > 4)
			can_btc |= HECC_CANBTC_SAM;
		else
			dev_warn(priv->ndev->dev.parent,
			"Triple sampling not set due to h/w "
			limitations");
	}

Apart from that, the patch looks OK.

Wolfgang.

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] net-next:can: add TI CAN (HECC) driver, Anant Gole, (Mon Oct 5, 3:02 am)
Re: [PATCH] net-next:can: add TI CAN (HECC) driver, Wolfgang Grandegger, (Mon Oct 5, 4:25 am)