Re: [PATCH] Hotplug support for several PSX controlers

From: Eric Piel
Date: Sun Dec 12 2004 - 16:56:47 EST


Peter Nelson wrote:
> As I added to the documentation "hot swapping should work (but is not
> recomended)." This might make it a bit more likely to work, but still
> "not recomended."
Yes, I had read it somewhere, I've tried and it works :-)


> This seems like a reasonable explination when ports float if
> unconnected. Your patch does almost the right thing. First
> gc_psx_command should take a data[5] argument, that was a logic error on
> my part. Second, you compare the calculated length to PSX_LENGTH, which
> is just saying we read in bytes. It should check <= 6, which is the
> longest string of packets possible (buttons, buttons, right, right,
> left, left, see
> <http://www.gamesx.com/controldata/psxcont/psxcont.htm>). Changing to
> compare to 6 makes the patch look good to me.
I didn't know about the official spec. So changing PSX_LENGTH to 6 makes everything even more correct, good.


>> It probably works on a vanilla 2.6.10-rc3 but I highly recommand to
>> use the Vojtech's tree which contains an important fix about PSX DDR
>> (cf http://marc.theaimsgroup.com/?l=linux-kernel&m=110118014804716&w=2).
>
>
> Vojtech already accepted my almost-identical patch when I noticed this
> in September. See
> http://marc.theaimsgroup.com/?l=linux-kernel&m=109571247127456&w=4
Sorry not mentioning your patch, it is actually the one I use. When searching for the reference I mistook with the post of Decklin, sorry.


>> I've heard that Linus wants 2.6.10 ready for Christmas, this patch
>> should definitetly helps ;-)
> I'm all for both my previous patch and this one making it into 2.6.10 =)
Is there anyone in particular to tell about those patches? Or is the normal way that Vojtech inserts the patches in his tree and Linus pulls it when he feels it's stable enough?

Eric


-
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/