Module Name: src Committed By: mlelstv Date: Tue Feb 11 15:02:42 UTC 2025
Modified Files: src/sys/dev/scsipi: sd.c Log Message: Handle unit startup issues also before "media is loaded". To generate a diff of this commit: cvs rdiff -u -r1.337 -r1.338 src/sys/dev/scsipi/sd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/scsipi/sd.c diff -u src/sys/dev/scsipi/sd.c:1.337 src/sys/dev/scsipi/sd.c:1.338 --- src/sys/dev/scsipi/sd.c:1.337 Sat Sep 28 08:57:47 2024 +++ src/sys/dev/scsipi/sd.c Tue Feb 11 15:02:42 2025 @@ -1,4 +1,4 @@ -/* $NetBSD: sd.c,v 1.337 2024/09/28 08:57:47 mlelstv Exp $ */ +/* $NetBSD: sd.c,v 1.338 2025/02/11 15:02:42 mlelstv Exp $ */ /*- * Copyright (c) 1998, 2003, 2004 The NetBSD Foundation, Inc. @@ -47,7 +47,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: sd.c,v 1.337 2024/09/28 08:57:47 mlelstv Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sd.c,v 1.338 2025/02/11 15:02:42 mlelstv Exp $"); #ifdef _KERNEL_OPT #include "opt_scsi.h" @@ -1090,14 +1090,6 @@ sd_interpret_sense(struct scsipi_xfer *x return (retval); } - - - /* - * If the device is not open yet, let the generic code handle it. - */ - if ((periph->periph_flags & PERIPH_MEDIA_LOADED) == 0) - return (retval); - /* * If it isn't a extended or extended/deferred error, let * the generic code handle it.