[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1429abd2-d9c8-46b9-8886-ee81feaf5602@163.com>
Date: Wed, 9 Jul 2025 23:50:51 +0800
From: Hans Zhang <18255117159@....com>
To: Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>,
Krishna Chaitanya Chundru <krishna.chundru@....qualcomm.com>
Cc: Manivannan Sadhasivam <mani@...nel.org>,
Bjorn Helgaas <bhelgaas@...gle.com>, Jingoo Han <jingoohan1@...il.com>,
Lorenzo Pieralisi <lpieralisi@...nel.org>, Rob Herring <robh@...nel.org>,
Jeff Johnson <jjohnson@...nel.org>, Bartosz Golaszewski <brgl@...ev.pl>,
Krzysztof Wilczyński <kwilczynski@...nel.org>,
linux-pci@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>,
linux-arm-msm@...r.kernel.org, mhi@...ts.linux.dev,
linux-wireless@...r.kernel.org, ath11k@...ts.infradead.org,
qiang.yu@....qualcomm.com, quic_vbadigan@...cinc.com,
quic_vpernami@...cinc.com, quic_mrana@...cinc.com,
Jeff Johnson <jeff.johnson@....qualcomm.com>
Subject: Re: [PATCH v4 03/11] bus: mhi: host: Add support to read MHI
capabilities
On 2025/7/9 20:20, Ilpo Järvinen wrote:
>>>> + do {
>>>> + if (*offset >= mhi_cntrl->reg_len)
>>>> + return -ENXIO;
>>>> +
>>>> + ret = mhi_read_reg(mhi_cntrl, mhi_cntrl->regs, *offset, &val);
>>>> + if (ret)
>>>> + return ret;
>>>> +
>>>> + val = (__force u32)le32_to_cpu(val);
>>>> + cur_cap = FIELD_GET(CAP_CAPID_MASK, val);
>>>> + next_offset = FIELD_GET(CAP_NEXT_CAP_MASK, val);
>>>> + if (cur_cap >= MHI_CAP_ID_MAX)
>>>> + return -ENXIO;
>>>> +
>>>> + if (cur_cap == capability)
>>>> + return 0;
>>>> +
>>>> + *offset = next_offset;
>>>> + } while (next_offset);
>>>> +
>>>> + return -ENXIO;
>>>> +}
>
> There's a generalization of capability search in Hans Zhang's series,
> can it be used here too?
Dear Ilpo,
Could you help add your review tag to my series of patches? Mani has
added the Acked-by tag. If you add the review tag, I believe Bjorn will
merge it in. At the same time, others can use the patches of my series.
Thank you very much for your previous suggestions and time.
Best regards,
Hans
Powered by blists - more mailing lists