From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9ADB5C48BE5 for ; Wed, 16 Jun 2021 21:44:40 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 31FF961375 for ; Wed, 16 Jun 2021 21:44:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 31FF961375 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=amsat.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:40174 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ltdKw-0002gE-T5 for qemu-devel@archiver.kernel.org; Wed, 16 Jun 2021 17:44:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48716) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ltdJN-0008Or-QZ; Wed, 16 Jun 2021 17:43:01 -0400 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:45650) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ltdJL-000658-Rf; Wed, 16 Jun 2021 17:43:01 -0400 Received: by mail-wm1-x331.google.com with SMTP id c18-20020a05600c0ad2b02901cee262e45fso2446952wmr.4; Wed, 16 Jun 2021 14:42:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Ip/zcUYPJ8iUD8BSFX5rVZ45yqs1C85tuOa7rdKRn1E=; b=o4RYS1KTMqQ7wUK1RGeVRHw4Cs/VbdJpAvNGi0VtrHahghtMfHJXuayG1p6AbO4DOL 2dRYv/e/SHQC+MViFvsIbnJrrKxu5tcrcaWErXu2QjIlhHPqgm4YQOkuT54eO5sS9zRI cnmw5x8p17+1xDTtC9qwRHTx7JuO43kTS5SqRkaR2QWJnvHAMudgjWcPvPdnKjYcGUB+ nLWgbEm8zuigcOgnz1IAosqi2DfsuYx9KazvTHFFQfrPW63D8t7gm8B3aeLKzVY0bn67 EwkKKmWFlxyhmSrHgNtCnSsrvWBNRAT1b12T6LsXvhregCN2AMTpli8y1JnRcNnjKqtR NlQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=Ip/zcUYPJ8iUD8BSFX5rVZ45yqs1C85tuOa7rdKRn1E=; b=CoQJIWE/KBoCvQUWQT8SG7OKeGz2HYTVpnP/HtLz0re4STLNs10JuyVaRfy+dd0ALJ p4zV7o/waM/rgpQjuiRvYwkd8kAKH6MCN0D5iR4npK1eRalaf2CH+szKJA7rR9+ugz4E C5biH2NnRHDSxtlwqM7HWKHvz2IxfI3KZQhldOPyuaDmkpeFgbN03XVwVXxnm+yVjNvK FcVW6yoGXSjMfxDkBMuGcA9WW1v5HFRkvUF9SX0Fk2/2u5iV/4Wjilo30uO76IbikIAE 0Kd6YXRoy5SuPNWyasvQSGayuteomHzjPqQxkKdBQbvgk7NFAG5OvLBL//FMyEeXeXNg 8RnA== X-Gm-Message-State: AOAM531yDhG+3rBm+0v5vgM9m9WTEwo7Wkl+eopvWYgpsBFru4+mOs2C /WQFjBPVXxe4STriSZfeDz07X77qS1BwXg== X-Google-Smtp-Source: ABdhPJyJ7SNGG3PAz+Uosa73SpRDzqWgvngTHHjOwNsGTBudJwBImE2oZ/feqj9qIAL+XIzIvMZThA== X-Received: by 2002:a7b:c931:: with SMTP id h17mr1132100wml.168.1623879776988; Wed, 16 Jun 2021 14:42:56 -0700 (PDT) Received: from x1w.. (93.red-83-35-24.dynamicip.rima-tde.net. [83.35.24.93]) by smtp.gmail.com with ESMTPSA id u7sm4163938wrt.18.2021.06.16.14.42.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Jun 2021 14:42:56 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v4 00/15] hw/i2c: Remove confusing i2c_send_recv() API Date: Wed, 16 Jun 2021 23:42:39 +0200 Message-Id: <20210616214254.2647796-1-f4bug@amsat.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wm1-x331.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Corey Minyard , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , KONRAD Frederic , qemu-arm@nongnu.org, qemu-ppc@nongnu.org Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" This is a respin of Zoltan's patch:=0D https://www.mail-archive.com/qemu-devel@nongnu.org/msg714711.html=0D =0D Patches 1-13 reviewed (could be queued)=0D Missing review: 14-15 (but optionals)=0D =0D Since v3:=0D - addressed minor review comments from Richard/Corey=0D - added R-b/A-b tags=0D - implemented Richard suggestion (last 2 patches, 14 & 15)=0D =0D Since v2, tried to address Corey's review comments resulting=0D in a i2c_send_recv() removal and code easier to review (to my=0D taste at least).=0D =0D BALATON Zoltan (1):=0D hw/i2c: Make i2c_start_transfer() direction argument a boolean=0D =0D Philippe Mathieu-Daud=C3=A9 (14):=0D hw/input/lm832x: Move lm832x_key_event() declaration to "lm832x.h"=0D hw/input/lm832x: Define TYPE_LM8323 in public header=0D hw/display/sm501: Simplify sm501_i2c_write() logic=0D hw/display/sm501: Replace i2c_send_recv() by i2c_recv() & i2c_send()=0D hw/i2c/ppc4xx_i2c: Add reference to datasheet=0D hw/i2c/ppc4xx_i2c: Replace i2c_send_recv() by i2c_recv() & i2c_send()=0D hw/misc/auxbus: Fix MOT/classic I2C mode=0D hw/misc/auxbus: Explode READ_I2C / WRITE_I2C_MOT cases=0D hw/misc/auxbus: Replace 'is_write' boolean by its value=0D hw/misc/auxbus: Replace i2c_send_recv() by i2c_recv() & i2c_send()=0D hw/i2c: Remove confusing i2c_send_recv()=0D hw/i2c: Rename i2c_set_slave_address() -> i2c_slave_set_address()=0D hw/i2c: Extract i2c_do_start_transfer() from i2c_start_transfer()=0D hw/i2c: Introduce i2c_start_recv() and i2c_start_send()=0D =0D include/hw/i2c/i2c.h | 46 +++++++++++++++++++++---=0D include/hw/input/lm832x.h | 28 +++++++++++++++=0D hw/arm/nseries.c | 3 +-=0D hw/arm/pxa2xx.c | 2 +-=0D hw/arm/spitz.c | 4 +--=0D hw/display/ati.c | 2 +-=0D hw/display/sm501.c | 16 +++++----=0D hw/display/xlnx_dp.c | 2 +-=0D hw/i2c/core.c | 76 ++++++++++++++++++++++-----------------=0D hw/i2c/imx_i2c.c | 2 +-=0D hw/i2c/pm_smbus.c | 4 +--=0D hw/i2c/ppc4xx_i2c.c | 15 +++++---=0D hw/i2c/smbus_master.c | 22 ++++++------=0D hw/input/lm832x.c | 2 +-=0D hw/misc/auxbus.c | 70 ++++++++++++++++++++++++++----------=0D MAINTAINERS | 1 +=0D 16 files changed, 207 insertions(+), 88 deletions(-)=0D create mode 100644 include/hw/input/lm832x.h=0D =0D -- =0D 2.31.1=0D =0D