Bug 16577 - Smart Card / SD Misidentified as 'disk' type
Summary: Smart Card / SD Misidentified as 'disk' type
Status: RESOLVED FIXED
Alias: None
Product: hal
Classification: Unclassified
Component: hal-info (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: David Zeuthen (not reading bugmail)
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-01 08:51 UTC by Anthony Awtrey
Modified: 2008-08-11 09:49 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
patch as proposed (1.06 KB, patch)
2008-07-01 15:45 UTC, Danny Kukawka
Details | Splinter Review

Description Anthony Awtrey 2008-07-01 08:51:46 UTC
A common Sony brand card reader has connectors being identified as a 'disk' type rather than the proper 'sd_mmc' or 'smart_media' types.

ID 054c:01bd Sony Corp. Silicon Media R/W

Hal reports the following storage.model strings for the device:

  storage.model = 'USB   HS-SD Card'  (string)
  storage.model = 'USB   HS-MS Card'  (string)
  storage.model = 'USB   HS-xD/SM'  (string)
  storage.model = 'USB   HS-CF Card'  (string)

Modifying the 10-usb-card-readers.fdi file under the "Generic catch all" section as follows will correctly identify the readers.

Add this match rule:

<match key="storage.model" contains="HS-xD">
  <merge key="storage.drive_type" type="string">smart_media</merge>
</match>

Modify the rule matching 'HS-SD/MMC' to simply match 'HS-SD' instead.

I don't know if this will cause other problems, but it worked for me.

Tony
Comment 1 Danny Kukawka 2008-07-01 15:45:31 UTC
Created attachment 17475 [details] [review]
patch as proposed

Patch as proposed.
Comment 2 Danny Kukawka 2008-08-11 09:49:30 UTC
commited to git


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.