Page MenuHomeFreeBSD

D25948.1777628491.diff
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

D25948.1777628491.diff

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

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)

Event Timeline