LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 08-06-2014, 07:17 AM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Log Spam from RTS5139 staging module


This module works, but fills dmesg with crap - log spam. All this continually while it's doing nothing. Some overzealous debug mode? Kernel 3.14.5

Code:
[51087.497231] rts51x: Read card, sector addr: 0xaff, sector cnt: 62
[51087.497232] rts51x: rts51x_sd_rw, data_addr = 0x15fe00
[51087.497341] rts51x: rts51x_bulk_transfer_sglist: xfer 31744 bytes, 9 entries
[51087.623197] rts51x: SD: stop transmission
[51087.623201] rts51x: SD/MMC CMD 12, arg = 0x00000000
[51087.623447] rts51x: rts51x_ctrl_transfer: rq=00 rqtype=40 value=02ff index=101 len=0
[51087.943469] rts51x: rts51x_ctrl_transfer: rq=00 rqtype=c0 value=56bd index=00 len=1
[51087.943592] rts51x: rts51x_ctrl_transfer: rq=00 rqtype=40 value=56fd index=2ff len=0
[51088.327791] rts51x: Idle state!
[51088.327795] rts51x: rts51x_ctrl_transfer: rq=00 rqtype=40 value=56fd index=303 len=0
[51095.117526] rts51x: Command READ_10 (10 bytes)
[51095.117531] rts51x: Read card, sector addr: 0xb3d, sector cnt: 1
[51095.117533] rts51x: rts51x_sd_rw, data_addr = 0x167a00
[51095.117535] rts51x: SD/MMC CMD 18
[51095.117647] rts51x: rts51x_bulk_transfer_sglist: xfer 512 bytes, 1 entries
[51095.245632] rts51x: Command READ_10 (10 bytes)
[51095.245635] rts51x: Read card, sector addr: 0xb3e, sector cnt: 63
[51095.245637] rts51x: rts51x_sd_rw, data_addr = 0x167c00
[51095.245754] rts51x: rts51x_bulk_transfer_sglist: xfer 32256 bytes, 9 entries
[51095.373736] rts51x: SD: stop transmission
[51095.373740] rts51x: SD/MMC CMD 12, arg = 0x00000000
[51095.373986] rts51x: rts51x_ctrl_transfer: rq=00 rqtype=40 value=02ff index=101 len=0
[51095.629954] rts51x: rts51x_ctrl_transfer: rq=00 rqtype=c0 value=56bd index=00 len=1
[51095.630078] rts51x: rts51x_ctrl_transfer: rq=00 rqtype=40 value=56fd index=2ff len=0
[51096.078330] rts51x: Idle state!
[51096.078334] rts51x: rts51x_ctrl_transfer: rq=00 rqtype=40 value=56fd index=303 len=0
[51112.925821] rts51x: Command READ_10 (10 bytes)
[51112.925827] rts51x: Read card, sector addr: 0xb7d, sector cnt: 1
[51112.925828] rts51x: rts51x_sd_rw, data_addr = 0x16fa00
[51112.925831] rts51x: SD/MMC CMD 18
[51112.925922] rts51x: rts51x_bulk_transfer_sglist: xfer 512 bytes, 1 entries
[51112.926438] rts51x: Command READ_10 (10 bytes)
[51112.926442] rts51x: Read card, sector addr: 0xb7e, sector cnt: 1
[51112.926444] rts51x: rts51x_sd_rw, data_addr = 0x16fc00
[51112.926546] rts51x: rts51x_bulk_transfer_sglist: xfer 512 bytes, 1 entries
[51112.926807] rts51x: Command READ_10 (10 bytes)
[51112.926809] rts51x: Read card, sector addr: 0xb7f, sector cnt: 62
[51112.926810] rts51x: rts51x_sd_rw, data_addr = 0x16fe00
[51112.926921] rts51x: rts51x_bulk_transfer_sglist: xfer 31744 bytes, 9 entries
[51113.116705] rts51x: SD: stop transmission
[51113.116709] rts51x: SD/MMC CMD 12, arg = 0x00000000
[51113.116967] rts51x: rts51x_ctrl_transfer: rq=00 rqtype=40 value=02ff index=101 len=0
[51113.501034] rts51x: rts51x_ctrl_transfer: rq=00 rqtype=c0 value=56bd index=00 len=1
[51113.501156] rts51x: rts51x_ctrl_transfer: rq=00 rqtype=40 value=56fd index=2ff len=0
[51113.885354] rts51x: Idle state!
[51113.885359] rts51x: rts51x_ctrl_transfer: rq=00 rqtype=40 value=56fd index=303 len=0
It gets difficult to make sense of dmesg, when this this crap keeps filling it. Any way to stop it?
 
Old 08-09-2014, 10:56 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Found this.

Apparently, it automatically selects 'rts5139 debugging'. I cannot imagine myself selecting it but it was checked. The module works, but is sad. The TODO states
Quote:
TODO:
- support more USB card reader of Realtek family
- use kernel coding style
- checkpatch.pl fixes
- stop having thousands of lines of code duplicated with staging/rts_pstor
- This driver contains an entire SD/MMC stack -- it should use the stack in
drivers/mmc instead, as a host driver e.g. drivers/mmc/host/realtek-usb.c;
see drivers/mmc/host/ushc.c as an example.
- This driver presents cards as SCSI devices, but they should be MMC devices.
TODO lines 1-9/9 (END)
One more kernel rebuild coming up . . .
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble with rsyslog config to filter dnsmasq-log-spam Yalla-One Linux - Server 2 01-04-2013 12:35 AM
LXer: How To Log Emails Sent With PHP's mail() Function To Detect Form Spam LXer Syndicated Linux News 0 08-07-2009 09:41 AM
spam filter that puts spam into spam folder? paul_mat Linux - Software 3 03-31-2009 04:18 AM
sendmail log - some kind of spam activiti hua Slackware 1 04-18-2008 09:53 AM
Compiling 2.4.23 : Module error spam Modify Linux - Newbie 0 12-15-2003 05:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 05:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration