Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
C
CTU CAN FD IP Core
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 14
    • Issues 14
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • canbus
  • CTU CAN FD IP Core
  • Issues
  • #177

Closed
Open
Opened Aug 01, 2018 by Martin Jeřábek@jerabma7Maintainer

driver: bittiming min/max constraints for PROP/PH1 may be violated

struct can_bittiming_const contains min/max only for tseg1, tseg2, sjw, brp. In definition, it that tseg1 = prop_seg + phase_seg1 and in the bitrate calculation, there is

bt->prop_seg = tseg1 / 2;
bt->phase_seg1 = tseg1 - bt->prop_seg;

PROP is 7 bits (max 127), PH1 is 6 bits (max 63), so further sanitization is required!

Assignee
Assign to
Linux driver
Milestone
Linux driver
Assign milestone
Time tracking
None
Due date
None
Reference: canbus/ctucanfd_ip_core#177