Re: [PATCH v4 2/3] bus: mhi: host: Add name for mhi_controller

From
Jeffrey Hugo <hidden>
Date
2024-07-01 15:14:04
Also in
linux-arm-msm, lkml
Reply to
Slark Xiao, 2024-07-01
On 6/30/2024 8:12 PM, Slark Xiao wrote:
quoted hunk ↗ jump to hunk
For SDX72 MBIM mode, it starts data mux id from 112 instead of 0.
This would lead to device can't ping outside successfully.
Also MBIM side would report "bad packet session (112)".In order to
fix this issue, we decide to use the device name of MHI controller
to do a match in client driver side. Then client driver could set
a corresponding mux_id value for this MHI product.

Signed-off-by: Slark Xiao <redacted>
+++ b/include/linux/mhi.h
@@ -289,6 +289,7 @@ struct mhi_controller_config {
  };
  
  /**
+ * @name: device name of the MHI controller
This needs to be below the next line
quoted hunk ↗ jump to hunk
   * struct mhi_controller - Master MHI controller structure
   * @cntrl_dev: Pointer to the struct device of physical bus acting as the MHI
   *            controller (required)
@@ -367,6 +368,7 @@ struct mhi_controller_config {
   * they can be populated depending on the usecase.
   */
  struct mhi_controller {
+	const char *name;
  	struct device *cntrl_dev;
  	struct mhi_device *mhi_dev;
  	struct dentry *debugfs_dentry;
  
Thread (13 messages) 13 messages, 4 authors, last reply 2024-07-03
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help