Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2135151yba; Mon, 15 Apr 2019 05:47:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqwvvZgqUk7XI7K8bYldut8BJneCsJzxi697YPurp3aKz9gdjm3eFsfWPFih8MdTTxjpWSNB X-Received: by 2002:a63:1064:: with SMTP id 36mr69798545pgq.155.1555332443851; Mon, 15 Apr 2019 05:47:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555332443; cv=none; d=google.com; s=arc-20160816; b=z7U8xhEDe8DyywM8NU7J/xpCKhS5b6VXEJujMXsLrfKBeiktMMr3B9/5R5G5Ld9nPC wI0CHdEZJlLNplrDdTdZVzuieT+Qiy2Rc80Qs5xqltRVBb2C5IrwDrxsIS8KDUSVEpoM Nbbxvf2G01YDIhejedMLE2TUGM+DSgOTFp0Yneb97AFvQeP0ZWBHgHt4isJRMNWQHuzI nPy3B5aQk8CGK1vD1UC6yYajedVJk8BXsQGzVBzDvDVUfvwTi6+Fr99V5TXzYC6W4CG1 +J47SXGyCiXSMbDVsH1vkq+8yPnbBEmfZeajJXcrpxeZ8K55xb1Jwd/MOf6tOduyJu/G q1Zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=j2Jbk+XA0OWjgXCKKQtMT9pUcI5jesaoAegi8Sx+lEQ=; b=vV+lUux3GzRs6qBtKOClNcsIG7DF9vsaZd7N8hyRaJbhfKgY+Ds0WOFjCExncBfr8/ ypJASLZ2o3HwV7UaORef0489kR7/QiJ4s9mZKIottrsDlYtyPsXCnBvwEx6S26qaBObb cHyy5luuAb94hxKEzvVCmBL7YlCxeRJ/gCcsS/NsqaLzXv4NSvWWWXTsHjI4tHNbuWhA PkGyNKcoWReIsw2zWeEwfcB2e35och0vrN1us3e4pwv0cBrtgAnNSFnSZCj9UXn8/YPh pyJ6mEBbsoxgT1p3WzTpa45V5kaCpxHE4zqJllYHcHlxAnAvng1ZlrxZQQDRNbT0WXti ipCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fc6Erbs9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v2si14253776plp.191.2019.04.15.05.47.07; Mon, 15 Apr 2019 05:47:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fc6Erbs9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727549AbfDOMpC (ORCPT + 99 others); Mon, 15 Apr 2019 08:45:02 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:37500 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727340AbfDOMpC (ORCPT ); Mon, 15 Apr 2019 08:45:02 -0400 Received: by mail-pg1-f194.google.com with SMTP id e6so8536099pgc.4; Mon, 15 Apr 2019 05:45:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=j2Jbk+XA0OWjgXCKKQtMT9pUcI5jesaoAegi8Sx+lEQ=; b=fc6Erbs9Y5DyxddYgwY58UwwzLc5ZzUNN8Sr8k7iCEiFzjmFS2GSX4KJPAbKBEQM/J sAcbusbZEKPj+1/6BaFJICColzz9Jw7HQcqHkxM/lFnAEeO8CBMfBN3QX1h6gYAqO/sI RSVorg+ud1lylvgFYOl1LtU1BQsuvMWzxzNF5lXA5UlpX4eftrEhhUBdUdH61LTlh2oz QnMsIyj9LDsjtjimJRN5fiJ47vaqtqCBIxa+kpyaDRG8BMaOK0uK3b9eaLB+pnc+7+nw E1CEvDYyL5A2iKPXcx2FVLlyct7dDR6+GLoU4N0vL1MBeEyXxxMgdU05RKpON25ml5Ye YZnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=j2Jbk+XA0OWjgXCKKQtMT9pUcI5jesaoAegi8Sx+lEQ=; b=EjpDb1CO1e+HFd/3IbiZIRNM3NyodkuGxWvuubp7Dlodo6XlTZ77nLArCbC2xauzUd vkyMUct3/s6kOXiGTVciIqfDnYneKDVuz73odT7/a9iwaJ55DgC2dbzLfiCuC/gIVHNG /7MYBBeSwCNrDLxlVVfJ/pblBWfIdy/xnneuchXKGb4gVFP1JYUh4hk6BjDD6L2kz0KT 5gPSYVxY8Zu2f/KqHP9hp31uRhjvfe7GAEtqaAUKdHTBW5YhsBALAmQdor1a4HAQiMaE +0ibFkPmKKtc61FtMU2ttuWniYW2D/lIBtqCNXfHBs8lDPmGWuXAFv1sg3f7t6mW33dX 2w2g== X-Gm-Message-State: APjAAAVQ1SNVhMfdJtFS08CdFowEqta0n8j2Z5iV5gQ6Pyo9wZ/1rGek QgieZ9vZ+FI1ZwSGSucTKn7A6YaPKnKgOplrXYQ= X-Received: by 2002:a62:448d:: with SMTP id m13mr75740560pfi.182.1555332301258; Mon, 15 Apr 2019 05:45:01 -0700 (PDT) MIME-Version: 1.0 References: <20190403124019.8947-1-wsa+renesas@sang-engineering.com> <20190403124019.8947-5-wsa+renesas@sang-engineering.com> In-Reply-To: <20190403124019.8947-5-wsa+renesas@sang-engineering.com> From: Andy Shevchenko Date: Mon, 15 Apr 2019 15:44:50 +0300 Message-ID: Subject: Re: [PATCH 04/12] i2c: mux: populate the new *_atomic callbacks To: Wolfram Sang Cc: linux-i2c , Linux-Renesas , Linux Kernel Mailing List , linux-arm Mailing List , Peter Rosin , Stefan Lengfeld , Linux OMAP Mailing List , linux-tegra@vger.kernel.org, Linus Walleij , Andy Shevchenko Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 3, 2019 at 3:42 PM Wolfram Sang wrote: > > If the parent adapter has atomic_xfer callbacks, populate them for the > mux adapter as well. We can use the same translation function as for the > non-atomic xfer callback. > Reviewed-by Andy Shevchenko > Signed-off-by: Wolfram Sang > --- > drivers/i2c/i2c-mux.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/i2c/i2c-mux.c b/drivers/i2c/i2c-mux.c > index f330690b4125..603252fa1284 100644 > --- a/drivers/i2c/i2c-mux.c > +++ b/drivers/i2c/i2c-mux.c > @@ -310,12 +310,18 @@ int i2c_mux_add_adapter(struct i2c_mux_core *muxc, > else > priv->algo.master_xfer = __i2c_mux_master_xfer; > } > + if (parent->algo->master_xfer_atomic) > + priv->algo.master_xfer_atomic = priv->algo.master_xfer; > + > if (parent->algo->smbus_xfer) { > if (muxc->mux_locked) > priv->algo.smbus_xfer = i2c_mux_smbus_xfer; > else > priv->algo.smbus_xfer = __i2c_mux_smbus_xfer; > } > + if (parent->algo->smbus_xfer_atomic) > + priv->algo.smbus_xfer_atomic = priv->algo.smbus_xfer; > + > priv->algo.functionality = i2c_mux_functionality; > > /* Now fill out new adapter structure */ > -- > 2.11.0 > -- With Best Regards, Andy Shevchenko