Re: [2.4 IDE PATCH] SanDisk is flash (fwd)

From: Meelis Roos
Date: Wed Apr 14 2004 - 03:46:13 EST


> Some time ago I sent mail to Meelis asking if this patch is really necessary.

Oops, it must have been our university's mail server havein breakfast of
my mail again :(

> Does this mean that CF test fail or that SunDisk is SanDisk now?

Just that SunDisk is now SanDisk. The patch was developed in 2.4 to
quieten flash disk detection messages. The important part was about host
protected area detection that is already different in 2.6 (*). In
addition, the name change was noticed and fixed. It resulted in
different display (not ATA but CFA) and told the ide layer that the disk
does not have door locking but I don't know whether it actually changes
some important behaviour.

> id->config == 0x848a test was introduced in kernel 2.3.27 _after_
> SunDisk model name test and if id->config == 0x848a test fails
> comment to drive_is_flashcard() needs fixing.

I don't have the hardware currently at hand but I can let people who
have test it. I only know for sure that it changes the display of "ATA"
to "CFA" in 2.4.22 where the patch was developed. This was before the
patch:
hda: SanDisk SDP3B-64, ATA DISK drive

(*) The host protected area fix for 2.4 was to do
idedisk_read_native_max_address(drive) only when
idedisk_supports_host_protected_area(drive) was true. By my quick look
it seemed that 2.6 already does this check in init_idedisk_capacity()
and 2.6 does not need the other patch - am I right here?

--
Meelis Roos (mroos@xxxxxxxx)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/