From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail115-171.sinamail.sina.com.cn (mail115-171.sinamail.sina.com.cn [218.30.115.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4E191176ADB for ; Mon, 23 Dec 2024 11:01:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=218.30.115.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734951673; cv=none; b=aWHIT3K5nEaa6tHo/eU9BdvdRbxRX0TQR8WAP1Ss8p0naWbjH04RkR6w05WCRGNLrLDUeW4brejEbgfdy0SciYOBw9fUb/aHEJJbRuu3dh49XS4u4dCns+Uv/c2yiaLQl1OZHJYUp+3/MjMn5dAcmVLtHol8sizXE1k2YnvaFc0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734951673; c=relaxed/simple; bh=6RpOD068NwkvW5XoylpsrNJl6yexCOHwojuyKyNH5GI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hXywmLnAAxZlANlyuuFtmyWtxznDPxh+fi0X/Bl12sAXsR/SXoa3NyKpW5lGheWFsb1gfr5HAZ9eB94qxC6ERrr6Zbx5xsHA0M30DGUeOB62fbf/+MOZKbtYP0ToVvf0gPpdLGZ+wljAIBU0sqDlBj9pXYrp+jJVNe/ZPHDfTW4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sina.com; spf=pass smtp.mailfrom=sina.com; arc=none smtp.client-ip=218.30.115.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sina.com X-SMAIL-HELO: localhost.localdomain Received: from unknown (HELO localhost.localdomain)([113.118.65.169]) by sina.com (10.185.250.24) with ESMTP id 676942CC000012DD; Mon, 23 Dec 2024 19:00:30 +0800 (CST) X-Sender: hdanton@sina.com X-Auth-ID: hdanton@sina.com Authentication-Results: sina.com; spf=none smtp.mailfrom=hdanton@sina.com; dkim=none header.i=none; dmarc=none action=none header.from=hdanton@sina.com X-SMAIL-MID: 34066510748418 X-SMAIL-UIID: 63E10020A29A4FD792303C10ED5767CF-20241223-190030-1 From: Hillf Danton To: Harald Mommer Cc: virtio-dev@lists.oasis-open.org, Mark Brown , Viresh Kumar , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 3/3] virtio-spi: Add virtio SPI driver. Date: Mon, 23 Dec 2024 19:00:22 +0800 Message-ID: <20241223110026.371-1-hdanton@sina.com> In-Reply-To: <20240326112812.31739-4-Harald.Mommer@opensynergy.com> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Tue, 26 Mar 2024 12:28:12 +0100 Harald Mommer > + /* Prepare sending of virtio message */ > + reinit_completion(&spi_req->completion); > + Why is reinit needed, given init? > + ret = virtqueue_add_sgs(priv->vq, sgs, outcnt, incnt, spi_req, > + GFP_KERNEL); > + if (ret) > + goto msg_done; > + > + /* Simple implementation: There can be only one transfer in flight */ > + virtqueue_kick(priv->vq); > + > + wait_for_completion(&priv->spi_req.completion);