Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145312091
D25948.1777628491.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D25948.1777628491.diff
View Options
Index: head/sys/cam/mmc/mmc_xpt.c
===================================================================
--- head/sys/cam/mmc/mmc_xpt.c
+++ head/sys/cam/mmc/mmc_xpt.c
@@ -199,11 +199,6 @@
struct cam_ed *device, void *async_arg)
{
- printf("mmc_dev_async(async_code=0x%x, path_id=%d, target_id=%x, lun_id=%" SCNx64 "\n",
- async_code,
- bus->path_id,
- target->target_id,
- device->lun_id);
/*
* We only need to handle events for real devices.
*/
@@ -211,24 +206,11 @@
|| device->lun_id == CAM_LUN_WILDCARD)
return;
- if (async_code == AC_LOST_DEVICE) {
- if ((device->flags & CAM_DEV_UNCONFIGURED) == 0) {
- printf("AC_LOST_DEVICE -> set to unconfigured\n");
- device->flags |= CAM_DEV_UNCONFIGURED;
- xpt_release_device(device);
- } else {
- printf("AC_LOST_DEVICE on unconfigured device\n");
- }
- } else if (async_code == AC_FOUND_DEVICE) {
- printf("Got AC_FOUND_DEVICE -- whatever...\n");
- } else if (async_code == AC_PATH_REGISTERED) {
- printf("Got AC_PATH_REGISTERED -- whatever...\n");
- } else if (async_code == AC_PATH_DEREGISTERED ) {
- printf("Got AC_PATH_DEREGISTERED -- whatever...\n");
- } else if (async_code == AC_UNIT_ATTENTION) {
- printf("Got interrupt generated by the card and ignored it\n");
- } else
- panic("Unknown async code\n");
+ if (async_code == AC_LOST_DEVICE &&
+ (device->flags & CAM_DEV_UNCONFIGURED) == 0) {
+ device->flags |= CAM_DEV_UNCONFIGURED;
+ xpt_release_device(device);
+ }
}
/* Taken from nvme_scan_lun, thanks to bsdimp@ */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, May 1, 9:41 AM (5 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28523088
Default Alt Text
D25948.1777628491.diff (1 KB)
Attached To
Mode
D25948: mmccam: mmc_xpt: We're only interested about losing the device
Attached
Detach File
Event Timeline
Log In to Comment