Skip to contentSkip to conversation

Problems in fixup_device function

DISCUSSION John Linn 2 participants 3 messages Mar 6, 2008

lore
Share & tools
lore

John Linn

author
#0 lore raw

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

#1 lore raw
Quoted 8 lines · John Linn

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.

Signature · 2 lines
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
author
#2 lore raw

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

-- John

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Grant Likely
Sent: Thursday, March 06, 2008 12:39 PM
To: John Linn
Cc: [email protected]
Subject: Re: Problems in fixup_device function

Quoted 5 lines · John Linn

I've added some code to virtex_device_fixup and am seeing some strange

side

Quoted 1 line

affects. I've added code to read from an iic device and populate the

mac

Quoted 1 line

address including ioremap. The code works fine, but the side affects

are

Quoted 1 line

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.