LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* Problems in fixup_device function
@ 2008-03-06 19:21 John Linn
  2008-03-06 19:38 ` Grant Likely
  0 siblings, 1 reply; 3+ messages in thread
From: John Linn @ 2008-03-06 19:21 UTC (permalink / raw)
  To: linuxppc-embedded

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

I've added some code to virtex_device_fixup and am seeing some strange
side affects.  I've added code to read from an iic device and populate
the mac address including ioremap.  The code works fine, but the side
affects are not fine.

 

Anyone have any experience here?

 

I see the loops_per_jiffy getting hosed like there is some bad code, but
I can't track it down.  It moves around badly, like it can come and go
with printk additions or deletions.

 

I don't know enough about the stack and Linux to know if there could be
a problem there.

 

Thanks,

John


[-- Attachment #2: Type: text/html, Size: 8016 bytes --]

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

* Re: Problems in fixup_device function
  2008-03-06 19:21 Problems in fixup_device function John Linn
@ 2008-03-06 19:38 ` Grant Likely
  2008-03-06 19:40   ` John Linn
  0 siblings, 1 reply; 3+ messages in thread
From: Grant Likely @ 2008-03-06 19:38 UTC (permalink / raw)
  To: John Linn; +Cc: linuxppc-embedded

On Thu, Mar 6, 2008 at 12:21 PM, John Linn <John.Linn@xilinx.com> wrote:
>
>
>
>
> I've added some code to virtex_device_fixup and am seeing some strange side
> affects.  I've added code to read from an iic device and populate the mac
> address including ioremap.  The code works fine, but the side affects are
> not fine.

Specifically, what are you trying to do?  Are you modifying the data
in the platform device?

Cheers,
g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.

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

* RE: Problems in fixup_device function
  2008-03-06 19:38 ` Grant Likely
@ 2008-03-06 19:40   ` John Linn
  0 siblings, 0 replies; 3+ messages in thread
From: John Linn @ 2008-03-06 19:40 UTC (permalink / raw)
  To: Grant Likely; +Cc: linuxppc-embedded

I am loading the mac address into the data of the platform device.

-- John

-----Original Message-----
From: glikely@secretlab.ca [mailto:glikely@secretlab.ca] On Behalf Of
Grant Likely
Sent: Thursday, March 06, 2008 12:39 PM
To: John Linn
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: Problems in fixup_device function

On Thu, Mar 6, 2008 at 12:21 PM, John Linn <John.Linn@xilinx.com> wrote:
>
>
>
>
> I've added some code to virtex_device_fixup and am seeing some strange
side
> affects.  I've added code to read from an iic device and populate the
mac
> address including ioremap.  The code works fine, but the side affects
are
> not fine.

Specifically, what are you trying to do?  Are you modifying the data
in the platform device?

Cheers,
g.

--=20
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.

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

end of thread, other threads:[~2008-03-06 19:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-06 19:21 Problems in fixup_device function John Linn
2008-03-06 19:38 ` Grant Likely
2008-03-06 19:40   ` John Linn

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