Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Dec 18, 2017

Description

Fix bug allowing SPI::abort_transfer to incorrectly unlock deep sleep mode

  • Add flag to SPI class to track if the SPI instance has locked deep sleep mode.
  • Wrap call to sleep_manager_lock_deep_sleep to only be called if SPI instance
    hasn't already locked deep sleep.
  • Wrap call to sleep_manager_unlock_deep_sleep to only be called if SPI has
    currently locked deep sleep mode.

Status

READY

Copy link
Contributor

@0xc0170 0xc0170 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume intention for lock/unclock deepsleep is protected by external means (SPI class is thread safe, thus deep sleep locking is already within already thread safe blocks in the implementation - _deep_sleep_locked is then protected). correct?

@adbridge
Copy link
Contributor

adbridge commented Jan 2, 2018

@c1728p9 @SenRamakri could you please review this?

@0xc0170
Copy link
Contributor

0xc0170 commented Jan 2, 2018

@scartmell-arm Can you please rebase to get travis fix please?

… mode

- Add flag to SPI class to track if the SPI instance has locked deep sleep mode.
- Wrap call to sleep_manager_lock_deep_sleep to only be called if SPI instance
  hasn't already locked deep sleep.
- Wrap call to sleep_manager_unlock_deep_sleep to only be called if SPI has
  currently locked deep sleep mode.
@ghost
Copy link
Author

ghost commented Jan 8, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented Jan 8, 2018

Build : SUCCESS

Build number : 820
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/5722/

Triggering tests

/morph test
/morph uvisor-test
/morph export-build

@mbed-ci
Copy link

mbed-ci commented Jan 8, 2018

@mbed-ci
Copy link

mbed-ci commented Jan 8, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants