Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1422254
| From | Linus Walleij <linus.walleij@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] mfd: qcom_rpm: fix offset error for msm8660 |
| Date | 2016-06-14 21:40 +0200 |
| Message-ID | <rK2lQ-Kt-19@gated-at.bofh.it> (permalink) |
| References | <rJT8S-32Y-3@gated-at.bofh.it> <rK1J7-fP-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, Jun 14, 2016 at 8:51 PM, Stephen Boyd <sboyd@codeaurora.org> wrote: > On 06/14, Linus Walleij wrote: >> -#define RPM_REQUEST_CONTEXT 3 >> -#define RPM_REQ_SELECT 11 >> -#define RPM_ACK_CONTEXT 15 >> -#define RPM_ACK_SELECTOR 23 >> #define RPM_SELECT_SIZE 7 > > The RPM_SELECT_SIZE is 7 on 8660, but now you've pointed out that > otherwise the size is 4. I think you've uncovered another bug. OMG you're right. I'll send a v2 fixing that too. >> - RPM_CTRL_REG(rpm, RPM_REQ_SELECT + i)); >> + RPM_CTRL_REG(rpm, rpm->data->req_sel_off + i)); > > Here we write from 0 to ARRAY_SIZE(sel_mask) which is 7. That > would mean we write into the ack context that starts at 15 (we > start writing at req_sel_off which is always 11). Oops. Argh well it seems it didn't hurt so far but let's have it fixed. Yours, Linus Walleij
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] mfd: qcom_rpm: fix offset error for msm8660 Linus Walleij <linus.walleij@linaro.org> - 2016-06-14 11:50 +0200
Re: [PATCH] mfd: qcom_rpm: fix offset error for msm8660 Stephen Boyd <sboyd@codeaurora.org> - 2016-06-14 21:00 +0200
Re: [PATCH] mfd: qcom_rpm: fix offset error for msm8660 Linus Walleij <linus.walleij@linaro.org> - 2016-06-14 21:40 +0200
Re: [PATCH] mfd: qcom_rpm: fix offset error for msm8660 Bjorn Andersson <bjorn.andersson@linaro.org> - 2016-06-14 21:40 +0200
csiph-web