[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20171230181154.63yqw4fqodsxb7k2@ninjato>
Date: Sat, 30 Dec 2017 19:11:54 +0100
From: Wolfram Sang <wsa@...-dreams.de>
To: Arseny Solokha <asolokha@...kras.ru>
Cc: linux-i2c@...r.kernel.org, linux-kernel@...r.kernel.org,
Valentin Longchamp <valentin.longchamp@...mile.com>
Subject: Re: [RESEND,3/4] i2c: mpc: fix PORDEVSR2 mask for MPC8533/44
> /*
> * Map and check POR Device Status Register 2
> - * (PORDEVSR2) at 0xE0014
> + * (PORDEVSR2) at 0xE0014. Note than while MPC8533
> + * and MPC8544 indicate SEC frequency ratio
> + * configuration as bit 26 in PORDEVSR2, other MPC8xxx
> + * parts may store it differently or may not have it
> + * at all.
So given this comment which you added...
> */
> reg = ioremap(get_immrbase() + *prop + 0x14, 0x4);
> if (!reg)
> printk(KERN_ERR
> "Error: couldn't map PORDEVSR2\n");
> else
> - val = in_be32(reg) & 0x00000080; /* sec-cfg */
> + val = in_be32(reg) & 0x00000020; /* sec-cfg */
... are you really sure there is no ancient device which needs the
0x00000080?
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists