drm_of_get_dsi_bus(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_of_get_dsi_bus(9)

okay so bestie, welcome to the Kernel API Manual ✨ β€” yes we're really out here reading kernel docs and honestly? iconic behavior. this one's about drm_of_get_dsi_bus, and it's lowkey a little matchmaker that finds the DSI bus for a device πŸŽ€


🌸 NAME

drm_of_get_dsi_bus β€” find the DSI bus for a given device πŸ¦‹


✨ SYNOPSIS

struct mipi_dsi_host * drm_of_get_dsi_bus (struct device *dev );

like, it takes a dev and gives you back a struct mipi_dsi_host *. periodt πŸ’…


🫢 ARGUMENTS

  • dev β€” the parent device of the display (SPI, I2C) πŸ’–

that's it, that's the whole argument list, she's simple and she knows it.


πŸ‘‘ DESCRIPTION

so the whole vibe here: this function gets the parent DSI bus for a DSI device that's being controlled through some other bus β€” not MIPI-DCS, we're talking SPI, I2C, etc. β€” and it does it using the Device Tree 🌈.

also, important, no cap: this function assumes that the device's port0 is the DSI input. so like, that's the deal, that's the arrangement, don't come for her about it πŸ™ˆ

return value tea β˜•:

  • returns a pointer to mipi_dsi_host if it's successful ✨
  • -EINVAL if the request is unsupported πŸ’€
  • -EPROBE_DEFER if the DSI host is found but not available (she's there, she's just not ready yet, give her a sec) 😭
  • -ENODEV otherwise 🌸

🧚 SEE ALSO

the whole friend group, fr fr:


ngl, -EPROBE_DEFER is giving "seen at 2am, replied at 3pm" energy and honestly we respect it 🫢

okay that's the whole page bestie, you ate that πŸ’…βœ¨ this one lives at ./drivers/gpu/drm, dated October 2026, and it's filed under drm_of_get_dsi_bus(9) β€” go forth and slay your Device Tree queries πŸ”₯πŸ‘‘

πŸ“¦ where this page comes from