aboutsummaryrefslogtreecommitdiff
path: root/sys/cam/mmc
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2020-08-04 20:00:21 +0000
committerEmmanuel Vadot <manu@FreeBSD.org>2020-08-04 20:00:21 +0000
commit25f965fdaac3722f2cfaf1b698737fb5fbef3421 (patch)
treeb237e764560d8c27533a53a49f37554265d588e7 /sys/cam/mmc
parent1164f7a5669a4e8a9788451a4acbad3d086c92c5 (diff)
downloadsrc-25f965fdaac3722f2cfaf1b698737fb5fbef3421.tar.gz
src-25f965fdaac3722f2cfaf1b698737fb5fbef3421.zip
mmccam: mmc_xpt: We're only interested about losing the device
Remove all the uneeded printfs Reviewed by: imp, kibab Differential Revision: https://reviews.freebsd.org/D25948
Notes
Notes: svn path=/head/; revision=363860
Diffstat (limited to 'sys/cam/mmc')
-rw-r--r--sys/cam/mmc/mmc_xpt.c28
1 files changed, 5 insertions, 23 deletions
diff --git a/sys/cam/mmc/mmc_xpt.c b/sys/cam/mmc/mmc_xpt.c
index cf4a96e29d1c..d91ee4e4f190 100644
--- a/sys/cam/mmc/mmc_xpt.c
+++ b/sys/cam/mmc/mmc_xpt.c
@@ -199,11 +199,6 @@ mmc_dev_async(u_int32_t async_code, struct cam_eb *bus, struct cam_et *target,
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 @@ mmc_dev_async(u_int32_t async_code, struct cam_eb *bus, struct cam_et *target,
|| 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@ */