9front - general discussion about 9front
 help / color / mirror / Atom feed
* [9front] [patch] 9/port/sdaoe: remove unfinished atapi support
@ 2024-05-29 17:28 Arne Meyer
  2024-05-31 22:39 ` cinap_lenrek
  2024-06-01 16:14 ` cinap_lenrek
  0 siblings, 2 replies; 3+ messages in thread
From: Arne Meyer @ 2024-05-29 17:28 UTC (permalink / raw)
  To: 9front

[-- Attachment #1: Type: text/plain, Size: 231 bytes --]

sdaoe has some vestigial code that was probably meant to support atapi. this depends on code from sdscsi,
which is not reflected in the conf files for pc and pc64 but sdscsi gets pulled in by other drivers and compiles by accident.

[-- Attachment #2: sdaoe.diff --]
[-- Type: application/octet-stream, Size: 747 bytes --]

diff ded308e5762d26ed79d26d540dfba8d336f20390 uncommitted
--- a/sys/src/9/port/sdaoe.c
+++ b/sys/src/9/port/sdaoe.c
@@ -366,14 +366,7 @@
 	int r;
 
 	c = u->dev->ctlr;
-	r = 0;
 
-	if((c->feat&Datapi) && c->drivechange){
-		if(aoeconnect(u, c) == 0 && (r = scsionline(u)) > 0)
-			c->drivechange = 0;
-		return r;
-	}
-
 	if(c->drivechange){
 		if(aoeconnect(u, c) == -1)
 			return 0;
@@ -396,8 +389,6 @@
 	Ctlr *c;
 
 	c = u->dev->ctlr;
-//	if(c->feat & Datapi)
-//		return scsibio(u, lun, write, a, count, lba);
 	data = a;
 	if(write)
 		rio = devtab[c->c->type]->write;
@@ -431,8 +422,6 @@
 
 	u = r->unit;
 	c = u->dev->ctlr;
-//	if(c->feat & Datapi)
-//		return aoeriopkt(r, d);
 
 	if(r->cmd[0] == 0x35 || r->cmd[0] == 0x91){
 		qlock(c);

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [9front] [patch] 9/port/sdaoe: remove unfinished atapi support
  2024-05-29 17:28 [9front] [patch] 9/port/sdaoe: remove unfinished atapi support Arne Meyer
@ 2024-05-31 22:39 ` cinap_lenrek
  2024-06-01 16:14 ` cinap_lenrek
  1 sibling, 0 replies; 3+ messages in thread
From: cinap_lenrek @ 2024-05-31 22:39 UTC (permalink / raw)
  To: 9front

yeah, makes sense. as the pkt stuff seems unfinished,
removing it might make most sense.


--
cinap

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [9front] [patch] 9/port/sdaoe: remove unfinished atapi support
  2024-05-29 17:28 [9front] [patch] 9/port/sdaoe: remove unfinished atapi support Arne Meyer
  2024-05-31 22:39 ` cinap_lenrek
@ 2024-06-01 16:14 ` cinap_lenrek
  1 sibling, 0 replies; 3+ messages in thread
From: cinap_lenrek @ 2024-06-01 16:14 UTC (permalink / raw)
  To: 9front

applied.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-06-01 16:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-29 17:28 [9front] [patch] 9/port/sdaoe: remove unfinished atapi support Arne Meyer
2024-05-31 22:39 ` cinap_lenrek
2024-06-01 16:14 ` cinap_lenrek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).