{"action":"created","issue":{"url":"https://api.github.com/repos/raspberrypi/linux/issues/1429","repository_url":"https://api.github.com/repos/raspberrypi/linux","labels_url":"https://api.github.com/repos/raspberrypi/linux/issues/1429/labels{/name}","comments_url":"https://api.github.com/repos/raspberrypi/linux/issues/1429/comments","events_url":"https://api.github.com/repos/raspberrypi/linux/issues/1429/events","html_url":"https://github.com/raspberrypi/linux/issues/1429","id":150604474,"number":1429,"title":"mmc_spi broken?","user":{"login":"franzflasch","id":5569703,"avatar_url":"https://avatars.githubusercontent.com/u/5569703?v=3","gravatar_id":"","url":"https://api.github.com/users/franzflasch","html_url":"https://github.com/franzflasch","followers_url":"https://api.github.com/users/franzflasch/followers","following_url":"https://api.github.com/users/franzflasch/following{/other_user}","gists_url":"https://api.github.com/users/franzflasch/gists{/gist_id}","starred_url":"https://api.github.com/users/franzflasch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/franzflasch/subscriptions","organizations_url":"https://api.github.com/users/franzflasch/orgs","repos_url":"https://api.github.com/users/franzflasch/repos","events_url":"https://api.github.com/users/franzflasch/events{/privacy}","received_events_url":"https://api.github.com/users/franzflasch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-23T22:34:07Z","updated_at":"2016-04-25T09:36:26Z","closed_at":null,"body":"I am trying to get an SD Card to work via SPI interface. I am using a RaspberryPI Compute Module with kernel Version 4.4, but I can't get it to work properly. I've tried it with the native spi interface as well as with the spi aux interface and also with a gpio bitbang spi interface. It's always the same error:\r\n \r\n[ 2639.558282] mmc1: new SD card on SPI\r\n[ 2639.566325] mmcblk1: mmc1:0000 SD256 243 MiB \r\n[ 2639.646120]  mmcblk1: p1 < >\r\n[ 2639.833759] mmcblk1: error -38 sending status command, retrying\r\n[ 2639.839973] mmcblk1: error -38 sending status command, retrying\r\n[ 2639.846170] mmcblk1: error -38 sending status command, aborting\r\n[ 2639.853406] mmc1: SPI card removed\r\n[ 2640.240223] mmc1: host does not support reading read-only switch, assuming write-enable\r\n[ 2640.248328] mmc1: new SD card on SPI\r\n[ 2640.256373] mmcblk1: mmc1:0000 SD256 243 MiB \r\n[ 2640.336068]  mmcblk1: p1 < >\r\n[ 2640.523545] mmcblk1: error -38 sending status command, retrying\r\n[ 2640.529757] mmcblk1: error -38 sending status command, retrying\r\n[ 2640.535893] mmcblk1: error -38 sending status command, aborting\r\n[ 2640.543129] mmc1: SPI card removed\r\n[ 2640.930176] mmc1: host does not support reading read-only switch, assuming write-enable\r\n[ 2640.938313] mmc1: new SD card on SPI\r\n[ 2640.946679] mmcblk1: mmc1:0000 SD256 243 MiB \r\n[ 2641.026395]  mmcblk1: p1 < >\r\n[ 2641.213996] mmcblk1: error -38 sending status command, retrying\r\n[ 2641.220208] mmcblk1: error -38 sending status command, retrying\r\n[ 2641.226344] mmcblk1: error -38 sending status command, aborting\r\n[ 2641.233435] mmc1: SPI card removed\r\n[ 2641.620177] mmc1: host does not support reading read-only switch, assuming write-enable\r\n[ 2641.628277] mmc1: new SD card on SPI\r\n[ 2641.636530] mmcblk1: mmc1:0000 SD256 243 MiB \r\n[ 2641.716114]  mmcblk1: p1 < >\r\n[ 2641.903636] mmcblk1: error -38 sending status command, retrying\r\n[ 2641.909852] mmcblk1: error -38 sending status command, retrying\r\n[ 2641.915987] mmcblk1: error -38 sending status command, aborting\r\n[ 2641.923056] mmc1: SPI card removed\r\n \r\nI don't have any RO or CD pins configured, just plain SPI interface directly to the SD Card. I've tried it with different SD cards with different capacities. It's always the same error. The above messages appear in a endless loop. The last time I've used the mmc_spi driver was kernel 3.6 and it worked without any problems.\r\n\r\nI've already patched the kernel with this patch: https://github.com/msperl/linux-rpi/commit/aef50a19f335ae3d2eb43ac5496c7f03930b394f which solves the problem, that the card was not recognized, however it still does not work.\r\n\r\nDoes anyone know how to fix this?\r\n \r\nThanks,\r\nFranz"},"comment":{"url":"https://api.github.com/repos/raspberrypi/linux/issues/comments/214234260","html_url":"https://github.com/raspberrypi/linux/issues/1429#issuecomment-214234260","issue_url":"https://api.github.com/repos/raspberrypi/linux/issues/1429","id":214234260,"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-04-25T09:36:26Z","updated_at":"2016-04-25T09:36:26Z","body":"Also, this isn't really a kernel bug, although it could eventually turn out to be one. You would be better off asking this question in the [Interfacing Forum](https://www.raspberrypi.org/forums/viewforum.php?f=44). Be sure to include details of the hardware you are using and any specific configuration you have done."}}