Received: by 2002:ac0:a874:0:0:0:0:0 with SMTP id c49csp403400ima; Fri, 15 Mar 2019 05:33:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqyowKHfnblQDsTtzoQghFqKyvFzbW0ksN/hxzkxxIvoWxh+iD76XV9wbrgn0j9y7CXr6FPS X-Received: by 2002:a62:1b92:: with SMTP id b140mr3856651pfb.159.1552653226895; Fri, 15 Mar 2019 05:33:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552653226; cv=none; d=google.com; s=arc-20160816; b=BbvexbroUIgQjbyDENhWHl6nFU44At4gYAcPyXR8hqbAwUeZVYoDHMU6tPqYgB1exN HW2PY6z9WmPvDv9YaR4RlWqHIpgBfbe8th8l8ttV2geAAhUwsjYvZwXBlfAP4KZU2C1A 4UCDnyvyLfZP9xTxHTqivHD9xQ0pEcbbAsS+jEk6Mj7gM4IuMadqGr1D08IHIHxlRU8h g6vTNIxtRSXMeq6B66ZZ2o6ANOD7NtRksxNRqa3uZnGUkHKLE57M/ahB4Tfwi/R2W1Xa 3zhy6Ol6jybuDc8Wv5f6wqqcBj2g4/rn+I9s4rocNqNT0/wwSdrVz9hJnXfNOiKsK4/N 41/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organisation:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=FMkMeRtaL1tMxXuaBmfpzikZIpi+PWdeOVx9U0mvsX0=; b=zgfl9ULwWgRj2X9eXXGa1peOYGpr4V+s6QJECFHe2ApXQbSBJuXCgah1BeIQFEHBCe DwLx4nJfiREQyQmPgDns2cFIPEg7+ZvG+ifLqj9gontSm8cXtBQVUEY8zcfTpNS4mj7I JG8MPA6v99PoroTfIeG4IDsEiEAlZ+7+4s+Vyaw5CiocmwnB6IgiHAWIkEy9noxPTjG9 T1EHB5faZqpQIxAEvDWB523lvWQAI+UH0GFLCxsxkCZnLJASxPYewsdsSX6IYH0T5Swz nAq6vqAVldUf6lYHBYdaCe9kZgpqMzbtxsnfG4Pl4xlMKCNdQyec8GnEIJ1wP1i1BJJY 8p1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@verge.net.au header.s=mail header.b=W+dbXr1S; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u5si1727600pgi.162.2019.03.15.05.33.31; Fri, 15 Mar 2019 05:33:46 -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=fail header.i=@verge.net.au header.s=mail header.b=W+dbXr1S; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728994AbfCOMcy (ORCPT + 99 others); Fri, 15 Mar 2019 08:32:54 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:36062 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727492AbfCOMcy (ORCPT ); Fri, 15 Mar 2019 08:32:54 -0400 Received: from reginn.horms.nl (watermunt.horms.nl [80.127.179.77]) by kirsty.vergenet.net (Postfix) with ESMTPA id 8C98325B7E0; Fri, 15 Mar 2019 23:32:51 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=verge.net.au; s=mail; t=1552653171; bh=eAOA9wgX2tC8+Yvdiy9bXZJTOSSpCDUueoutCAodaS8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=W+dbXr1SQvseFjmMjPRNnvCEQTJmGIA+yIkJiCVVcWponw3NQqiby24fwRsuR7xsr 4+VVsQQcHrYr3kIHtwE00PHEc9/gP1ItaoEPQpBC3vKARKB07IfONQ28pQdfm2nhUD TF71cZdHjbAeIuKeBquUngnQ1YadR0bJCE/QqXzw= Received: by reginn.horms.nl (Postfix, from userid 7100) id F15279403F2; Fri, 15 Mar 2019 13:32:49 +0100 (CET) Date: Fri, 15 Mar 2019 13:32:49 +0100 From: Simon Horman To: Wolfram Sang Cc: linux-i2c@vger.kernel.org, Tero Kristo , Phil Reid , Tony Lindgren , Keerthy , linux-kernel@vger.kernel.org, Russell King , linux-renesas-soc@vger.kernel.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, Stefan Lengfeld , Andy Shevchenko , Peter Rosin , linux-arm-kernel@lists.infradead.org Subject: Re: [RFC PATCH v2 4/7] i2c: demux: WIP: handle the new atomic callbacks Message-ID: <20190315123249.mlymbgwi3rxtt4d3@verge.net.au> References: <20190302134735.4393-1-wsa+renesas@sang-engineering.com> <20190302134735.4393-5-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190302134735.4393-5-wsa+renesas@sang-engineering.com> Organisation: Horms Solutions BV User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 02, 2019 at 02:47:32PM +0100, Wolfram Sang wrote: > If the parent has an atomic callback, we need to translate it the same > way as the non-atomic callback. > > Signed-off-by: Wolfram Sang Reviewed-by: Simon Horman > --- > drivers/i2c/muxes/i2c-demux-pinctrl.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/i2c/muxes/i2c-demux-pinctrl.c b/drivers/i2c/muxes/i2c-demux-pinctrl.c > index 035032e20327..5d00adfbe578 100644 > --- a/drivers/i2c/muxes/i2c-demux-pinctrl.c > +++ b/drivers/i2c/muxes/i2c-demux-pinctrl.c > @@ -99,6 +99,9 @@ static int i2c_demux_activate_master(struct i2c_demux_pinctrl_priv *priv, u32 ne > > /* Now fill out current adapter structure. cur_chan must be up to date */ > priv->algo.master_xfer = i2c_demux_master_xfer; > + /* FIXME: regular muxes need proper handling, too! */ > + if (adap->algo->master_xfer_atomic) > + priv->algo.master_xfer_atomic = i2c_demux_master_xfer; > priv->algo.functionality = i2c_demux_functionality; > > snprintf(priv->cur_adap.name, sizeof(priv->cur_adap.name), > -- > 2.11.0 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel >