Message ID | 20201116091445.797119-7-sbabic@denx.de |
---|---|
State | Accepted |
Headers | show
Return-Path: <swupdate+bncBCXPLOXJ6IKRBG4GZH6QKGQEYSDBLHY@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::13e; helo=mail-lf1-x13e.google.com; envelope-from=swupdate+bncbcxploxj6ikrbg4gzh6qkgqeysdblhy@googlegroups.com; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20161025 header.b=qB4oFD4F; dkim-atps=neutral Received: from mail-lf1-x13e.google.com (mail-lf1-x13e.google.com [IPv6:2a00:1450:4864:20::13e]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CZNhJ0tNwz9sPB for <incoming@patchwork.ozlabs.org>; Mon, 16 Nov 2020 20:15:11 +1100 (AEDT) Received: by mail-lf1-x13e.google.com with SMTP id 205sf5344982lfb.17 for <incoming@patchwork.ozlabs.org>; Mon, 16 Nov 2020 01:15:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1605518108; cv=pass; d=google.com; s=arc-20160816; b=FV7KaFSwwSimv0MYJl+3QiEe/qfT9H/c0fRAW3t74DSJIk0URZ6PhD2lgU5ZQk0fuU a4twyaC+x0dpq58tt7keis3zeW4Ewy0Tf5MFoShMFjSID9U3h80PyG510FjZWXxR9ruc hCJUub7fObobBU/77vD7v0cVF7i90nF+G7P7Jitq3UaQo2ASMScN1AlEq35HG40YUMz2 T2k66sD0CmC1mawnK66OWy/Yc2t239ZV/8O0zkh3LC4Dd7YhiJleGvSlUcdDUIKRf/bM HuRdpVJExojxBI2fZgAuSs+Q4VqwKPdwwIRb27KBYYlnKJK0rUkYHXVjpfgr06ny6Wbz v21w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=Yoimq1CpjZDE5aYwrCod/lQYOKPhP8QDv0j7EFyJ04w=; b=XWiUngrxoDCrFp2BwHdTOuJ6Qcmyvwk/YopYHfD9YkyGRtMNTMxt1WOV0hzn73kZxs 9QNLDt0DFSO5bONSLuYc4ZFqY2LQaoCgaoa2iXX6s7lbpbSqFDJvUDctszutFVMtTzTa plL91RKQjuSXB2+Ak/Shxl78i9C+hGsVe5aaEhjBjsTtEoGfL1Pqs7iAnRFQE4XwSU8L o8OCFkPzPlVf5PY+OFxysDhZkaoIVpOVlCfz/GJ3mxwangR0S+rBSq43XyGuSnUxDbLr 4czdK/lye7BkClN17i42zo+4Z6CR6kZdHRqp0nqy+kj4ZCE5Ql4Kp45biDJ4+Lg910MM 0NtQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=Yoimq1CpjZDE5aYwrCod/lQYOKPhP8QDv0j7EFyJ04w=; b=qB4oFD4FnVZzokofDJ/36vUP3zJ6Cayqh+6XjIJqAxdDKEHTlWP1ZWSzSqkqAr0N6S DdLt878qGh9L0eHnjqNSY67OgTpO5HJPZJXlbcMqNtUa0OePEIIeHqoJ0lGDuKfkTEHa REuqCZuC804gP/9m2Ct09sDfpcVocZ4p60yr84cI2ewHYJYXFMGxdRdJws/qZqv8uPhJ 3Xa0DAPLT8c10ZVhRxlURfd7oFlnAhOFMphlF0AOw8n/wGEy7xxonumvCjS8Ki3JK8FX /l7Hj0bZwO05zBnjeUUQZgpk1enqEaYjKRgjRjBM3z2Dv1Uyxov45MEIdJy/0jDkv7Ig anAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=Yoimq1CpjZDE5aYwrCod/lQYOKPhP8QDv0j7EFyJ04w=; b=pmCn4Y3WUm4kYhrIHdYi0Maa/hWSsj8xDWjwX2Z4CGGPHHwwcSaFH2+hYw3eC3JEYQ E7XPX03Ft7iPK0z+NBl43KL/BQ9+dgzRaiwuBIl4TeJPhawj7q97Q1cDWFnNm+ZLxbkc Dd8ysW7zpqE+MajYLq5A6fyBzWsFI2LdQdh0XYn+9+d7BJhGp/fEs36E9nCFgnvTNBBm 11Gh3r+8OBeKm2rsFqJgPP6jbLWhy8ynkYazCIZyL8LisZMLyCEdvH6jFHHlHaIxa68o Y1rnvlEpPQoUHrYgVB4x+MYDLPzGn2n9sgwQRmdCXaQf7XpA65qaWi5KsxmhSKXut2am xK8A== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOAM5311ZucT/YzHMss01nlvf0BpjXAeDzTBbNX4iBbyBfau8GDBa27L xlnifzWUGiGjY8GATm7k7Fk= X-Google-Smtp-Source: ABdhPJwStCphqad2sHBSXng6gVLg3haPjnEeOEISTigqLDO+RUC5rFXgqqVUYe/Iirzn+rBGM3cOyQ== X-Received: by 2002:a19:f702:: with SMTP id z2mr4870346lfe.257.1605518108450; Mon, 16 Nov 2020 01:15:08 -0800 (PST) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a2e:7619:: with SMTP id r25ls2240755ljc.11.gmail; Mon, 16 Nov 2020 01:15:07 -0800 (PST) X-Received: by 2002:a2e:b614:: with SMTP id r20mr4785754ljn.89.1605518107157; Mon, 16 Nov 2020 01:15:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605518107; cv=none; d=google.com; s=arc-20160816; b=0Zsmq6qzu/cpM98Ej+AAe0Krhr6WPBkeladQgyMXSaWEH5/ALSinmeqrHZjrahs0YE uij0znTKBlHGEMgYTj6I57d4oYdhNvO80QPunBtIHxW4MMxcguOKo57teeKiv3dnWtYU qs5dZH51ALLPJSAfgztZ26fa/8BYQXK3vjVA1jKQOT4947Lcv6hbCkR8LKHYgK7GkIHQ jdjDnX9CmaBb0Z95MLcuky6HX8au/WQjWkCuVgq5KEYDLE2kzgAkHIJdmxreQxc33tdd ki5mOJgzvPbmGxr3qoPxu/Txo5vRgAHJ3bQ6ANEJhwMGBcKPmBTEO3sPfzMEMvqika3w 5efQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=XYJvVo3ty/MNRHJIfnnGaGtxeTdyVW4zLGsuWda4qyw=; b=nVCCH+8gzEIgg0JIO0u0p6aZrTx4CsM7WU2WUwWIZ/LrMHN9KW6VaCl4zhYnazPnzV vYkAE1ZrMmJOfbmPAkZ3/5WSqZUYsl6ihAeeX6uc4Ofxr5vZNl0jnvReCt2pnQR/JQgk LEfgJJwFfljbw3uZNvSNmC4djCUgmcmXvobXP/9kFGyTyRDBSFCuY+X/EBWGhRxrd8yc CTjVbtRE+I7izhxVTjHABH93qU9PGVVf+/Qw9Ux+uyR175EZIRqUAYRklNU7NjETPWwl 0xXcPxdw/Pb6W2S3GmrwvKQT0k0wMHRndFe+J5Tqwu/5QBWhtklUTknwY0N3cAoT9qoX L7gw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Received: from mail-out.m-online.net (mail-out.m-online.net. [212.18.0.9]) by gmr-mx.google.com with ESMTPS id x8si119776lfc.10.2020.11.16.01.15.07 for <swupdate@googlegroups.com> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Nov 2020 01:15:07 -0800 (PST) Received-SPF: neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) client-ip=212.18.0.9; Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4CZNhB4zxFz1qsbG; Mon, 16 Nov 2020 10:15:06 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4CZNhB4n4cz1qsp2; Mon, 16 Nov 2020 10:15:06 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id T2NldiLvMe_4; Mon, 16 Nov 2020 10:15:06 +0100 (CET) Received: from babic.homelinux.org (host-88-217-136-221.customer.m-online.net [88.217.136.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS; Mon, 16 Nov 2020 10:15:06 +0100 (CET) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id E7BE54540859; Mon, 16 Nov 2020 10:15:04 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at babic.homelinux.org Received: from babic.homelinux.org ([127.0.0.1]) by localhost (mail.babic.homelinux.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9agArLzq9Svo; Mon, 16 Nov 2020 10:15:01 +0100 (CET) Received: from paperino.fritz.box (paperino.fritz.box [192.168.178.64]) by babic.homelinux.org (Postfix) with ESMTP id C43DB4540A7E; Mon, 16 Nov 2020 10:14:50 +0100 (CET) From: Stefano Babic <sbabic@denx.de> To: swupdate@googlegroups.com Cc: Stefano Babic <sbabic@denx.de> Subject: [swupdate] [PATCH V3 06/10] Drop REQ_INSTALL_DRYRUN Date: Mon, 16 Nov 2020 10:14:41 +0100 Message-Id: <20201116091445.797119-7-sbabic@denx.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201116091445.797119-1-sbabic@denx.de> References: <20201116091445.797119-1-sbabic@denx.de> MIME-Version: 1.0 X-Original-Sender: sbabic@denx.de X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: <swupdate.googlegroups.com> X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: <https://groups.google.com/group/swupdate/post>, <mailto:swupdate@googlegroups.com> List-Help: <https://groups.google.com/support/>, <mailto:swupdate+help@googlegroups.com> List-Archive: <https://groups.google.com/group/swupdate List-Subscribe: <https://groups.google.com/group/swupdate/subscribe>, <mailto:swupdate+subscribe@googlegroups.com> List-Unsubscribe: <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>, <https://groups.google.com/group/swupdate/subscribe> |
Series |
Rework and extend IPC for install
|
expand
|
diff --git a/core/network_thread.c b/core/network_thread.c index a3c10a0..6757cc4 100644 --- a/core/network_thread.c +++ b/core/network_thread.c @@ -345,7 +345,6 @@ void *network_thread (void *data) break; case REQ_INSTALL: - case REQ_INSTALL_DRYRUN: TRACE("Incoming network request: processing..."); if (instp->status == IDLE) { instp->fd = ctrlconnfd; diff --git a/doc/source/swupdate-ipc.rst b/doc/source/swupdate-ipc.rst index d9390c9..a3ccb13 100644 --- a/doc/source/swupdate-ipc.rst +++ b/doc/source/swupdate-ipc.rst @@ -42,7 +42,7 @@ The exchanged packets are described in network_ipc.h Where the fields have the meaning: - magic : a magic number as simple proof of the packet -- type : one of REQ_INSTALL, REQ_INSTALL_DRYRUN, ACK, NACK, +- type : one of REQ_INSTALL, ACK, NACK, GET_STATUS, POST_UPDATE, SWUPDATE_SUBPROCESS, SET_AES_KEY - msgdata : a buffer used by the client to send the image or by SWUpdate to report back notifications and status. diff --git a/include/network_ipc.h b/include/network_ipc.h index 9558183..2e6f75d 100644 --- a/include/network_ipc.h +++ b/include/network_ipc.h @@ -33,7 +33,6 @@ typedef enum { GET_STATUS, POST_UPDATE, SWUPDATE_SUBPROCESS, - REQ_INSTALL_DRYRUN, SET_AES_KEY, SET_UPDATE_STATE, /* set bootloader ustate */ REQ_INSTALL_EXT
This becomes obsolete because the dry-run option becomes an option in the request install (swupdate_request) structure. Signed-off-by: Stefano Babic <sbabic@denx.de> --- core/network_thread.c | 1 - doc/source/swupdate-ipc.rst | 2 +- include/network_ipc.h | 1 - 3 files changed, 1 insertion(+), 3 deletions(-)