{"action":"created","issue":{"url":"https://api.github.com/repos/raspberrypi/linux/issues/1219","labels_url":"https://api.github.com/repos/raspberrypi/linux/issues/1219/labels{/name}","comments_url":"https://api.github.com/repos/raspberrypi/linux/issues/1219/comments","events_url":"https://api.github.com/repos/raspberrypi/linux/issues/1219/events","html_url":"https://github.com/raspberrypi/linux/issues/1219","id":120930804,"number":1219,"title":"system freeze while unplug r8152  usb2network card","user":{"login":"huangjiansword","id":7925416,"avatar_url":"https://avatars.githubusercontent.com/u/7925416?v=3","gravatar_id":"","url":"https://api.github.com/users/huangjiansword","html_url":"https://github.com/huangjiansword","followers_url":"https://api.github.com/users/huangjiansword/followers","following_url":"https://api.github.com/users/huangjiansword/following{/other_user}","gists_url":"https://api.github.com/users/huangjiansword/gists{/gist_id}","starred_url":"https://api.github.com/users/huangjiansword/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huangjiansword/subscriptions","organizations_url":"https://api.github.com/users/huangjiansword/orgs","repos_url":"https://api.github.com/users/huangjiansword/repos","events_url":"https://api.github.com/users/huangjiansword/events{/privacy}","received_events_url":"https://api.github.com/users/huangjiansword/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-08T04:59:35Z","updated_at":"2015-12-08T12:21:36Z","closed_at":null,"body":"hi there,\r\n  I have a raspberry pi model A+ running linux 3.18.7+, and raspberry pi B running linux 4.1.7.I found a issue about r8152 driver in the image. \r\n\r\nsteps below:\r\n1, attach a usb hub(self-powered usb hub is better, otherwise the pi'll reboot when you plug usb2network in)  on the pi's usb port \r\n2, attach a usb2network card (chip ID is 0bda:8152 Realtek Semiconductor Corp.) device on the usb hub\r\n3, connect network wire to r8152 network card and a router\r\n4, run ifconfig to monitor eth0's status(eth1 in raspberry model B, which is the usb2network's ethnet port)\r\n5, when eth0's status changed to running or got ip address, unplug the r8152 device, the raspberry pi has a large probability to stop response\r\nyou may try serveral times to reappear this issue.\r\n\r\nI use several other usb2network cards(chip ID is 0b95:772b ASIX Electronics Corp. and  ), the same operation, It works, no crash.\r\n\r\nBTW, I try the latest driver 2.05.0 from realteck website, problem remains.\r\n\r\nMy power supply is 5V 2A, the power is good enough for raspberry pi.\r\n\r\nI don't think the freeze is related with the usb hub, I tried many hub chip such as 05e3:0608(GL850G) or 05e3:0610(GL852G) from Genesys logic or  1a40:0101or 1a40:0201 Terminus Technology Inc. or 0424:9512 from Standard Microsystems Corp. which is the original hub of raspberry model B\r\n\r\nAnd I can not get any related log from dmesg or  other log.\r\n\r\nIf attached the r8152 directly with the Pi's USB port, no such issue.\r\n\r\nI have contacted with the engineer of REALTEK,  the conclusion from REALTEK is:\r\n\"If hub is involved to the issue, it could be a timing compatibility issue between usb host controller and genesis chip.\"\r\n\r\nHow can I fix the issue?\r\nThank you in advance!"},"comment":{"url":"https://api.github.com/repos/raspberrypi/linux/issues/comments/162864848","html_url":"https://github.com/raspberrypi/linux/issues/1219#issuecomment-162864848","issue_url":"https://api.github.com/repos/raspberrypi/linux/issues/1219","id":162864848,"user":{"login":"popcornmix","id":1053730,"avatar_url":"https://avatars.githubusercontent.com/u/1053730?v=3","gravatar_id":"","url":"https://api.github.com/users/popcornmix","html_url":"https://github.com/popcornmix","followers_url":"https://api.github.com/users/popcornmix/followers","following_url":"https://api.github.com/users/popcornmix/following{/other_user}","gists_url":"https://api.github.com/users/popcornmix/gists{/gist_id}","starred_url":"https://api.github.com/users/popcornmix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/popcornmix/subscriptions","organizations_url":"https://api.github.com/users/popcornmix/orgs","repos_url":"https://api.github.com/users/popcornmix/repos","events_url":"https://api.github.com/users/popcornmix/events{/privacy}","received_events_url":"https://api.github.com/users/popcornmix/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T12:21:36Z","updated_at":"2015-12-08T12:21:36Z","body":"Does the pi hang and need rebooting before you see the messages? How are you viewing them?"}}