[ltp] Re: tp_smapi 0.34 and hdaps

Shem Multinymous linux-thinkpad@linux-thinkpad.org
Fri, 11 Jan 2008 13:23:43 -0500


------=_Part_2178_17672121.1200075823528
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On Jan 9, 2008 1:57 PM, Evgeni Golov <sargentd@die-welt.net> wrote:
> > hdaps init failed at: hdaps_check_ec failed

The failed check is a piece of code (writing to some ports and
checking the result) that follows the reverse-engineered clean-room
spec for HDAPS. We don't know what those values mean, so maybe it's
not really an error to receive different values.

Evgeni, Yves-Alexis, can you apply the attached patch to tp_smapi,
recompile, reload, and report the dmesg output?

If you're brave, you can also to disable that check (comment out the
line "return -EIO;" in the function hdaps_check_ec) and see if that
helps. Make sure you back up your data first...

Thanks,
  Shem

------=_Part_2178_17672121.1200075823528
Content-Type: text/x-patch; name=hdaps_check_ec-debug.patch
Content-Transfer-Encoding: base64
X-Attachment-Id: f_fbb1upao0
Content-Disposition: attachment; filename=hdaps_check_ec-debug.patch

LS0tIGEvaGRhcHMuYworKysgYi9oZGFwcy5jCkBAIC0zNTIsOCArMzUyLDEzIEBAIHN0YXRpYyBp
bnQgaGRhcHNfY2hlY2tfZWModm9pZCkKIAlpZiAocmV0KQogCQlyZXR1cm4gIHJldDsKIAlpZiAo
ZGF0YS52YWxbMHgxXSE9MHgwMCB8fCBkYXRhLnZhbFsweDJdIT0weDYwIHx8Ci0JICAgIGRhdGEu
dmFsWzB4M10hPTB4MDAgfHwgZGF0YS52YWxbMHhGXSE9MHgwMCkKKwkgICAgZGF0YS52YWxbMHgz
XSE9MHgwMCB8fCBkYXRhLnZhbFsweEZdIT0weDAwKSB7CisJCXByaW50ayhLRVJOX1dBUk5JTkcK
KwkJICAgICAgICJiYWQgaGRhcHNfY2hlY2tfZWMgcmVwbHkgMHglMDJ4LDB4JTAyeCwweCUwMngs
MHglMDJ4IiwKKwkJICAgICAgIGRhdGEudmFsWzB4MV0sIGRhdGEudmFsWzB4Ml0sCisJCSAgICAg
ICBkYXRhLnZhbFsweDNdLCBkYXRhLnZhbFsweEZdKTsKIAkJcmV0dXJuIC1FSU87CisJfQogCXJl
dHVybiAwOwogfQogCg==
------=_Part_2178_17672121.1200075823528--