mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-12 21:44:06 +08:00
672825cd28
Because not all I3C drivers have the hot-join feature ready, and especially not all I3C devices support hot-join feature, exporting SETDASA method could be useful. With this function, the I3C controller could perform a DAA to I3C devices when users decide to turn these I3C devices off and on again during run-time. Tested: This change has been tested with turnning off an I3C device and turning on it again during run-time. The device driver calls SETDASA method to perform DAA to the device. And communication between I3C controller and device is set up again correctly. Signed-off-by: Jack Chen <zenghuchen@google.com> Link: https://lore.kernel.org/r/20221207205059.3848851-1-zenghuchen@google.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
28 lines
843 B
C
28 lines
843 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (C) 2018 Cadence Design Systems Inc.
|
|
*
|
|
* Author: Boris Brezillon <boris.brezillon@bootlin.com>
|
|
*/
|
|
|
|
#ifndef I3C_INTERNALS_H
|
|
#define I3C_INTERNALS_H
|
|
|
|
#include <linux/i3c/master.h>
|
|
|
|
extern struct bus_type i3c_bus_type;
|
|
|
|
void i3c_bus_normaluse_lock(struct i3c_bus *bus);
|
|
void i3c_bus_normaluse_unlock(struct i3c_bus *bus);
|
|
|
|
int i3c_dev_setdasa_locked(struct i3c_dev_desc *dev);
|
|
int i3c_dev_do_priv_xfers_locked(struct i3c_dev_desc *dev,
|
|
struct i3c_priv_xfer *xfers,
|
|
int nxfers);
|
|
int i3c_dev_disable_ibi_locked(struct i3c_dev_desc *dev);
|
|
int i3c_dev_enable_ibi_locked(struct i3c_dev_desc *dev);
|
|
int i3c_dev_request_ibi_locked(struct i3c_dev_desc *dev,
|
|
const struct i3c_ibi_setup *req);
|
|
void i3c_dev_free_ibi_locked(struct i3c_dev_desc *dev);
|
|
#endif /* I3C_INTERNAL_H */
|