PG,
Coincidentally I have been looking at this API the last few days. HPI-B.02
spec page 59, 2nd sentence in Return Value section does not make sense to
me.
Anyway, this has been our thought ...
(a) Resources that support "Simplified Hotswap Model" only has two states,
NOT PRESENT and ACTIVE. These resources do not have PRESENT/FAILED state.
(b) Since the SaHpiResourceFailedRemove() API is for resources that are
FRUs and has ResourceFailed flag set. We have intepreted it to mean that
this API is only for "Managed Hotswap" resources.
Would you elaborate to why this API also should work for Simplified Hotswap
resources?
Peter,
Regards,
--------------------------------------------------------------------------------------------
P. D. Phan
IBM Austin
--------------------------------------------------------------------------------------------
Raghavendra PG
<[EMAIL PROTECTED]
p.com> To
"[EMAIL PROTECTED]
10/23/2008 01:46 t"
AM <[EMAIL PROTECTED]
t>
cc
Please respond to
[EMAIL PROTECTED] Subject
ts.sourceforge.ne [Openhpi-devel]
t saHpiResourceFailedRemove() fails
if only FRU cap is set
Hello,
SaHpiResourceFailedRemove() API removes the failed resource entry (rpt,
rdr) on user request.
This API (src/safhpi.c +596) checks the FRU capability and tries to get
the hotswap state. If the resource supports simplified hotswap model,
then FRU capability will be set and MANAGED_HOTSWAP capability will not
be set. So, the get_hotswap() abi will fail for these resources.
Hence, saHpiResourceFailedRemove() fails for resources which supports
simplified hotswap model.
The attached patch resolves this issue.
This problem is tracked in openhpi tracker as bug #2188639.
Regards,
PG
[attachment "resource_failed.patch" deleted by Peter D Phan/Austin/IBM]
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Openhpi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openhpi-devel
<<inline: graycol.gif>>
<<inline: pic21985.gif>>
<<inline: ecblank.gif>>
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________ Openhpi-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openhpi-devel
