linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: "Jon Smirl" <jonsmirl@gmail.com>
To: "Guennadi Liakhovetski" <g.liakhovetski@gmx.de>
Cc: "Rogério Brito" <rbrito@ime.usp.br>,
	"Scott Wood" <scottwood@freescale.com>,
	linuxppc-dev@ozlabs.org
Subject: Re: [PATCH] powerpc: enable heap randomization for linkstations
Date: Sun, 19 Oct 2008 18:40:13 -0400	[thread overview]
Message-ID: <9e4733910810191540p1000c28l89ca50794addae37@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0810200022040.21665@axis700.grange>

On Sun, Oct 19, 2008 at 6:28 PM, Guennadi Liakhovetski
<g.liakhovetski@gmx.de> wrote:
> On Sun, 19 Oct 2008, Jon Smirl wrote:
>
>> i2c-mpc.c has:
>>
>> static const struct of_device_id mpc_i2c_of_match[] = {
>>       {.compatible = "fsl-i2c",},
>>       {},
>> };
>> MODULE_DEVICE_TABLE(of, mpc_i2c_of_match);
>>
>>
>> /* Structure for a device driver */
>> static struct of_platform_driver mpc_i2c_driver = {
>>       .match_table    = mpc_i2c_of_match,
>>       .probe          = fsl_i2c_probe,
>>       .remove         = __devexit_p(fsl_i2c_remove),
>>       .driver         = {
>>               .owner  = THIS_MODULE,
>>               .name   = DRV_NAME,
>>       },
>> };
>>
>> That should match:
>>
>>               i2c@80003000 {
>>                       #address-cells = <1>;
>>                       #size-cells = <0>;
>>                       cell-index = <0>;
>>                       compatible = "fsl-i2c";
>>                       reg = <0x80003000 0x1000>;
>>                       interrupts = <5 2>;
>>                       interrupt-parent = <&mpic>;
>>
>>                       rtc@32 {
>>                               device_type = "rtc";
>>                               compatible = "ricoh,rs5c372a";
>>                               reg = <0x32>;
>>                       };
>>               };
>
> It should, but it doesn't.
>
>> This code works on my mpc5200 board.
>
> Don't know which 5200 board you have, but, for example lite5200 has
>
>                        compatible = "fsl,mpc5200-i2c","fsl-i2c";
>
> see the difference?
>
>> Maybe fsl_i2c_probe() is failing?
>
> It has a printk at each error case (ok, except kzalloc, but I don't think
> that is the case), I see none of them.
>
>> Add some printks in i2c-mpc to help debug the problem.
>> Any errors from i2c-mpc in dmesg?
>
> None, and, as I said, there are no error messages from it, so, it doesn't
> get called at all. To be quite sure I added a printk at the entry - as
> expected it didn't get printed.

Is i2c-mpc built into your kernel? It's not going to module auto-load
because the names don't match - fsl-i2c and i2c-mpc.

But a message on init and make sure it is loading.
static int __init fsl_i2c_init(void)
{
	int rv;

	rv = of_register_platform_driver(&mpc_i2c_driver);
	if (rv)
		printk(KERN_ERR DRV_NAME
		       " of_register_platform_driver failed (%i)\n", rv);
	return rv;
}

>
> Thanks
> Guennadi
> ---
> Guennadi Liakhovetski, Ph.D.
> Freelance Open-Source Software Developer
>



-- 
Jon Smirl
jonsmirl@gmail.com

  reply	other threads:[~2008-10-19 22:40 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-13  4:07 [PATCH] powerpc: compile kernel for linkstations optimized for size Rogério Brito
2008-10-13  4:51 ` [PATCH] powerpc: enable heap randomization for linkstations Rogério Brito
2008-10-13 18:05   ` Guennadi Liakhovetski
2008-10-13 18:44     ` Scott Wood
2008-10-13 19:27       ` Guennadi Liakhovetski
2008-10-13 20:56       ` Rogério Brito
2008-10-19  2:53       ` Rogério Brito
2008-10-19  3:16         ` Rogério Brito
2008-10-19 20:59         ` Guennadi Liakhovetski
2008-10-19 21:32           ` Jon Smirl
2008-10-19 21:49             ` Guennadi Liakhovetski
2008-10-19 22:05               ` Jon Smirl
2008-10-19 22:28                 ` Guennadi Liakhovetski
2008-10-19 22:40                   ` Jon Smirl [this message]
2008-10-20  5:55                     ` Guennadi Liakhovetski
2008-10-20 12:19                       ` Jon Smirl
2008-10-21  6:42                         ` [REGRESSION 2.6.27] i2c-mpc not probing on linkstation (was Re: [PATCH] powerpc: enable heap randomization for linkstations) Guennadi Liakhovetski
2008-10-21  7:19                           ` [REGRESSION 2.6.27] i2c-mpc not probing on linkstation Rogério Brito
2008-10-21 15:16                   ` [PATCH] powerpc: enable heap randomization for linkstations Scott Wood
2008-10-21 15:26                     ` Guennadi Liakhovetski
2008-10-21 15:32                       ` Scott Wood
2008-10-17  9:38   ` Rogério Brito
2008-10-28 13:58   ` Kumar Gala
2008-10-13 18:03 ` [PATCH] powerpc: compile kernel for linkstations optimized for size Guennadi Liakhovetski
2008-10-13 21:28   ` Rogério Brito
2008-10-17  9:37 ` Rogério Brito
2008-10-28 13:58 ` Kumar Gala

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9e4733910810191540p1000c28l89ca50794addae37@mail.gmail.com \
    --to=jonsmirl@gmail.com \
    --cc=g.liakhovetski@gmx.de \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=rbrito@ime.usp.br \
    --cc=scottwood@freescale.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).