public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* PATCH: Fix 32bitism in SDHCI
@ 2006-06-15 15:33 Alan Cox
  2006-06-15 16:59 ` [Sdhci-devel] " Pierre Ossman
  0 siblings, 1 reply; 11+ messages in thread
From: Alan Cox @ 2006-06-15 15:33 UTC (permalink / raw)
  To: sdhci-devel, linux-kernel

The data field is ulong, pointers fit in ulongs. Casting them to int is
bad for 64bit systems.

diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.17-rc6/drivers/mmc/sdhci.c linux-2.6.17-rc6/drivers/mmc/sdhci.c
--- linux.vanilla-2.6.17-rc6/drivers/mmc/sdhci.c	2006-06-06 14:01:11.000000000 +0100
+++ linux-2.6.17-rc6/drivers/mmc/sdhci.c	2006-06-15 11:59:57.580510280 +0100
@@ -1073,7 +1073,7 @@
 	tasklet_init(&host->finish_tasklet,
 		sdhci_tasklet_finish, (unsigned long)host);
 
-	setup_timer(&host->timer, sdhci_timeout_timer, (int)host);
+	setup_timer(&host->timer, sdhci_timeout_timer, (unsigned long)host);
 
 	ret = request_irq(host->irq, sdhci_irq, SA_SHIRQ,
 		host->slot_descr, host);


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

* Re: [Sdhci-devel] PATCH: Fix 32bitism in SDHCI
  2006-06-15 15:33 PATCH: Fix 32bitism in SDHCI Alan Cox
@ 2006-06-15 16:59 ` Pierre Ossman
  2006-06-15 17:04   ` Russell King
                     ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Pierre Ossman @ 2006-06-15 16:59 UTC (permalink / raw)
  To: Alan Cox; +Cc: sdhci-devel, linux-kernel

Alan Cox wrote:
> The data field is ulong, pointers fit in ulongs. Casting them to int is
> bad for 64bit systems.

It's in my (rather large) queue. I'm just waiting for a merge window. :)


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

* Re: [Sdhci-devel] PATCH: Fix 32bitism in SDHCI
  2006-06-15 16:59 ` [Sdhci-devel] " Pierre Ossman
@ 2006-06-15 17:04   ` Russell King
  2006-06-15 17:07     ` Pierre Ossman
  2006-06-15 17:37   ` Alan Cox
  2006-06-15 18:59   ` Daniel Drake
  2 siblings, 1 reply; 11+ messages in thread
From: Russell King @ 2006-06-15 17:04 UTC (permalink / raw)
  To: Pierre Ossman; +Cc: Alan Cox, sdhci-devel, linux-kernel

On Thu, Jun 15, 2006 at 06:59:26PM +0200, Pierre Ossman wrote:
> Alan Cox wrote:
> > The data field is ulong, pointers fit in ulongs. Casting them to int is
> > bad for 64bit systems.
> 
> It's in my (rather large) queue. I'm just waiting for a merge window. :)

I didn't see the original message, but I suspect this is about the
following, which you can see is already queued up for Linus.

# Base git commit: 0e838b72d54ed189033939258a961f2a0cd59647
#	(Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev)
#
# Author:    Andrew Morton (Mon Jun 12 22:10:22 BST 2006)
# Committer: Russell King (Mon Jun 12 22:10:22 BST 2006)
#	
#	[MMC] sdhci truncated pointer fix
#	
#	On 64-bit machines, we just lost the uppermost 32 bits.
#	
#	Signed-off-by: Andrew Morton
#	Signed-off-by: Russell King
#
#	 drivers/mmc/sdhci.c |    2 +-
#	 1 files changed, 1 insertions(+), 1 deletions(-)
#
diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c
--- a/drivers/mmc/sdhci.c
+++ b/drivers/mmc/sdhci.c
@@ -1073,7 +1073,7 @@ static int __devinit sdhci_probe_slot(st
 	tasklet_init(&host->finish_tasklet,
 		sdhci_tasklet_finish, (unsigned long)host);
 
-	setup_timer(&host->timer, sdhci_timeout_timer, (int)host);
+	setup_timer(&host->timer, sdhci_timeout_timer, (long)host);
 
 	ret = request_irq(host->irq, sdhci_irq, SA_SHIRQ,
 		host->slot_descr, host);


-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 Serial core

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

* Re: [Sdhci-devel] PATCH: Fix 32bitism in SDHCI
  2006-06-15 17:04   ` Russell King
@ 2006-06-15 17:07     ` Pierre Ossman
  0 siblings, 0 replies; 11+ messages in thread
From: Pierre Ossman @ 2006-06-15 17:07 UTC (permalink / raw)
  To: Alan Cox, sdhci-devel, linux-kernel

Russell King wrote:
> On Thu, Jun 15, 2006 at 06:59:26PM +0200, Pierre Ossman wrote:
>   
>> Alan Cox wrote:
>>     
>>> The data field is ulong, pointers fit in ulongs. Casting them to int is
>>> bad for 64bit systems.
>>>       
>> It's in my (rather large) queue. I'm just waiting for a merge window. :)
>>     
>
> I didn't see the original message, but I suspect this is about the
> following, which you can see is already queued up for Linus.
>
>   

Yup. Now who's the scoundrel that forgot to cc me on that patch? :)

Rgds
Pierre


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

* Re: [Sdhci-devel] PATCH: Fix 32bitism in SDHCI
  2006-06-15 16:59 ` [Sdhci-devel] " Pierre Ossman
  2006-06-15 17:04   ` Russell King
@ 2006-06-15 17:37   ` Alan Cox
  2006-06-15 18:35     ` Mark Lord
                       ` (2 more replies)
  2006-06-15 18:59   ` Daniel Drake
  2 siblings, 3 replies; 11+ messages in thread
From: Alan Cox @ 2006-06-15 17:37 UTC (permalink / raw)
  To: Pierre Ossman; +Cc: sdhci-devel, linux-kernel

Ar Iau, 2006-06-15 am 18:59 +0200, ysgrifennodd Pierre Ossman:
> Alan Cox wrote:
> > The data field is ulong, pointers fit in ulongs. Casting them to int is
> > bad for 64bit systems.
> 
> It's in my (rather large) queue. I'm just waiting for a merge window. :)

I'd have thought that one was a "Duh whoops, fix it now" kind of
submission for 2.6.17


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

* Re: [Sdhci-devel] PATCH: Fix 32bitism in SDHCI
  2006-06-15 17:37   ` Alan Cox
@ 2006-06-15 18:35     ` Mark Lord
  2006-06-15 18:50     ` Pierre Ossman
  2006-06-15 18:52     ` Russell King
  2 siblings, 0 replies; 11+ messages in thread
From: Mark Lord @ 2006-06-15 18:35 UTC (permalink / raw)
  To: Pierre Ossman; +Cc: Alan Cox, sdhci-devel, linux-kernel

Alan Cox wrote:
> Ar Iau, 2006-06-15 am 18:59 +0200, ysgrifennodd Pierre Ossman:
>> Alan Cox wrote:
>>> The data field is ulong, pointers fit in ulongs. Casting them to int is
>>> bad for 64bit systems.
>> It's in my (rather large) queue. I'm just waiting for a merge window. :)
> 
> I'd have thought that one was a "Duh whoops, fix it now" kind of
> submission for 2.6.17

Same here.  Simple & obvious bug fixes shouldn't need a "merge window".

Cheers

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

* Re: [Sdhci-devel] PATCH: Fix 32bitism in SDHCI
  2006-06-15 17:37   ` Alan Cox
  2006-06-15 18:35     ` Mark Lord
@ 2006-06-15 18:50     ` Pierre Ossman
  2006-06-15 21:51       ` Alan Cox
  2006-06-15 18:52     ` Russell King
  2 siblings, 1 reply; 11+ messages in thread
From: Pierre Ossman @ 2006-06-15 18:50 UTC (permalink / raw)
  To: Alan Cox; +Cc: sdhci-devel, linux-kernel

Alan Cox wrote:
> I'd have thought that one was a "Duh whoops, fix it now" kind of
> submission for 2.6.17
>
>   

Yes and no. It's for a code path that's never supposed to be hit (and
isn't except for hardware so broken it doesn't work anyway). So I
figured I might as well send it in with the rest of the patches.

I'm fine either way though. I'll just pop that patch from my set.

Rgds
Pierre


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

* Re: [Sdhci-devel] PATCH: Fix 32bitism in SDHCI
  2006-06-15 17:37   ` Alan Cox
  2006-06-15 18:35     ` Mark Lord
  2006-06-15 18:50     ` Pierre Ossman
@ 2006-06-15 18:52     ` Russell King
  2 siblings, 0 replies; 11+ messages in thread
From: Russell King @ 2006-06-15 18:52 UTC (permalink / raw)
  To: Alan Cox; +Cc: Pierre Ossman, sdhci-devel, linux-kernel

On Thu, Jun 15, 2006 at 06:37:37PM +0100, Alan Cox wrote:
> Ar Iau, 2006-06-15 am 18:59 +0200, ysgrifennodd Pierre Ossman:
> > Alan Cox wrote:
> > > The data field is ulong, pointers fit in ulongs. Casting them to int is
> > > bad for 64bit systems.
> > 
> > It's in my (rather large) queue. I'm just waiting for a merge window. :)
> 
> I'd have thought that one was a "Duh whoops, fix it now" kind of
> submission for 2.6.17

akpm sent it to me, so I merged it into my tree, and now I've been
sitting on it all this week because I've taken the decision that I
do not want to put anything further into Linus' tree until we actually
see 2.6.17.

If you look at what Linus said when he released -rc7, the reason we
had -rc7 instead of -final was that we had too many changes.  We can
either go on throwing more and more changes, albiet 100% correct
bug fix changes, and carry on releasing -rc after -rc, but at some
point there must be an end to this, and -final must happen.

It's been three months since 2.6.16 was released.  I'm not prepared
to be the reason that we have another week of -rc-ism because of too
many small but apparantly correct changes.

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 Serial core

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

* Re: [Sdhci-devel] PATCH: Fix 32bitism in SDHCI
  2006-06-15 16:59 ` [Sdhci-devel] " Pierre Ossman
  2006-06-15 17:04   ` Russell King
  2006-06-15 17:37   ` Alan Cox
@ 2006-06-15 18:59   ` Daniel Drake
  2006-06-15 19:05     ` Pierre Ossman
  2 siblings, 1 reply; 11+ messages in thread
From: Daniel Drake @ 2006-06-15 18:59 UTC (permalink / raw)
  To: Pierre Ossman; +Cc: Alan Cox, sdhci-devel, linux-kernel

Hi Pierre,

Pierre Ossman wrote:
> It's in my (rather large) queue. I'm just waiting for a merge window. :)

Is your queue publicised anywhere? I have a new laptop, which has a card 
reader supposedly supported by sdhci, but it doesn't work. I would like 
to confirm that I am running the latest code before I start diagnosing it...

Thanks
Daniel

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

* Re: [Sdhci-devel] PATCH: Fix 32bitism in SDHCI
  2006-06-15 18:59   ` Daniel Drake
@ 2006-06-15 19:05     ` Pierre Ossman
  0 siblings, 0 replies; 11+ messages in thread
From: Pierre Ossman @ 2006-06-15 19:05 UTC (permalink / raw)
  To: Daniel Drake; +Cc: sdhci-devel, Alan Cox, linux-kernel

Daniel Drake wrote:
> Is your queue publicised anywhere? I have a new laptop, which has a card 
> reader supposedly supported by sdhci, but it doesn't work. I would like 
> to confirm that I am running the latest code before I start diagnosing it...
>
>   

Not in a git format as I use StGIT and it tends to be incompatible with
pulls. My patches usually circulate a bit on the sdhci-devel list before
I pass them on to Russell. This time the set is rather large though:

http://list.drzeus.cx/pipermail/sdhci-devel/2006-May/000809.html

Rgds
Pierre


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

* Re: [Sdhci-devel] PATCH: Fix 32bitism in SDHCI
  2006-06-15 18:50     ` Pierre Ossman
@ 2006-06-15 21:51       ` Alan Cox
  0 siblings, 0 replies; 11+ messages in thread
From: Alan Cox @ 2006-06-15 21:51 UTC (permalink / raw)
  To: Pierre Ossman; +Cc: sdhci-devel, linux-kernel

Ar Iau, 2006-06-15 am 20:50 +0200, ysgrifennodd Pierre Ossman:
> Yes and no. It's for a code path that's never supposed to be hit (and
> isn't except for hardware so broken it doesn't work anyway).

Oh I see, I didn't realise it was just for the obscure corner case


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

end of thread, other threads:[~2006-06-15 21:35 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-15 15:33 PATCH: Fix 32bitism in SDHCI Alan Cox
2006-06-15 16:59 ` [Sdhci-devel] " Pierre Ossman
2006-06-15 17:04   ` Russell King
2006-06-15 17:07     ` Pierre Ossman
2006-06-15 17:37   ` Alan Cox
2006-06-15 18:35     ` Mark Lord
2006-06-15 18:50     ` Pierre Ossman
2006-06-15 21:51       ` Alan Cox
2006-06-15 18:52     ` Russell King
2006-06-15 18:59   ` Daniel Drake
2006-06-15 19:05     ` Pierre Ossman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox