Skip to content

Commit ddfa683

Browse files
authored
Merge branch 'master' into james/i2c-cleanup
2 parents d9d8512 + b931e44 commit ddfa683

4 files changed

Lines changed: 25 additions & 20 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,16 @@ jobs:
6363
if [[ "${override_version}" != "" ]]; then
6464
flags+=("--override-version=${override_version}")
6565
fi
66-
brussels init "$group" HEAD "${flags[@]}" >brussels-manifest.json
66+
brussels init "$group" "$ref" "${flags[@]}" >brussels-manifest.json
6767
env:
6868
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6969
group: ${{ github.event.inputs.group }}
70+
# We choose to release the commit in which the workflow is defined.
71+
# Most of the times this will be the "main" branch. If the developer
72+
# chooses a different branch to run the workflow on though (in the
73+
# GitHub "Run Workflow" UI), this will correctly release the branch
74+
# they requested (as that will be the executed workflow).
75+
ref: ${{ github.workflow_sha }}
7076
override_version: ${{ github.event.inputs.override-version }}
7177

7278
- name: Upload the release manifest

app/gimlet/base.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ device = "isl68224"
991991
description = "DIMM/SP3 1.8V A0 power controller"
992992
power.rails = [ "VPP_ABCD", "VPP_EFGH", "V1P8_SP3" ]
993993
power.phases = [ [ 0 ], [ 1 ], [ 2 ] ]
994-
sensors = { voltage = 3, current = 3 }
994+
sensors = { temperature = 3, voltage = 3, current = 3 }
995995
refdes = "U352"
996996

997997
[[config.i2c.devices]]

task/idle/src/main.rs

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,20 @@ extern crate userlib;
1111

1212
#[unsafe(export_name = "main")]
1313
fn main() -> ! {
14+
#[allow(clippy::empty_loop)]
1415
loop {
15-
if cfg!(feature = "insomniac") {
16-
// In insomniac-mode, we just spinloop to absorb idle cycles. This
17-
// is useful on certain processors where entering a low-power state
18-
// interrupts debugging.
19-
//
20-
// Note that this is an explicit nop rather than an empty block
21-
// because an empty `loop {}` is technically UB and will be replaced
22-
// by a trap, bringing the system to a halt with no tasks runnable.
23-
// So, do not get clever and remove this.
24-
cortex_m::asm::nop();
25-
} else {
26-
// Wait For Interrupt to pause the processor until an ISR arrives,
27-
// which could wake some higher-priority task.
28-
cortex_m::asm::wfi();
29-
}
16+
// In insomniac-mode, we just spinloop to absorb idle cycles. This
17+
// is useful on certain processors where entering a low-power state
18+
// interrupts debugging.
19+
//
20+
// An empty loop *used* to cause UB, due to a bug in LLVM (see
21+
// https://github.com/rust-lang/rust/issues/28728), but was later fixed
22+
// by the upgrade to LLVM12, which resolved this in Rust 1.52.0 (see
23+
// https://github.com/rust-lang/rust/pull/81451).
24+
//
25+
// Wait For Interrupt to pause the processor until an ISR arrives,
26+
// which could wake some higher-priority task.
27+
#[cfg(not(feature = "insomniac"))]
28+
cortex_m::asm::wfi();
3029
}
3130
}

task/power/src/bsp/gimlet_bcdef.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ pub(crate) static CONTROLLER_CONFIG: [PowerControllerConfig;
2121
rail_controller!(Core, raa229618, vddcr_soc, A0),
2222
rail_controller!(Mem, raa229618, vdd_mem_abcd, A0),
2323
rail_controller!(Mem, raa229618, vdd_mem_efgh, A0),
24-
rail_controller_notemp!(MemVpp, isl68224, vpp_abcd, A0),
25-
rail_controller_notemp!(MemVpp, isl68224, vpp_efgh, A0),
26-
rail_controller_notemp!(MemVpp, isl68224, v1p8_sp3, A0),
24+
rail_controller!(MemVpp, isl68224, vpp_abcd, A0),
25+
rail_controller!(MemVpp, isl68224, vpp_efgh, A0),
26+
rail_controller!(MemVpp, isl68224, v1p8_sp3, A0),
2727
rail_controller!(Sys, tps546B24A, v3p3_sp_a2, A2),
2828
rail_controller!(Sys, tps546B24A, v3p3_sys_a0, A0),
2929
rail_controller!(Sys, tps546B24A, v5_sys_a2, A2),

0 commit comments

Comments
 (0)