{"action":"created","comment":{"url":"https://api.github.com/repos/travisg/lk/pulls/comments/42303398","id":42303398,"diff_hunk":"@@ -375,7 +377,16 @@ static ssize_t spiflash_bdev_erase(struct bdev* device, off_t offset,\n \n static int spiflash_ioctl(struct bdev* device, int request, void* argp)\n {\n-    return ERR_NOT_IMPLEMENTED;\n+    int ret = ERR_NOT_SUPPORTED;\n+\n+    switch (request) {\n+        case BIO_IOCTL_GET_MEM_MAP:","path":"platform/stm32f7xx/qspi.c","position":17,"original_position":17,"commit_id":"59b6db7ec0e7c9ad73670c18da0db39cb6e29d94","original_commit_id":"59b6db7ec0e7c9ad73670c18da0db39cb6e29d94","user":{"login":"travisg","id":97708,"avatar_url":"https://avatars.githubusercontent.com/u/97708?v=3","gravatar_id":"","url":"https://api.github.com/users/travisg","html_url":"https://github.com/travisg","followers_url":"https://api.github.com/users/travisg/followers","following_url":"https://api.github.com/users/travisg/following{/other_user}","gists_url":"https://api.github.com/users/travisg/gists{/gist_id}","starred_url":"https://api.github.com/users/travisg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travisg/subscriptions","organizations_url":"https://api.github.com/users/travisg/orgs","repos_url":"https://api.github.com/users/travisg/repos","events_url":"https://api.github.com/users/travisg/events{/privacy}","received_events_url":"https://api.github.com/users/travisg/received_events","type":"User","site_admin":false},"body":"There's a PUT_MEM_MAP too, should support that for when writes are needed. Unless it supports writing while in linear mode?","created_at":"2015-10-17T01:05:23Z","updated_at":"2015-10-17T01:05:23Z","html_url":"https://github.com/travisg/lk/pull/60#discussion_r42303398","pull_request_url":"https://api.github.com/repos/travisg/lk/pulls/60","_links":{"self":{"href":"https://api.github.com/repos/travisg/lk/pulls/comments/42303398"},"html":{"href":"https://github.com/travisg/lk/pull/60#discussion_r42303398"},"pull_request":{"href":"https://api.github.com/repos/travisg/lk/pulls/60"}}},"pull_request":{"url":"https://api.github.com/repos/travisg/lk/pulls/60","id":47975312,"html_url":"https://github.com/travisg/lk/pull/60","diff_url":"https://github.com/travisg/lk/pull/60.diff","patch_url":"https://github.com/travisg/lk/pull/60.patch","issue_url":"https://api.github.com/repos/travisg/lk/issues/60","number":60,"state":"open","locked":false,"title":"[qspi][spiflash][stm32f746] Support linear mode for STM32f7 qspiflash","user":{"login":"gkalsi","id":1513257,"avatar_url":"https://avatars.githubusercontent.com/u/1513257?v=3","gravatar_id":"","url":"https://api.github.com/users/gkalsi","html_url":"https://github.com/gkalsi","followers_url":"https://api.github.com/users/gkalsi/followers","following_url":"https://api.github.com/users/gkalsi/following{/other_user}","gists_url":"https://api.github.com/users/gkalsi/gists{/gist_id}","starred_url":"https://api.github.com/users/gkalsi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gkalsi/subscriptions","organizations_url":"https://api.github.com/users/gkalsi/orgs","repos_url":"https://api.github.com/users/gkalsi/repos","events_url":"https://api.github.com/users/gkalsi/events{/privacy}","received_events_url":"https://api.github.com/users/gkalsi/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-17T01:00:45Z","updated_at":"2015-10-17T01:05:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5214265ffe969491cbdf2da09427612052fed77b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/travisg/lk/pulls/60/commits","review_comments_url":"https://api.github.com/repos/travisg/lk/pulls/60/comments","review_comment_url":"https://api.github.com/repos/travisg/lk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/travisg/lk/issues/60/comments","statuses_url":"https://api.github.com/repos/travisg/lk/statuses/59b6db7ec0e7c9ad73670c18da0db39cb6e29d94","head":{"label":"travisg:pr_qspi-linear","ref":"pr_qspi-linear","sha":"59b6db7ec0e7c9ad73670c18da0db39cb6e29d94","user":{"login":"travisg","id":97708,"avatar_url":"https://avatars.githubusercontent.com/u/97708?v=3","gravatar_id":"","url":"https://api.github.com/users/travisg","html_url":"https://github.com/travisg","followers_url":"https://api.github.com/users/travisg/followers","following_url":"https://api.github.com/users/travisg/following{/other_user}","gists_url":"https://api.github.com/users/travisg/gists{/gist_id}","starred_url":"https://api.github.com/users/travisg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travisg/subscriptions","organizations_url":"https://api.github.com/users/travisg/orgs","repos_url":"https://api.github.com/users/travisg/repos","events_url":"https://api.github.com/users/travisg/events{/privacy}","received_events_url":"https://api.github.com/users/travisg/received_events","type":"User","site_admin":false},"repo":{"id":3058456,"name":"lk","full_name":"travisg/lk","owner":{"login":"travisg","id":97708,"avatar_url":"https://avatars.githubusercontent.com/u/97708?v=3","gravatar_id":"","url":"https://api.github.com/users/travisg","html_url":"https://github.com/travisg","followers_url":"https://api.github.com/users/travisg/followers","following_url":"https://api.github.com/users/travisg/following{/other_user}","gists_url":"https://api.github.com/users/travisg/gists{/gist_id}","starred_url":"https://api.github.com/users/travisg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travisg/subscriptions","organizations_url":"https://api.github.com/users/travisg/orgs","repos_url":"https://api.github.com/users/travisg/repos","events_url":"https://api.github.com/users/travisg/events{/privacy}","received_events_url":"https://api.github.com/users/travisg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/travisg/lk","description":"LK embedded kernel","fork":false,"url":"https://api.github.com/repos/travisg/lk","forks_url":"https://api.github.com/repos/travisg/lk/forks","keys_url":"https://api.github.com/repos/travisg/lk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/travisg/lk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/travisg/lk/teams","hooks_url":"https://api.github.com/repos/travisg/lk/hooks","issue_events_url":"https://api.github.com/repos/travisg/lk/issues/events{/number}","events_url":"https://api.github.com/repos/travisg/lk/events","assignees_url":"https://api.github.com/repos/travisg/lk/assignees{/user}","branches_url":"https://api.github.com/repos/travisg/lk/branches{/branch}","tags_url":"https://api.github.com/repos/travisg/lk/tags","blobs_url":"https://api.github.com/repos/travisg/lk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/travisg/lk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/travisg/lk/git/refs{/sha}","trees_url":"https://api.github.com/repos/travisg/lk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/travisg/lk/statuses/{sha}","languages_url":"https://api.github.com/repos/travisg/lk/languages","stargazers_url":"https://api.github.com/repos/travisg/lk/stargazers","contributors_url":"https://api.github.com/repos/travisg/lk/contributors","subscribers_url":"https://api.github.com/repos/travisg/lk/subscribers","subscription_url":"https://api.github.com/repos/travisg/lk/subscription","commits_url":"https://api.github.com/repos/travisg/lk/commits{/sha}","git_commits_url":"https://api.github.com/repos/travisg/lk/git/commits{/sha}","comments_url":"https://api.github.com/repos/travisg/lk/comments{/number}","issue_comment_url":"https://api.github.com/repos/travisg/lk/issues/comments{/number}","contents_url":"https://api.github.com/repos/travisg/lk/contents/{+path}","compare_url":"https://api.github.com/repos/travisg/lk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/travisg/lk/merges","archive_url":"https://api.github.com/repos/travisg/lk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/travisg/lk/downloads","issues_url":"https://api.github.com/repos/travisg/lk/issues{/number}","pulls_url":"https://api.github.com/repos/travisg/lk/pulls{/number}","milestones_url":"https://api.github.com/repos/travisg/lk/milestones{/number}","notifications_url":"https://api.github.com/repos/travisg/lk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/travisg/lk/labels{/name}","releases_url":"https://api.github.com/repos/travisg/lk/releases{/id}","created_at":"2011-12-27T19:19:36Z","updated_at":"2015-10-16T10:53:09Z","pushed_at":"2015-10-17T01:00:46Z","git_url":"git://github.com/travisg/lk.git","ssh_url":"git@github.com:travisg/lk.git","clone_url":"https://github.com/travisg/lk.git","svn_url":"https://github.com/travisg/lk","homepage":"","size":17861,"stargazers_count":94,"watchers_count":94,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":62,"mirror_url":null,"open_issues_count":10,"forks":62,"open_issues":10,"watchers":94,"default_branch":"master"}},"base":{"label":"travisg:master","ref":"master","sha":"4e0b62745c1647fc6ce4af5a217ad1658cdbfb2d","user":{"login":"travisg","id":97708,"avatar_url":"https://avatars.githubusercontent.com/u/97708?v=3","gravatar_id":"","url":"https://api.github.com/users/travisg","html_url":"https://github.com/travisg","followers_url":"https://api.github.com/users/travisg/followers","following_url":"https://api.github.com/users/travisg/following{/other_user}","gists_url":"https://api.github.com/users/travisg/gists{/gist_id}","starred_url":"https://api.github.com/users/travisg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travisg/subscriptions","organizations_url":"https://api.github.com/users/travisg/orgs","repos_url":"https://api.github.com/users/travisg/repos","events_url":"https://api.github.com/users/travisg/events{/privacy}","received_events_url":"https://api.github.com/users/travisg/received_events","type":"User","site_admin":false},"repo":{"id":3058456,"name":"lk","full_name":"travisg/lk","owner":{"login":"travisg","id":97708,"avatar_url":"https://avatars.githubusercontent.com/u/97708?v=3","gravatar_id":"","url":"https://api.github.com/users/travisg","html_url":"https://github.com/travisg","followers_url":"https://api.github.com/users/travisg/followers","following_url":"https://api.github.com/users/travisg/following{/other_user}","gists_url":"https://api.github.com/users/travisg/gists{/gist_id}","starred_url":"https://api.github.com/users/travisg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travisg/subscriptions","organizations_url":"https://api.github.com/users/travisg/orgs","repos_url":"https://api.github.com/users/travisg/repos","events_url":"https://api.github.com/users/travisg/events{/privacy}","received_events_url":"https://api.github.com/users/travisg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/travisg/lk","description":"LK embedded kernel","fork":false,"url":"https://api.github.com/repos/travisg/lk","forks_url":"https://api.github.com/repos/travisg/lk/forks","keys_url":"https://api.github.com/repos/travisg/lk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/travisg/lk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/travisg/lk/teams","hooks_url":"https://api.github.com/repos/travisg/lk/hooks","issue_events_url":"https://api.github.com/repos/travisg/lk/issues/events{/number}","events_url":"https://api.github.com/repos/travisg/lk/events","assignees_url":"https://api.github.com/repos/travisg/lk/assignees{/user}","branches_url":"https://api.github.com/repos/travisg/lk/branches{/branch}","tags_url":"https://api.github.com/repos/travisg/lk/tags","blobs_url":"https://api.github.com/repos/travisg/lk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/travisg/lk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/travisg/lk/git/refs{/sha}","trees_url":"https://api.github.com/repos/travisg/lk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/travisg/lk/statuses/{sha}","languages_url":"https://api.github.com/repos/travisg/lk/languages","stargazers_url":"https://api.github.com/repos/travisg/lk/stargazers","contributors_url":"https://api.github.com/repos/travisg/lk/contributors","subscribers_url":"https://api.github.com/repos/travisg/lk/subscribers","subscription_url":"https://api.github.com/repos/travisg/lk/subscription","commits_url":"https://api.github.com/repos/travisg/lk/commits{/sha}","git_commits_url":"https://api.github.com/repos/travisg/lk/git/commits{/sha}","comments_url":"https://api.github.com/repos/travisg/lk/comments{/number}","issue_comment_url":"https://api.github.com/repos/travisg/lk/issues/comments{/number}","contents_url":"https://api.github.com/repos/travisg/lk/contents/{+path}","compare_url":"https://api.github.com/repos/travisg/lk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/travisg/lk/merges","archive_url":"https://api.github.com/repos/travisg/lk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/travisg/lk/downloads","issues_url":"https://api.github.com/repos/travisg/lk/issues{/number}","pulls_url":"https://api.github.com/repos/travisg/lk/pulls{/number}","milestones_url":"https://api.github.com/repos/travisg/lk/milestones{/number}","notifications_url":"https://api.github.com/repos/travisg/lk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/travisg/lk/labels{/name}","releases_url":"https://api.github.com/repos/travisg/lk/releases{/id}","created_at":"2011-12-27T19:19:36Z","updated_at":"2015-10-16T10:53:09Z","pushed_at":"2015-10-17T01:00:46Z","git_url":"git://github.com/travisg/lk.git","ssh_url":"git@github.com:travisg/lk.git","clone_url":"https://github.com/travisg/lk.git","svn_url":"https://github.com/travisg/lk","homepage":"","size":17861,"stargazers_count":94,"watchers_count":94,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":62,"mirror_url":null,"open_issues_count":10,"forks":62,"open_issues":10,"watchers":94,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/travisg/lk/pulls/60"},"html":{"href":"https://github.com/travisg/lk/pull/60"},"issue":{"href":"https://api.github.com/repos/travisg/lk/issues/60"},"comments":{"href":"https://api.github.com/repos/travisg/lk/issues/60/comments"},"review_comments":{"href":"https://api.github.com/repos/travisg/lk/pulls/60/comments"},"review_comment":{"href":"https://api.github.com/repos/travisg/lk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/travisg/lk/pulls/60/commits"},"statuses":{"href":"https://api.github.com/repos/travisg/lk/statuses/59b6db7ec0e7c9ad73670c18da0db39cb6e29d94"}}}}