lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 3 Jul 2007 18:28:40 +0530
From:	"Nobin Mathew" <nobin.mathew@...il.com>
To:	"Midhun Agnihotram" <agnimidhun@...il.com>
Cc:	linux-kernel@...r.kernel.org,
	"Pierre Ossman" <drzeus-mmc@...eus.cx>
Subject: Re: platform_driver_register() ??

Hi Midhun,
    I think mmc driver is layered modules, only top block driver
registers driver under  "mmc_bus_type" bus, see
drivers/mmc/mmc_sysfs.c and mmc_block.c. I think they are creating a
tree of devices of same characteristics under that bus.
I think your driver is linux/drivers/mmc/imxmmc.c where it registers a
driver for device of type "platform_bus_type". This module will come
under above mentioned block driver.
Corresponding platform device is registered in
linux/arch/arm/mach-imx/generic.c see platform_device imx_mmc_device.

Nobin Mathew




On 7/3/07, Midhun Agnihotram <agnimidhun@...il.com> wrote:
> Hi All,
>
>  I have an MMC driver for my kit (i.MX21 based cogent board
> CSB535FS), which is supplied by Cogent (Kernel version 2.6.16).
>
>   The original driver (linux/drivers/mmc/mmc_block.c) uses
> mmc_register_driver() method to register the driver but the one
> supplied by Cogent uses platform_driver_register() method. What is the
> difference between the two?
>
>
> Thanks,
> Midhun.
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@...r.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ