* Re: mmc_test
[not found] <CAMKhXh=5eymTCzDPRd0ipxQN5z4ZB2BSoTxwy1C+v7iP8T_BiQ@mail.gmail.com>
@ 2012-02-14 7:50 ` Adrian Hunter
2012-02-14 8:06 ` mmc_test Shashidhar Hiremath
0 siblings, 1 reply; 2+ messages in thread
From: Adrian Hunter @ 2012-02-14 7:50 UTC (permalink / raw)
To: Shridhar Rasal; +Cc: linux-mmc
On 14/02/12 08:41, Shridhar Rasal wrote:
> [sorry for spamming you]
>
> Dear Adrian,
>
> I am working on K3.1.
> I am trying to run mmc_test on my set-up. I have added mmc_test as a driver.
> But sysfs entries(test/testlist) are getting created only for any of SDIO host.
mmc_test will not work if mmc_block has already been given all the
MMC devices.
You can always switch between mmc_test and mmc_block by
unbinding / binding e.g.
# ls -al /sys/bus/mmc/drivers/mmcblk
drwxr-xr-x 2 root 0 0 Jan 1 00:00 .
drwxr-xr-x 4 root 0 0 Jan 1 00:00 ..
--w------- 1 root 0 4096 Jan 1 00:01 bind
lrwxrwxrwx 1 root 0 0 Jan 1 00:01 mmc0:0001 ->
../../../../devices/platform/mmci-omap-hs.1/mmc_host/mmc0/mmc0:0001
--w------- 1 root 0 4096 Jan 1 00:01 uevent
--w------- 1 root 0 4096 Jan 1 00:01 unbind
# echo mmc0:0001 > /sys/bus/mmc/drivers/mmcblk/unbind
# echo mmc0:0001 > /sys/bus/mmc/drivers/mmc_test/bind
[ 128.221313] mmc_test mmc0:0001: Card claimed for testing.
>
> I digged further and found that,
> 1. mmc_test_probe is invoked only in case of SDIO and not for other hosts.
> 2. this is because of from mmc_bus_probe( ), only for SDIO host -
> mmc_test_probe () invoked and for other hosts - mmc_blk_probe () invoked.
>
>
> - What can be reason for this?
> - Am I missing some patches?
>
> Also, please let me know, where can I post such mmc related queries.
MMC mailing list:
http://vger.kernel.org/vger-lists.html#linux-mmc
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: mmc_test
2012-02-14 7:50 ` mmc_test Adrian Hunter
@ 2012-02-14 8:06 ` Shashidhar Hiremath
0 siblings, 0 replies; 2+ messages in thread
From: Shashidhar Hiremath @ 2012-02-14 8:06 UTC (permalink / raw)
To: Adrian Hunter; +Cc: Shridhar Rasal, linux-mmc
Hi,
The mmc_test runs fine for SD cards as well. As Adrian said, if the
block is un-binded correctly, it should work for any card.
Another point , may not be worthy here is modification in make file
mmc_test.o needs to compiled before block.o. Sometimes I have seen
cases where this has solved the issue.
On Tue, Feb 14, 2012 at 1:20 PM, Adrian Hunter <adrian.hunter@intel.com> wrote:
>
> On 14/02/12 08:41, Shridhar Rasal wrote:
> > [sorry for spamming you]
> >
> > Dear Adrian,
> >
> > I am working on K3.1.
> > I am trying to run mmc_test on my set-up. I have added mmc_test as a driver.
> > But sysfs entries(test/testlist) are getting created only for any of SDIO host.
>
> mmc_test will not work if mmc_block has already been given all the
> MMC devices.
>
> You can always switch between mmc_test and mmc_block by
> unbinding / binding e.g.
>
>
> # ls -al /sys/bus/mmc/drivers/mmcblk
> drwxr-xr-x 2 root 0 0 Jan 1 00:00 .
> drwxr-xr-x 4 root 0 0 Jan 1 00:00 ..
> --w------- 1 root 0 4096 Jan 1 00:01 bind
> lrwxrwxrwx 1 root 0 0 Jan 1 00:01 mmc0:0001 ->
> ../../../../devices/platform/mmci-omap-hs.1/mmc_host/mmc0/mmc0:0001
> --w------- 1 root 0 4096 Jan 1 00:01 uevent
> --w------- 1 root 0 4096 Jan 1 00:01 unbind
>
> # echo mmc0:0001 > /sys/bus/mmc/drivers/mmcblk/unbind
>
> # echo mmc0:0001 > /sys/bus/mmc/drivers/mmc_test/bind
> [ 128.221313] mmc_test mmc0:0001: Card claimed for testing.
>
>
> >
> > I digged further and found that,
> > 1. mmc_test_probe is invoked only in case of SDIO and not for other hosts.
> > 2. this is because of from mmc_bus_probe( ), only for SDIO host -
> > mmc_test_probe () invoked and for other hosts - mmc_blk_probe () invoked.
> >
> >
> > - What can be reason for this?
> > - Am I missing some patches?
> >
> > Also, please let me know, where can I post such mmc related queries.
>
> MMC mailing list:
>
> http://vger.kernel.org/vger-lists.html#linux-mmc
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
regards,
Shashidhar Hiremath
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-02-14 8:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CAMKhXh=5eymTCzDPRd0ipxQN5z4ZB2BSoTxwy1C+v7iP8T_BiQ@mail.gmail.com>
2012-02-14 7:50 ` mmc_test Adrian Hunter
2012-02-14 8:06 ` mmc_test Shashidhar Hiremath
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox