mei: hbm: use client specific print functions
We have host client in connect/disconnect response processors, so use client print functions to simplify and unify code. Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Родитель
4ade435214
Коммит
d512c2098b
|
@ -562,17 +562,17 @@ int mei_hbm_cl_disconnect_rsp(struct mei_device *dev, struct mei_cl *cl)
|
||||||
* mei_hbm_cl_disconnect_res - update the client state according
|
* mei_hbm_cl_disconnect_res - update the client state according
|
||||||
* disconnect response
|
* disconnect response
|
||||||
*
|
*
|
||||||
|
* @dev: the device structure
|
||||||
* @cl: mei host client
|
* @cl: mei host client
|
||||||
* @cmd: disconnect client response host bus message
|
* @cmd: disconnect client response host bus message
|
||||||
*/
|
*/
|
||||||
static void mei_hbm_cl_disconnect_res(struct mei_cl *cl,
|
static void mei_hbm_cl_disconnect_res(struct mei_device *dev, struct mei_cl *cl,
|
||||||
struct mei_hbm_cl_cmd *cmd)
|
struct mei_hbm_cl_cmd *cmd)
|
||||||
{
|
{
|
||||||
struct hbm_client_connect_response *rs =
|
struct hbm_client_connect_response *rs =
|
||||||
(struct hbm_client_connect_response *)cmd;
|
(struct hbm_client_connect_response *)cmd;
|
||||||
|
|
||||||
dev_dbg(cl->dev->dev, "hbm: disconnect response cl:host=%02d me=%02d status=%d\n",
|
cl_dbg(dev, cl, "hbm: disconnect response status=%d\n", rs->status);
|
||||||
rs->me_addr, rs->host_addr, rs->status);
|
|
||||||
|
|
||||||
if (rs->status == MEI_CL_DISCONN_SUCCESS)
|
if (rs->status == MEI_CL_DISCONN_SUCCESS)
|
||||||
cl->state = MEI_FILE_DISCONNECTED;
|
cl->state = MEI_FILE_DISCONNECTED;
|
||||||
|
@ -598,17 +598,17 @@ int mei_hbm_cl_connect_req(struct mei_device *dev, struct mei_cl *cl)
|
||||||
* mei_hbm_cl_connect_res - update the client state according
|
* mei_hbm_cl_connect_res - update the client state according
|
||||||
* connection response
|
* connection response
|
||||||
*
|
*
|
||||||
|
* @dev: the device structure
|
||||||
* @cl: mei host client
|
* @cl: mei host client
|
||||||
* @cmd: connect client response host bus message
|
* @cmd: connect client response host bus message
|
||||||
*/
|
*/
|
||||||
static void mei_hbm_cl_connect_res(struct mei_cl *cl,
|
static void mei_hbm_cl_connect_res(struct mei_device *dev, struct mei_cl *cl,
|
||||||
struct mei_hbm_cl_cmd *cmd)
|
struct mei_hbm_cl_cmd *cmd)
|
||||||
{
|
{
|
||||||
struct hbm_client_connect_response *rs =
|
struct hbm_client_connect_response *rs =
|
||||||
(struct hbm_client_connect_response *)cmd;
|
(struct hbm_client_connect_response *)cmd;
|
||||||
|
|
||||||
dev_dbg(cl->dev->dev, "hbm: connect response cl:host=%02d me=%02d status=%s\n",
|
cl_dbg(dev, cl, "hbm: connect response status=%s\n",
|
||||||
rs->me_addr, rs->host_addr,
|
|
||||||
mei_cl_conn_status_str(rs->status));
|
mei_cl_conn_status_str(rs->status));
|
||||||
|
|
||||||
if (rs->status == MEI_CL_CONN_SUCCESS)
|
if (rs->status == MEI_CL_CONN_SUCCESS)
|
||||||
|
@ -652,10 +652,10 @@ static void mei_hbm_cl_res(struct mei_device *dev,
|
||||||
|
|
||||||
switch (fop_type) {
|
switch (fop_type) {
|
||||||
case MEI_FOP_CONNECT:
|
case MEI_FOP_CONNECT:
|
||||||
mei_hbm_cl_connect_res(cl, rs);
|
mei_hbm_cl_connect_res(dev, cl, rs);
|
||||||
break;
|
break;
|
||||||
case MEI_FOP_DISCONNECT:
|
case MEI_FOP_DISCONNECT:
|
||||||
mei_hbm_cl_disconnect_res(cl, rs);
|
mei_hbm_cl_disconnect_res(dev, cl, rs);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return;
|
return;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче