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=-5.3 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no 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 13A52C48BDF for ; Fri, 18 Jun 2021 08:56:43 +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 9694A613B9 for ; Fri, 18 Jun 2021 08:56:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9694A613B9 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]:44390 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1luAIr-00077z-HM for qemu-devel@archiver.kernel.org; Fri, 18 Jun 2021 04:56:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44172) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1luAH4-00054K-Qo; Fri, 18 Jun 2021 04:54:50 -0400 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]:37756) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1luAH3-0005VT-ED; Fri, 18 Jun 2021 04:54:50 -0400 Received: by mail-wr1-x42f.google.com with SMTP id i94so9865675wri.4; Fri, 18 Jun 2021 01:54:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=UHul0/vhPHafot993zQC1qDG7KnvfosLyiUNT9RTcO8=; b=Gk99wNsl6HiasRTnDTj8bVGvfDEMqQyI52dog0vEelsB+kVRVV7FH0GXcfC5QvDZxe vFytZs8SMc7/EkapommjiNA0cXfILcFmg8Em4p1V5kPAm22Z2t37sF4AuMRoPcCSQ6Qv 00C2YyIwKTdF4yuHd2AZPsRkD1BliT+lEuFQRjGmkNCZxnpeXk/zKF1BsPqOv0rRpUUl 0pS8rK3HIPzvcWo3VegK4uvpkC8BtCn4Qq9iW6Ed3+j4cNn2Yrc5GfIPF0aR0e2vL9Kq iXOQqZFHdtYilkyynnV+QhEhaXo7L8y67Fz+fnDRfd0A/moVwwEofkNgX1wtlZAppW8w Bl8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=UHul0/vhPHafot993zQC1qDG7KnvfosLyiUNT9RTcO8=; b=NX9qPCVpL7ZeRRxae2L3Cn6rrpJ0cCS9Z7vE+lvc73uDjHW37N9f8br0L3PgTv+b3p J4U/1fGcZlxR1Z29H5idUYULntYtS+By/pqVF9gbbBkXJdN48tF/t6mITkPyVAkL6HS/ HoghA0VDIB+Mo2YD05aU9ZTyawyP+73XGEOkHLVMf7TIIe8NRj73weIP1ulCut3KMDst K+CY97K8W9OucfBWhU1tJQrHZel4mlfDJxw9MT7ZcD05n3zFrblkGYSrj1QpX5ZcWcQD t8zobBG4urDxJTxYqlfNKRoNgvZVnuTAiWI4ZDkLyptkjbAeSJ9pO04B9G4rwqwXWUJ5 uiLQ== X-Gm-Message-State: AOAM533HZwOiHN1D56m8XRv4LxCX8z4n/kaqbFdzgSo5XjRd5fwmuOL+ s5kz3dzLrgvk2vWNMu6aeF7BSH2lpfpgJQ== X-Google-Smtp-Source: ABdhPJw7WDrGYIFl30z2SUKxzDYB3Lr6dVdLZ2ptXhPonp2daAZ3jqJqqqgljC1MXNzgCNJNRjJ8WA== X-Received: by 2002:a05:6000:154c:: with SMTP id 12mr10997352wry.126.1624006487001; Fri, 18 Jun 2021 01:54:47 -0700 (PDT) Received: from [192.168.1.36] (93.red-83-35-24.dynamicip.rima-tde.net. [83.35.24.93]) by smtp.gmail.com with ESMTPSA id r1sm7370814wmh.32.2021.06.18.01.54.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Jun 2021 01:54:45 -0700 (PDT) Subject: Re: [PATCH v3 06/13] hw/i2c/ppc4xx_i2c: Replace i2c_send_recv() by i2c_recv() & i2c_send() To: BALATON Zoltan References: <20210616161418.2514095-1-f4bug@amsat.org> <20210616161418.2514095-7-f4bug@amsat.org> <20210616191637.GF11196@minyard.net> <59fb23da-ddad-0436-6935-89712fbddf0f@amsat.org> <7bf42f64-b6dd-1e1d-dec9-f710cc94cb2@eik.bme.hu> <416b4c36-b838-a5f4-6575-74685627b9c3@amsat.org> <675080b9-cb1-9ee4-c515-ebd0401b302b@eik.bme.hu> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= Message-ID: <3b5f989e-ba68-d60f-aa10-e793bf572257@amsat.org> Date: Fri, 18 Jun 2021 10:54:44 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <675080b9-cb1-9ee4-c515-ebd0401b302b@eik.bme.hu> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-x42f.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-0.254, 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: cminyard@mvista.com, "Signed-off-by : Frederic Konrad" , qemu-arm@nongnu.org, qemu-ppc@nongnu.org, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 6/18/21 1:49 AM, BALATON Zoltan wrote: > On Wed, 16 Jun 2021, Philippe Mathieu-Daudé wrote: >> On 6/16/21 10:01 PM, BALATON Zoltan wrote: >>> Having a send_recv in one func >>> allowed to avoid if-else in some places like these but if you think it's >>> better without this function at all I can work with that too. I'll have >>> to check if these changes could break anything. At first sight I'm not >>> sure errors are handled as before if recv fails but it was years ago I >>> did the sm501 and ati parts and I forgot how they work so I need to >>> check again. I'll wait for the final version of the series then and test >>> that. >> >> Thanks, that would be great! > > I've tried AmigaOS and MorphOS on sam460ex and mac99 with sm501 and > ati-vga and these still work so I think the patches are OK but I did not > test other changes to other machines so I did not give a tested-by for > the series just some reviewed-by to patches I've verified. (Found a > regression with AROS but that's not related to these changes.) Thank you Zoltan for your testing! Phil.