/* * The 3s value for autosuspend will only be used if there are no * devices physically attached on a bus segment. In practice enabling * the bus operation will result in children devices become active and * the master device will only suspend when all its children are no * longer active.
*/ #define SDW_MASTER_SUSPEND_DELAY_MS 3000
/* * The sysfs for properties reflects the MIPI description as given * in the MIPI DisCo spec * * Base file is: * sdw-master-N * |---- revision * |---- clk_stop_modes * |---- max_clk_freq * |---- clk_freq * |---- clk_gears * |---- default_row * |---- default_col * |---- dynamic_shape * |---- err_threshold
*/
ret = device_register(&md->dev); if (ret) {
dev_err(parent, "Failed to add master: ret %d\n", ret); /* * On err, don't free but drop ref as this will be freed * when release method is invoked.
*/
put_device(&md->dev); goto device_register_err;
}
/** * sdw_master_device_del() - delete a Linux Master Device representation. * @bus: bus handle * * This function is the dual of sdw_master_device_add()
*/ int sdw_master_device_del(struct sdw_bus *bus)
{
pm_runtime_disable(&bus->md->dev);
device_unregister(bus->dev);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.