{"action":"created","issue":{"url":"https://api.github.com/repos/raspberrypi/linux/issues/1490","repository_url":"https://api.github.com/repos/raspberrypi/linux","labels_url":"https://api.github.com/repos/raspberrypi/linux/issues/1490/labels{/name}","comments_url":"https://api.github.com/repos/raspberrypi/linux/issues/1490/comments","events_url":"https://api.github.com/repos/raspberrypi/linux/issues/1490/events","html_url":"https://github.com/raspberrypi/linux/issues/1490","id":156592335,"number":1490,"title":"Receiving concurrently with two mcp2515 is unstable","user":{"login":"hummlbach","id":10819327,"avatar_url":"https://avatars.githubusercontent.com/u/10819327?v=3","gravatar_id":"","url":"https://api.github.com/users/hummlbach","html_url":"https://github.com/hummlbach","followers_url":"https://api.github.com/users/hummlbach/followers","following_url":"https://api.github.com/users/hummlbach/following{/other_user}","gists_url":"https://api.github.com/users/hummlbach/gists{/gist_id}","starred_url":"https://api.github.com/users/hummlbach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hummlbach/subscriptions","organizations_url":"https://api.github.com/users/hummlbach/orgs","repos_url":"https://api.github.com/users/hummlbach/repos","events_url":"https://api.github.com/users/hummlbach/events{/privacy}","received_events_url":"https://api.github.com/users/hummlbach/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":22,"created_at":"2016-05-24T19:42:18Z","updated_at":"2016-11-25T12:03:02Z","closed_at":null,"body":"We're facing a problem using two mcp2515 concurrently (with the PiCAN DUO board): while receiving on both CAN channels (in parallel, from two seperate busses) one CAN interface stops working after some time.  More precisely one of the CAN interfaces stops receiving - no interrupts seen anymore in /proc/interrupts - but the chip still acknowledges the frames on the bus. After putting the interface down and up again it continues to work for some short amount of time before it stops working again (and so on).\nThis c-programm should reproduce the problem:\nhttps://gist.github.com/hummlbach/5e9be81f27db91220cec0b919ebb9fec\nThe following quick and dirty fix in pinctrl-bcm2835.c figured out by another customer of the PiCAN DUO is supposed to work around the problem (haven't tried it myself):\n\n```\n    irq_mapped = irq_linear_revmap(pc->irq_domain, gpio);\n    if( irq_mapped == 190 || irq_mapped == 191)\n    {\n        generic_handle_irq(190);\n        generic_handle_irq(191);\n    } else {\n        generic_handle_irq(irq_linear_revmap(irq_mapped);             \n    }\n```\n\nwhere 190 and 191 are the MCP2515s interrupts.\n"},"comment":{"url":"https://api.github.com/repos/raspberrypi/linux/issues/comments/262942560","html_url":"https://github.com/raspberrypi/linux/issues/1490#issuecomment-262942560","issue_url":"https://api.github.com/repos/raspberrypi/linux/issues/1490","id":262942560,"user":{"login":"pelwell","id":8911409,"avatar_url":"https://avatars.githubusercontent.com/u/8911409?v=3","gravatar_id":"","url":"https://api.github.com/users/pelwell","html_url":"https://github.com/pelwell","followers_url":"https://api.github.com/users/pelwell/followers","following_url":"https://api.github.com/users/pelwell/following{/other_user}","gists_url":"https://api.github.com/users/pelwell/gists{/gist_id}","starred_url":"https://api.github.com/users/pelwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pelwell/subscriptions","organizations_url":"https://api.github.com/users/pelwell/orgs","repos_url":"https://api.github.com/users/pelwell/repos","events_url":"https://api.github.com/users/pelwell/events{/privacy}","received_events_url":"https://api.github.com/users/pelwell/received_events","type":"User","site_admin":false},"created_at":"2016-11-25T12:03:02Z","updated_at":"2016-11-25T12:03:02Z","body":"Is it possible that the can bus numbering is based on order of initialisation rather than SPI CS? What happens if you just use the -can1 overlay? Do you get any relevant output in the dmesg log in the -can0, -can1 and both cases?"}}
{"actor":{"display_login":"pelwell"}}