Skip to content

Commit

Permalink
Merge pull request #33 from konradybcio/topic/segfault
Browse files Browse the repository at this point in the history
treewide: Add missing measure_gcc to prevent segfaults
  • Loading branch information
konradybcio authored Feb 15, 2024
2 parents dd6e308 + 5078c42 commit c04bc12
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions qcm2290.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ static struct gcc_mux gcc = {
.phys = 0x1400000,
.size = 0x1f0000,

.measure = measure_gcc,

.enable_reg = 0x30004,
.enable_mask = BIT(0),

Expand Down
2 changes: 2 additions & 0 deletions sc7180.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ static struct gcc_mux gcc = {
.phys = 0x100000,
.size = 0x1f0000,

.measure = measure_gcc,

.enable_reg = 0x62004,
.enable_mask = BIT(0),

Expand Down
2 changes: 2 additions & 0 deletions sm6125.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ static struct gcc_mux gcc = {
.phys = 0x1400000,
.size = 0x1f0000,

.measure = measure_gcc,

.enable_reg = 0x30004,
.enable_mask = BIT(0),

Expand Down
2 changes: 2 additions & 0 deletions sm6375.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ static struct gcc_mux gcc = {
.phys = 0x1400000,
.size = 0x1f0000,

.measure = measure_gcc,

.enable_reg = 0x30004,
.enable_mask = BIT(0),

Expand Down
2 changes: 2 additions & 0 deletions sm8350.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ static struct gcc_mux gcc = {
.phys = 0x162000,
.size = 0x1f0000,

.measure = measure_gcc,

.enable_reg = 0x8,
.enable_mask = BIT(0),

Expand Down

0 comments on commit c04bc12

Please sign in to comment.