Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp527161pxv; Thu, 1 Jul 2021 03:46:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkFr1QMnFH5qCUPk9a9GyyubPCkyQjXrelrOyoW2bGjGB8DduGqLo8705WAta4zFZEx+vs X-Received: by 2002:aa7:dd53:: with SMTP id o19mr54404299edw.259.1625136417277; Thu, 01 Jul 2021 03:46:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625136417; cv=none; d=google.com; s=arc-20160816; b=uwAx0OOmwKX99CCgwKS47wXP2tTEoJJMceeTDJpCZbGGn9FjaJT64F4qxNNqsTSxNW pmvXJBpuzhJeK9poGuySNvALDJlV43Jqbjz2hhn+pdPWcfRF3eeCBFTDxeNiJyQM6Otf 5v+01lOY/KkBgR7/XqGegikFQaOVP1oEJcS8yQ22pYUdYyNdzdxRdSvAbqQJLfypb0r0 7wBI85/4cKwLf1Ne2u1+jraowO0ZwktiAsOXIjA1BwcI4e1uEIYnUCbkYsaCLntRV0y9 OK5og+OK9Ee1TxufAufOX3Ibs9cLi5PyIV9AhMxEgPc0ejDPbvHgNyPVIuvWI9JHahlw 8+UQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=XZ+FQaRXTbrfiFf/tysNy54S7DcclLlhIRgNNrBKkro=; b=iOz/yvo+zvT0IkmXFEXhxfNoulo1+K7EBkqYQb8Q5VDh1L/3IZQqgimoCMFfNzBeCj 4FGo2uPcGCL8/kl5w5MY2llCfUQH8R9iyitVv2CidgYYdTJz3w/F6tfVJKZUAD9iblc4 Sm0FrnlcCiMQZByOgGOV2FvHdBXviCObmSYkpyhNqYi2rpS74tXvBYndY3yGVtNjPEOa k3DHfFoBFhB/xA+NbAykMbUPHxxc++pRvdlkUgZG50IkkvJuZuJFUoGbFirpUpZuvhCB /1Pl0IRls2rYHOnrDB8ZEogL1N6dbY2c79ZFaGeRmhZQqSPUCHLJxJwgrOG/3c5Lw0nD cyLg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l26si9140439edq.593.2021.07.01.03.46.33; Thu, 01 Jul 2021 03:46:57 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236015AbhGAKrs (ORCPT + 99 others); Thu, 1 Jul 2021 06:47:48 -0400 Received: from mga03.intel.com ([134.134.136.65]:15689 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229744AbhGAKrq (ORCPT ); Thu, 1 Jul 2021 06:47:46 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10031"; a="208551649" X-IronPort-AV: E=Sophos;i="5.83,313,1616482800"; d="scan'208";a="208551649" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jul 2021 03:45:15 -0700 X-IronPort-AV: E=Sophos;i="5.83,313,1616482800"; d="scan'208";a="408887812" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jul 2021 03:45:12 -0700 Received: from andy by smile with local (Exim 4.94.2) (envelope-from ) id 1lyuBv-006z0C-DF; Thu, 01 Jul 2021 13:45:07 +0300 Date: Thu, 1 Jul 2021 13:45:07 +0300 From: Andy Shevchenko To: Jie Deng Cc: linux-i2c@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, wsa@kernel.org, wsa+renesas@sang-engineering.com, mst@redhat.com, arnd@arndb.de, jasowang@redhat.com, yu1.wang@intel.com, shuo.a.liu@intel.com, conghui.chen@intel.com, viresh.kumar@linaro.org, stefanha@redhat.com Subject: Re: [PATCH v11] i2c: virtio: add a virtio i2c frontend driver Message-ID: References: <510c876952efa693339ab0d6cc78ba7be9ef6897.1625104206.git.jie.deng@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <510c876952efa693339ab0d6cc78ba7be9ef6897.1625104206.git.jie.deng@intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 01, 2021 at 11:24:46AM +0800, Jie Deng wrote: > Add an I2C bus driver for virtio para-virtualization. > > The controller can be emulated by the backend driver in > any device model software by following the virtio protocol. > > The device specification can be found on > https://lists.oasis-open.org/archives/virtio-comment/202101/msg00008.html. > > By following the specification, people may implement different > backend drivers to emulate different controllers according to > their needs. > - Use #ifdef CONFIG_PM_SLEEP to replace the "__maybe_unused". Why is that? -- With Best Regards, Andy Shevchenko