From: Oliver Hartkopp Date: Wed, 28 Sep 2011 02:50:11 +0000 (+0000) Subject: candev: allow SJW user setting for bittiming calculation X-Git-Tag: v3.2-rc1~129^2~195 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e1143742789463c00ed5e7f9bf471f2b707b493;p=pandora-kernel.git candev: allow SJW user setting for bittiming calculation This patch adds support for SJW user settings to not set the synchronization jump width (SJW) to 1 in any case when using the in-kernel bittiming calculation. The ip-tool from iproute2 already supports to pass the user defined SJW value. The given SJW value is sanitized with the controller specific sjw_max and the calculated tseg2 value. As the SJW can have values up to 4 providing this value will lead to the maximum possible SJW automatically. A higher SJW allows higher controller oscillator tolerances. Signed-off-by: Oliver Hartkopp Acked-by: Wolfgang Grandegger Signed-off-by: David S. Miller --- Reading git-diff-tree failed