From patchwork Wed Jan 11 08:50:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 641249 Delivered-To: patch@linaro.org Received: by 2002:a17:522:f3c4:b0:4b4:3859:abed with SMTP id in4csp3139849pvb; Wed, 11 Jan 2023 00:52:34 -0800 (PST) X-Google-Smtp-Source: AMrXdXsXnmKNbgr/RvZmkr/pAQTISi4bknWcY6WdyPoa0/xNcda6Li6QBa6bRJ64q0Ac495rYxVK X-Received: by 2002:a05:622a:199e:b0:3a8:1947:3e38 with SMTP id u30-20020a05622a199e00b003a819473e38mr125175510qtc.31.1673427154257; Wed, 11 Jan 2023 00:52:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673427154; cv=none; d=google.com; s=arc-20160816; b=j+WDViRcl7zNyJYSdW/S465nRcfnyutHkSHJvfQkprKMb2Q+EbhycRLZHKNSmLo500 2HlJErung29kOIyTVa7jnKa6w9DH9x/MF+gFcuvfWFReXIFjGzNDWmGOhIKPpcy4zdvf oNMkZ7nr0oycWJFsq7v0OtmDO9SpDQNoLWLt1I8EgZswtKie69imMRVqOtjPxQ8+uPR0 8jCcQzKSNqjhtArnQUdOk/jvGA4K/kxYebOjhGEub7J6W0NgrWEbAiMpH+co4iLZ9ZuG M+EdsPmw3MfSTR58dTERRXhhiA8QXIyEXtj572GQFLlpdP3hUS1FZIKzfvIuPGBx5y1R pNqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=mT+LWt01/sleIbh0MDOTvrE02y2MJEW1VXEk+avLKDA=; b=RyNpMv45Pgt0I4n7W+u/4IVnCQm5H1RXeBLsf3myykl9TVgbhcmjxvpquZpRCpVp/p QFe0UTwy1zzzj2eFf29h+iv/a6adlUNqKB1WjY0RSCedZhYOfRp8i+wZE0GpmFCBDzFm SA1RSiwTBVz5Juqw1QZO/8oZ/Ebsei+dTYCqmKys2kSQG/gQWav0BAANNzE3wOAb0qVu IoPYzJyPxzrqatNDxn5I6rvF7T3g5y88yvA0l16brJu89w9Ed7k76JIk4QyGs+EAo0he 7uzANWJ9bLP2OWZGhOPBjV/bMD6wLQT6Hw1M6QWy6DD3UfeuVJ/cBkrKqTSvhJF4nDnb RcBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=x2s+qJAl; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id ch7-20020a05622a40c700b003a4f6611dcfsi8047903qtb.250.2023.01.11.00.52.34 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Jan 2023 00:52:34 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=x2s+qJAl; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pFWod-0003FP-Hw; Wed, 11 Jan 2023 03:50:36 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pFWoP-000363-Vg for qemu-devel@nongnu.org; Wed, 11 Jan 2023 03:50:24 -0500 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pFWoN-0007Ze-RB for qemu-devel@nongnu.org; Wed, 11 Jan 2023 03:50:21 -0500 Received: by mail-wm1-x32b.google.com with SMTP id ay40so10585271wmb.2 for ; Wed, 11 Jan 2023 00:50:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=mT+LWt01/sleIbh0MDOTvrE02y2MJEW1VXEk+avLKDA=; b=x2s+qJAlrhg+yHrXRGGRBWjDq/nLh5awC5PjogaxNASQjMgZtNrCUEsl4t7lIgzF9F +dTEwmDS+8mrFlfuo/gDBBZ2c9jSuvyFwK1Go6G/Zck7kHq6XWuyPMYIL1lYCi7ZyfRs F6n9CCooSKo2uuI9WPnQOixNgDL0KDSduaRv28mlQQos2mSVv9WOkcUHL9MWQYSvbmJW swShtN2dDBHdDYe7EfL53SgVtALZLQKK1uidJwelI4b7fkYJFWr90J9ApbINvyD5Vds2 IhRQSW90VQ3Go3GJWjcnM5QCZ2mXk8mGl9e1lMHXLq3ktBC+pgd3c43Xu3CxSXjz5dtR zbTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=mT+LWt01/sleIbh0MDOTvrE02y2MJEW1VXEk+avLKDA=; b=uiQ1o6o4WJq9QelluW1c+UuhEIhwrX4w1CcK4GNt0UvFC7jzqXrpjXdDg9++XWUPMW VBA1FZUOf0J1jtqad2Pm135HiffIADxJDXfc7R4Ei8TFkBsqWGq5OvfpB+7T7+LhM+7W 63/0Av/f3Z/7vigXrVdcijlVukR79ZhudHvpFthke+hc2otDFapPAtBZNUojDHELQK4w /Qhs7VvQhCFlXkaMm457mYGSBjMrz8mLbhfXGalOevmdt9KG46t3Sddm/1R6eLx6vV5F 0iWdsvpdlCVudijZrrfJxXw9hOA8OrSurtwhDMcDD6Xt6XzWrd6RXTavZ81MAG//wt2D qOIQ== X-Gm-Message-State: AFqh2kp9g4/2czA86QBCWx+hnJm3WGi1k1J5MRNDb4orEN6vOflSk996 cjR+3NiUTT2sNPRJons3Dlg3IGmP2Jbc2JUi X-Received: by 2002:a05:600c:19d1:b0:3d9:ea0a:19c5 with SMTP id u17-20020a05600c19d100b003d9ea0a19c5mr9697883wmq.38.1673427018104; Wed, 11 Jan 2023 00:50:18 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id u21-20020a7bc055000000b003d9aa76dc6asm26107920wmc.0.2023.01.11.00.50.17 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 11 Jan 2023 00:50:17 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, Peter Maydell , Thomas Huth , Jan Kiszka , qemu-trivial@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v3 0/5] hw/i2c/bitbang_i2c: Housekeeping Date: Wed, 11 Jan 2023 09:50:11 +0100 Message-Id: <20230111085016.44551-1-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=philmd@linaro.org; helo=mail-wm1-x32b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Series fully reviewed. Since v2: - Use array of const pointers to const (Richard) Since v1: - Fixed overwritten RECEIVING_BIT7 entry (Richard) - Picked R-b tags - Remove unused dummy MemoryRegion - Convert DPRINTF() to using trace events (series used as base for follow-up, better if merged via ARM tree) Philippe Mathieu-Daudé (5): hw/i2c/bitbang_i2c: Define TYPE_GPIO_I2C in public header hw/i2c/bitbang_i2c: Remove unused dummy MemoryRegion hw/i2c/bitbang_i2c: Change state calling bitbang_i2c_set_state() helper hw/i2c/bitbang_i2c: Trace state changes hw/i2c/bitbang_i2c: Convert DPRINTF() to trace events hw/arm/musicpal.c | 3 +- hw/i2c/bitbang_i2c.c | 80 ++++++++++++++++++++++-------------- hw/i2c/trace-events | 7 ++++ include/hw/i2c/bitbang_i2c.h | 2 + 4 files changed, 61 insertions(+), 31 deletions(-) Acked-by: Corey Minyard