Re: [PATCH net-next v5 5/5] eth: fbnic: Add devlink dev flash support

From
Paolo Abeni <pabeni@redhat.com>
Date
2025-05-15 10:58:53
Also in
linux-doc, lkml
Reply to
Lee Trager, 2025-05-12
On 5/12/25 8:54 PM, Lee Trager wrote:
quoted hunk ↗ jump to hunk
+static int
+fbnic_flash_start(struct fbnic_dev *fbd, struct pldmfw_component *component)
+{
+	struct fbnic_fw_completion *cmpl;
+	int err;
+
+	cmpl = kzalloc(sizeof(*cmpl), GFP_KERNEL);
+	if (!cmpl)
+		return -ENOMEM;
+
+	fbnic_fw_init_cmpl(cmpl, FBNIC_TLV_MSG_ID_FW_START_UPGRADE_REQ);
Minor note for a possible follow-up: since completion allocation is
always followed by fbnic_fw_init_cmpl(), you could boundle the 2 in some
helper.

No need to repost for this.

/P
Thread (12 messages) 12 messages, 4 authors, last reply 2025-05-15
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help