Re: Sanyo CDROM driver broken in 2.2.5. Fix included

Anthony Barbachan (barbacha@Hinako.AMBusiness.com)
Mon, 5 Apr 1999 00:22:48 -0400


Hi,

Thanks for the tip, I put in the modifications to drivers/cdrom/sjcd.c
and they worked. I can now use the Sanyo CDROM under the 2.2.5 kernel. I
have included a patch with the fix in this email so that future kernels will
have a working Sanyo CDROM driver. This patch adds the fix and incriments
the version number of the driver to 1.7.

- A. Barbachan

>> In both systems the driver was loaded first the isp16 enabling driver
then
>> the sjcd driver; both as modules. The drivers load ok and can even be
used
>> to eject a CD within the CDROM. However the first time I try to mount a
>
>The sjcd driver doesn't set up the sector size tables in the kernel. The
>result of that is the mess you see.
>
>Try adding
>
> static int blksize = 2048;
> static int secsize = 2048;
>
> hardsect_size[MAJOR_NR]=&secsize;
> blksize_size[M<AJOR_NR]=&blksize
>
>about where it registers the device.
>
>
>Alan
>

begin 666 sjcd-upgrade.patch
M+2TM(&QI;G5X+3(N,BXU+6-L96%N+V1R:79E<G,O8V1R;VTO<VIC9"YC"5-U
M;B!$96,@,C @,#<Z,S8Z-#<@,3DY. HK*RL@;&EN=7@O9')I=F5R<R]C9')O
M;2]S:F-D+F,)4W5N($%P<B @-" R,CHS,CHR-" Q.3DY"D! ("TT-2PQ,2 K
M-#4L,30@0$ *(" J(" @(" @06QL;W<@;VYL>2!T;R!S970@:6\@8F%S92!A
M9&1R97-S(&]N(&-O;6UA;F0@;&EN93H@<VIC9#T\:6]?8F%S93X*(" J(" @
M(" @0VAA;F=E<R!T;R!$;V-U;65N=&%T:6]N+V-D<F]M+W-J8V0*(" J(" @
M(" @061D960@8VQE86YU<"!A9G1E<B!A;GD@97)R;W(@:6X@=&AE(&EN:71I
M86QI<V%T:6]N+@HK("H@(#$N-R!!9&1E9"!C;V1E('1O('-E="!T:&4@<V5C
M=&]R('-I>F4@=&%B;&5S('1O('!R979E;G0@=&AE(&)U9R!P<F5S96YT(&EN
M( HK("H@(" @("!T:&4@<')E=FEO=7,@=F5R<VEO;B!O9B!T:&ES(&1R:79E
M<BX@($-O9&5D(&%D9&5D(&)Y($%N=&AO;GD@0F%R8F%C:&%N( HK("H@(" @
M("!F<F]M(&)U9V9I>"!T:7 @;W)I9VEN86QL>2!S=6=G97-T960@8GD@06QA
M;B!#;W@N"B @*@H@("HO"B *("-D969I;F4@4TI#1%]615)324].7TU!2D]2
M(#$*+2-D969I;F4@4TI#1%]615)324].7TU)3D]2(#8**R-D969I;F4@4TI#
M1%]615)324].7TU)3D]2(#<*( H@(VEF9&5F($U/1%5,10H@(VEN8VQU9&4@
M/&QI;G5X+VUO9'5L92YH/@I 0" M,30S-RPV("LQ-#0P+#D@0$ *(" @3E5,
M3" @(" @(" @(" @(" @(" O*B!R979A;&ED871E("HO"B!].PH@"BMS=&%T
M:6,@:6YT(&)L:W-I>F4@/2 R,#0X.PHK<W1A=&EC(&EN="!S96-S:7IE(#T@
M,C T.#L**PH@+RH*(" J($9O;&QO=VEN9R!S='5F9B!I<R!I;G1E;F1E9"!F
M;W(@:6YI=&EA;&EZ871I;VX@;V8@=&AE(&-D<F]M+B!)= H@("H@9FER<W0@
M;&]O:W,@9F]R('!R97-E;F-E(&]F(&1E=FEC92X@268@=&AE(&1E=FEC92!I
M<R!P<F5S96YT+"!I= I 0" M,30V,"PV("LQ-#8V+#D@0$ *("-I9B!D969I
M;F5D*"!32D-$7U1204-%("D*(" @<')I;G1K*")32D-$.B!S:F-D/3!X)7@Z
M("(L('-J8V1?8F%S92D["B C96YD:68@( HK"BL):&%R9'-E8W1?<VEZ95M-
M04I/4E].4ET@/2 F<V5C<VEZ93L**PEB;&MS:7IE7W-I>F5;34%*3U)?3E)=
M(#T@)F)L:W-I>F4["B *(" @:68H(')E9VES=&5R7V)L:V1E=B@@34%*3U)?
M3E(L(")S:F-D(BP@)G-J8V1?9F]P<R I("$](# @*7L*(" @("!P<FEN=&LH
M(")32D-$.B!5;F%B;&4@=&\@9V5T(&UA:F]R("5D(&9O<B!386YY;R!#1"U2
33TU<;B(L($U!2D]27TY2("D["@``
`
end

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