libnvme: fix ep timeout during admin_passthru

Before the fix, the timeout will only increase and will change the
default settings. After the fix, the timeout can be decrease and
also it won't change the default setttings.

Tested:
std::cerr << "Default timeout before passthru: " << nvme_mi_ep_get_timeout(self->nvmeEP) << std::endl;
int nvme_status = nvme_mi_admin_admin_passthru();
std::cerr << "Default timeout after passthru: " << nvme_mi_ep_get_timeout(self->nvmeEP) << std::endl;

Before the fix:
Default timeout before passthru: 5000
Default timeout after passthru: 10000

After the fix:
Default timeout before passthru: 5000
Default timeout after passthru: 5000

Change-Id: I63a8fc1ac15fd5348fc6b0af5a40fc68f6c0a08f
Signed-off-by: Jinliang Wang <jinliangw@google.com>
3 files changed
tree: b664047967b8170d7286aacad6c8507723026883
  1. conf/
  2. dynamic-layers/
  3. meta-nuvoton-npcm8xx/
  4. recipes-bsp/
  5. recipes-connectivity/
  6. recipes-core/
  7. recipes-devtools/
  8. recipes-extended/
  9. recipes-google/
  10. recipes-kernel/
  11. recipes-phosphor/
  12. LICENSE
  13. README.md
README.md

meta-gbmc-staging

This repository contains additions to the openbmc/meta-google layer that are not yet ready for OpenBMC inclusion.

How to use this layer

  1. Clone openbmc/openbmc from GitHub.
  2. Clone this layer from GitHub into a subdirectory of openbmc.