/* pm8001_chip_phy_stop_req - start phy via PHY_STOP COMMAND @pm8001_ha: our hba card information. @num: the inbound queue number @phy_id: the phy id which we wanted to start up.  */
static int pm8001_chip_phy_stop_req(struct pm8001_hba_info *pm8001_ha, u8 phy_id)
/* pm8001_chip_phy_stop_req - start phy via PHY_STOP COMMAND @pm8001_ha: our hba card information. @num: the inbound queue number @phy_id: the phy id which we wanted to start up.  */
static int pm8001_chip_phy_stop_req(struct pm8001_hba_info *pm8001_ha, u8 phy_id)
{
	struct phy_stop_req payload;
	struct inbound_queue_table *circularQ;
	int ret;
	u32 tag = 0x01;
	u32 opcode = OPC_INB_PHYSTOP;
	circularQ = &pm8001_ha->inbnd_q_tbl[0];
	memset(&payload, 0, sizeof(payload));
	payload.tag = cpu_to_le32(tag);
	payload.phy_id = cpu_to_le32(phy_id);
	ret = mpi_build_cmd(pm8001_ha, circularQ, opcode, &payload);
	return ret;
}