Bug 141756 - [mmc] MMC card attached to <RICOH R5C822> blocks keyboards
Summary: [mmc] MMC card attached to <RICOH R5C822> blocks keyboards
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-18 18:30 UTC by Rupert Stitzinger
Modified: 2018-01-03 05:16 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rupert Stitzinger 2009-12-18 18:30:04 UTC
The used laptop has a integrated SD Slot with Ricoh chipset. 
After "kldload mmc" "kldload mmcsd""kldload sdhci" reports
sdhci0: <RICOH R5C822 SD> mem 0xc8011800-0xc80118ff at device 9.2 on pci6
sdhci0: 1 slot(s) allocated
sdhci0: [ITHREAD]
SD cards are recognized without problems. 

When a Noname MMC with 14 connector pads is attached keytypes aren't
recognized anymore. This is valid for the internal keyboard and an
external USB keyboard. The mouse i working and also paste is working.
The USB keyboard connected after the MMC is put in is reported in
dmesg, but no keys are recognized in the shell.  Unfort. i have no
other MMCs for testing.

Machine has the kernel from FreeBSD CD1

Fix: 

None
How-To-Repeat: Put in MMC with 14 connectors
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2009-12-21 06:49:44 UTC
Responsible Changed
From-To: freebsd-i386->freebsd-bugs

This might not be i386-specific.
Comment 2 Gavin Atkinson freebsd_committer freebsd_triage 2010-02-07 22:46:34 UTC
State Changed
From-To: open->feedback

To submitter: is there any chance you are seeing this under X?  If so, 
do you see the same under the console without X running? 


Comment 3 Gavin Atkinson freebsd_committer freebsd_triage 2010-02-07 22:46:34 UTC
Responsible Changed
From-To: freebsd-bugs->gavin

Track
Comment 4 Rupert Stitzinger 2010-02-08 19:57:30 UTC
Hello,

sdhci, mmc are loaded with kldload
i see it under X11 and syscons with the internal atkbd keyboard. Also a external USB Keyboard shows the behaviour. The mouse is working (PS/2 and USB). Pasting with the mouse is working. With switched on debugging for mmc and sdhci (hw.mmc.debug: 1 and hw.sdhci.debug: 1) i get
slot0: Card inserted
mmc0: <MMC/SD Bus> on sdhci0
mmc0: Probing bus
mmc0: SD probe failed
mmc0: MMC probe:OK (OCR: 0x00ff8000)
mmc0: Current OCR 0x00ff8000
mmc0 Probing cards
mmc0 New card detected CID 2c.........

For "debugging" i modified syscons.c in `/usr/src/sys/dev/syscons` with an additional printf - see below
.
.
.
   scp = sc->cur_scp;
    /* first see if there is something in the keyboard port */
    for (;;) {
        c = kbdd_read_char(sc->kbd, !(flags & SCGETC_NONBLOCK));
        if (c == ERRKEY) {
            if (!(flags & SCGETC_CN))
                sc_bell(scp, bios_value.bell_pitch, BELL_DURATION);
        } else if (c == NOKEY)
            return c;
        else
            break;
    }
/* Debug von stitz */
printf("%d",c);		// H E R E  D E B U G
/* Ende Debug */
 
    /* make screensaver happy */
    if (!(c & RELKEY))
        sc_touch_scrn_saver();
 
I see each keytype before inserting the MMC after this printf isn't writing anything.  will do further printf s if someone tells me where to set them. Sorry i'm no kernel programmer

Sincerly
R. Stitzinger


On Sun, 7 Feb 2010 22:47:22 GMT
gavin@FreeBSD.org wrote:

> Synopsis: [mmc] MMC card attached to <RICOH R5C822> blocks keyboards
> 
> State-Changed-From-To: open->feedback
> State-Changed-By: gavin
> State-Changed-When: Sun Feb 7 22:46:34 UTC 2010
> State-Changed-Why: 
> To submitter: is there any chance you are seeing this under X?  If so,
> do you see the same under the console without X running?
> 
> 
> Responsible-Changed-From-To: freebsd-bugs->gavin
> Responsible-Changed-By: gavin
> Responsible-Changed-When: Sun Feb 7 22:46:34 UTC 2010
> Responsible-Changed-Why: 
> Track
> 
> http://www.freebsd.org/cgi/query-pr.cgi?pr=141756


-- 
Rupert Stitzinger <stitzinger_rupert@web.de>
Comment 5 Gavin Atkinson freebsd_committer freebsd_triage 2010-02-14 18:53:40 UTC
State Changed
From-To: feedback->feedback

To submitter: thanks for the useful feedback. 

Could you please try to narrow down which of the drivers causes the problem? 

What happens if you just load sdhci? 
WHat happens if you load sdhci and mmcsd, but not mmc? 
WHat happens if you load sdhci and mmc, but not mmcsd? 

Thanks! 

Gavin
Comment 6 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:58:34 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped