{"action":"created","issue":{"url":"https://api.github.com/repos/raspberrypi/linux/issues/2632","repository_url":"https://api.github.com/repos/raspberrypi/linux","labels_url":"https://api.github.com/repos/raspberrypi/linux/issues/2632/labels{/name}","comments_url":"https://api.github.com/repos/raspberrypi/linux/issues/2632/comments","events_url":"https://api.github.com/repos/raspberrypi/linux/issues/2632/events","html_url":"https://github.com/raspberrypi/linux/issues/2632","id":346195294,"node_id":"MDU6SXNzdWUzNDYxOTUyOTQ=","number":2632,"title":"I2C detection issue since kernel i2c drivers changed for the kernel 4.4.14","user":{"login":"lnjuanj","id":1185991,"node_id":"MDQ6VXNlcjExODU5OTE=","avatar_url":"https://avatars2.githubusercontent.com/u/1185991?v=4","gravatar_id":"","url":"https://api.github.com/users/lnjuanj","html_url":"https://github.com/lnjuanj","followers_url":"https://api.github.com/users/lnjuanj/followers","following_url":"https://api.github.com/users/lnjuanj/following{/other_user}","gists_url":"https://api.github.com/users/lnjuanj/gists{/gist_id}","starred_url":"https://api.github.com/users/lnjuanj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lnjuanj/subscriptions","organizations_url":"https://api.github.com/users/lnjuanj/orgs","repos_url":"https://api.github.com/users/lnjuanj/repos","events_url":"https://api.github.com/users/lnjuanj/events{/privacy}","received_events_url":"https://api.github.com/users/lnjuanj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-07-31T13:46:53Z","updated_at":"2018-08-08T21:46:40Z","closed_at":null,"author_association":"NONE","body":"I have a PIC that communicates via I2C correctly with any RPi with 4.4.13 firmware.\r\n\r\nHowever, when I change to any firmware that is 4.4.14 or newer (up to the last one I installed, 4.14.52), I seldom detect the I2C address and cannot work with the device anymore. It looks like something changed with version 4.4.14 in the kernel. I have reviewed the firmware repo and there are no direct changes to i2c_dev nor to i2c_bcm2708 / i2c_bcm2*** (I thought I never detected the address, but using \r\n\r\n`watch -d=cumulative i2cdetect -y 1`\r\n\r\n shows the address once in a while e.g. 20 minutes).\r\n\r\nAs I was saying, the 4.4.14 firmware does not introduce code changes to i2c, but there are i2c_dev.ko and i2c_bcm2708.ko kernel drivers compiled in [that version](https://github.com/raspberrypi/firmware/commit/20c6fda4e1551e0cbd8af41d5aaeecf9604c2b26)\r\n\r\nThe commits in the kernel around the time the firmware was updated to 4.4.14 [can be found here](https://github.com/raspberrypi/linux/commits/rpi-4.4.y?after=04c8e47067d4873c584395e5cb260b4f170a99ea+2634)\r\n\r\nAny help will be greatly appreciated!"},"comment":{"url":"https://api.github.com/repos/raspberrypi/linux/issues/comments/411562965","html_url":"https://github.com/raspberrypi/linux/issues/2632#issuecomment-411562965","issue_url":"https://api.github.com/repos/raspberrypi/linux/issues/2632","id":411562965,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTU2Mjk2NQ==","user":{"login":"macmpi","id":16296055,"node_id":"MDQ6VXNlcjE2Mjk2MDU1","avatar_url":"https://avatars2.githubusercontent.com/u/16296055?v=4","gravatar_id":"","url":"https://api.github.com/users/macmpi","html_url":"https://github.com/macmpi","followers_url":"https://api.github.com/users/macmpi/followers","following_url":"https://api.github.com/users/macmpi/following{/other_user}","gists_url":"https://api.github.com/users/macmpi/gists{/gist_id}","starred_url":"https://api.github.com/users/macmpi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macmpi/subscriptions","organizations_url":"https://api.github.com/users/macmpi/orgs","repos_url":"https://api.github.com/users/macmpi/repos","events_url":"https://api.github.com/users/macmpi/events{/privacy}","received_events_url":"https://api.github.com/users/macmpi/received_events","type":"User","site_admin":false},"created_at":"2018-08-08T21:46:40Z","updated_at":"2018-08-08T21:46:40Z","author_association":"NONE","body":"@lnjuanj \r\nDo you have same problem if you do `i2cdetect` under `sudo`?\r\n\r\nI experienced similar issues on a custom built Raspbian, and this got fixed once I properly set user access to i2c & gpio, as it is done in Foundation Raspbian release.\r\nThings like `usermod -a -G gpio,i2c,spi,input <your group>` and  [install `raspberrypi-sys-mods`](https://github.com/RPi-Distro/raspberrypi-sys-mods)"}}
{"actor":{"display_login":"macmpi"}}