Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1320655pxv; Fri, 2 Jul 2021 00:25:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzovKqBU6/W73XkFP/zrUsSO9Rff1RSMR6dsueu9xho889k0ryLDSEyEjnjsi1N3qFMnTNr X-Received: by 2002:a17:906:4447:: with SMTP id i7mr4049148ejp.185.1625210748635; Fri, 02 Jul 2021 00:25:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625210748; cv=none; d=google.com; s=arc-20160816; b=hnR4S1Vxse6stmN87JrQmRut2K0BdxX5Fqlxk2Og1pQJUxi3WyR8+DVDLPUlR0AAGB xdcsAZYj9y2rCMlK0QVFPxnqq6eCcbyULZGq0hcxsnhMLCPNXhHN2Nrty7PBbC8KWKBu pUo8scHMKpPlq/EeSP6y27swIbXwwbrCvnCw+XatpeP5UXZe5e5x9jxzT8IlebOhHYEP hlSMvIbYS5gBZ2Tt1WaPzXrB9XKl1/EuI9WlLKJqhs6835ZsXe/IB1sDVsOJGmmJZUwH JrIuj4cHexROzTRLmjdOUJ5vm9CgkIiwD/SLx5u6NX8fMbxo/ocqn63nGUOKrFM1XbuG LtMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=cTT5SBbgufyipfbulZ8UMd6eHUFijnnoOYYIn/7MP+o=; b=idMA/FgY7QnCoPowLlR8X2VNZiwHnFP1NFWR02PkT2GEZMykup2bp/cqiNhqur7c1F oRlPdQNp+WYqAbuJjDVKtR/vJdZ1+aXw00it9c/JNsGe2hb8bfo25jvJ8j4HXUiVKnnu rfcsdNaj1LIkRRvdtJcy57E5Fm9IEFwvnBtuN2VdTFuWu0QHIDxAAVnzqwQ1v4jSGirK fgzu9qOSKmjhJolMqW/g95u2vSLx2TUx9VVg9RNNXCz81zsrFrg28uVe0h0iRQr03e6w BZPjDuFKwMzAHDI98akTKNH0INFATPqynqAGkiQtFY4vmgCoYtAcPsFqgy2cpU53C9my fKMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nFo7STRA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m4si2412911edq.34.2021.07.02.00.25.25; Fri, 02 Jul 2021 00:25:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nFo7STRA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230130AbhGBHYC (ORCPT + 99 others); Fri, 2 Jul 2021 03:24:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230103AbhGBHYB (ORCPT ); Fri, 2 Jul 2021 03:24:01 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C078C061762 for ; Fri, 2 Jul 2021 00:21:30 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id j199so7753295pfd.7 for ; Fri, 02 Jul 2021 00:21:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=cTT5SBbgufyipfbulZ8UMd6eHUFijnnoOYYIn/7MP+o=; b=nFo7STRAeHl5/1sVuiyLsRIes/cEOzB6idGycA7fykYwfli+PR+4+ICCGHu+IR7SWr Glr9IqxTFZCmBRzjqDZs1GPdJduONKvf33/VV+ZYqujRcXyO2aAqsmUQcSLHtnaWc+JW DleBvWV/cShHHGvtf7+zKCA41D9ifMsq7VWJnEp1z6YDwXXfy9r+r5Py6YsbrMt4Uwqx 0yQjMw6gsAg6WdsKFMwV7FtKg0Ku4kGxyN+2KHMVmHsD3b5xdSpt+uXnzInUk6UKrmnG Jtz779vpf4E7BPARlTn/tl5wAoVsrCwSOVS2lCqv1XWi2WWrgL3PMUsPSSl3n3/Epxol GeJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=cTT5SBbgufyipfbulZ8UMd6eHUFijnnoOYYIn/7MP+o=; b=AjJEbnghMKwBen50w8vZ6F4UjfqNq8WSWXogQvzh3bWtDrnQGFyLFyrF/9stPL/+Cc ppymbjOlLkq/MS0QxbHD8QdbewwhRAH2b8OGeoJok4glT45Djr7NCAediAJgYsOEYs3S g3PbHciyW540vO7WNn8Cg+0SJFBqkbBw7BQOhdOS3AFl0SuI0Y3Q2vE0DkQeXKr5CXPV wlKouKeOdRfrF5dcxZ1Y8lrseddDeOFy0qQusWG500QF27k8RI1yV0oB4CgcSmGySuk+ dLumB1WWDyeViaqbH+N26wwoLcIQGHibOYhOYwRVqWW6EcIx7BiMQ/f3UXs74twy3N7E DZjQ== X-Gm-Message-State: AOAM533+UTqUd0q+YxxQXoScIPlWbpU4O1neT/WXtLDiAVxQMHWxOY98 iGc2xONpH/CwZFLQkVhFY4WtyliAFw+Erg== X-Received: by 2002:a05:6a00:26c3:b029:304:8e6c:be0a with SMTP id p3-20020a056a0026c3b02903048e6cbe0amr4132940pfw.65.1625210489763; Fri, 02 Jul 2021 00:21:29 -0700 (PDT) Received: from localhost ([106.201.108.2]) by smtp.gmail.com with ESMTPSA id c184sm2348185pfa.38.2021.07.02.00.21.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jul 2021 00:21:29 -0700 (PDT) Date: Fri, 2 Jul 2021 12:51:27 +0530 From: Viresh Kumar To: Jie Deng Cc: Wolfram Sang , linux-i2c@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, mst@redhat.com, arnd@arndb.de, jasowang@redhat.com, andriy.shevchenko@linux.intel.com, yu1.wang@intel.com, shuo.a.liu@intel.com, conghui.chen@intel.com, stefanha@redhat.com Subject: Re: [PATCH v11] i2c: virtio: add a virtio i2c frontend driver Message-ID: <20210702072127.yzofc75cuuqtvzbn@vireshk-i7> References: <510c876952efa693339ab0d6cc78ba7be9ef6897.1625104206.git.jie.deng@intel.com> <20210701040436.p7kega6rzeqz5tlm@vireshk-i7> <20210702045512.u4dvbapoc5a2a4jb@vireshk-i7> <409b6cc3-3339-61b2-7f42-0c69b6486bb3@intel.com> <20210702065625.qielhnfyrlvrtrkk@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02-07-21, 15:15, Jie Deng wrote: > Then what is the need to design this interface as "return the number of > messages successfully > processed, or a negative value on error". Just return success or fail is > enough. Right, that isn't clear to me as well. And so I asked Wolfram this yesterday. I think it is left for the clients handle this, i.e. what they want to do with it if something fails in between. > Here, we didn't break the contract with the interface "master_xfer", so if > there is a problem then > the contract may be the problem. So in your case here, either you should return 0 or nr (the number of transfers requested) and anything else can only be sent if the host reports partial failures. Also, since this driver is pretty much independent of everything else, and won't break anything in the kernel, there is still a good chance of getting it merged for 5.14-rc1/2.. So it would be better if you resend the next version as soon as possible :) -- viresh