Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp320163pxm; Wed, 2 Mar 2022 16:18:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJxvcurNHfZ5Mp5/e3zcTCQn8BVTwOGf+fV40oGcxa3K5xswtPWQhJVZJmsJBpLfJTBv7h8U X-Received: by 2002:a17:90a:728d:b0:1bc:1e1f:7eb9 with SMTP id e13-20020a17090a728d00b001bc1e1f7eb9mr2383158pjg.99.1646266685855; Wed, 02 Mar 2022 16:18:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646266685; cv=none; d=google.com; s=arc-20160816; b=hGPWLsIGi5YT2+ma0CR4w9rLEq2Q4Ul3s3E+5TqTCO2FFCOG4ln8z9MT9AiSiE0vJ0 +ERKq7DvWsaj0YkRJjjIwC4IGbmuijYCxdPUuoTChwvn5Ph2REfubV1ohkW/dwYucE5C R7l4i0k9n6NohUsKmi5c0ha7Cdoa3ADCKrDZxreCsVv+rOpFmJYqlwG94QERUrp2iEce GA0xT5PRIwp3txzasMPCtVJj8SFcsX33Qt5D7xgsrV0lzLFApiSAT/nYKldwodhBe1bZ laZtMDVxcqPylk9RcSt537u2BybvKzh/bae4DWKbTqNf4vkhp+uR8RxSbLjSUIMjO7yz kZFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:mail-followup-to:message-id:subject:to:from:date :dkim-signature; bh=xfynSmjeYDRf6845F8fiDmmj2gRsYqAFym76nfjHZFg=; b=b/Gy5zFqo70v7vjc/C+pfC9OzGESLijO/UljWJDA2jZ1K524i0Rw/24a+vdny95L7i OgNVyxehAaVhekSVcEkWWJCm6EosQ9s2mIML7oOeoSWdDL9TjdDP/asVQoP5L3uyu9T2 nwqyuByH6UP7xO/T0Xlsmj41mmWc+VX/w/gE2q1vdJMq+6G/kZXViGirUarFv/L59EEK wpvFzGS9ne4BoPZ88PnneReWZvaF6onbip4nyfmS+tku0AESMn9Zg5bmKfx/0Kj4iDL9 O4I+BwTPSbALewTQQsezaAUVFiOsRm4gloeMQSQ5nzaRu5BhyLwcoUoSzf4H34yN3nkP F2+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@sang-engineering.com header.s=k1 header.b=aTmph1cK; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id c15-20020a17090a558f00b001bc81f29240si467005pji.71.2022.03.02.16.18.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 16:18:05 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@sang-engineering.com header.s=k1 header.b=aTmph1cK; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7C4D71D8ABA; Wed, 2 Mar 2022 15:31:46 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240931AbiCBVX3 (ORCPT + 99 others); Wed, 2 Mar 2022 16:23:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240838AbiCBVX0 (ORCPT ); Wed, 2 Mar 2022 16:23:26 -0500 Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6626527CCE for ; Wed, 2 Mar 2022 13:22:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=sang-engineering.com; h= date:from:to:subject:message-id:references:mime-version :content-type:in-reply-to; s=k1; bh=MwoWmhJ+L5r33MNaUe69ZqsjwqZf jvz0RcaU0lS4/UA=; b=aTmph1cKarEUpB5nU+9CwBYH3V0/+/c1bcD3QyAFRjb7 FmUF2T21oAxOY4cazDQbqj0QkJR1coqGR6US1vB0zYx76BBa2Ybn08ePAP7ytHpj RNwlXrJHQROp6//RovsYW8P02Qh9YMtPFks37/8yCdDqt6qUHYYVn7G/fIQbfRA= Received: (qmail 259064 invoked from network); 2 Mar 2022 22:22:37 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 2 Mar 2022 22:22:37 +0100 X-UD-Smtp-Session: l3s3148p1@MRp74ULZAMQgAQnoAGk1AHiBA1wHs4oK Date: Wed, 2 Mar 2022 22:22:37 +0100 From: Wolfram Sang To: Peter Rosin , "linux-i2c@vger.kernel.org" , Christophe JAILLET , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] i2c: mux: demux-pinctrl: do not deactivate a master that is not active Message-ID: Mail-Followup-To: Wolfram Sang , Peter Rosin , "linux-i2c@vger.kernel.org" , Christophe JAILLET , "linux-kernel@vger.kernel.org" References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="jepbhLwGEDWuNCcE" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --jepbhLwGEDWuNCcE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 02, 2022 at 10:17:20PM +0100, Wolfram Sang wrote: >=20 > > Attempting to rollback the activation of the current master when > > the current master has not been activated is bad. priv->cur_chan >=20 > But the master is activated? >=20 > 259 /* switch to first parent as active master */ > 260 i2c_demux_activate_master(priv, 0); >=20 > Or am I missing something? :) But _this_ code is affected by the problem you describe, or? 237 if (!adap_np) { 238 dev_err(&pdev->dev, "can't get phandle for pare= nt %d\n", i); 239 err =3D -ENOENT; 240 goto err_rollback; 241 } --jepbhLwGEDWuNCcE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmIf4B0ACgkQFA3kzBSg KbZK3g/5AeBNwiDpQudH0ZbIc5TMhKbBsoyIbxK1jJHIxDFPY03TN9vnLHzzKG0R POEMO5fIluTgrKSBuRg0n0osCGXCo6oznf7/Ni6xqZkUdIG9Q/TJNG4lZ3U7EvEB ftzMkHTngywmLqohz+u0nIg0EPXvXJca3ONQZyoSNjf6c8Km1+X+5dXvvwhpBRpS cp9mDdM7Mnb8DSCMcmKGFOpc14Lfq5Fna5jC29C9ajqWgrvgpTWiUMCarEuGpiug Y8Q6V7i1aHkFozZW4RZqjvj4UDXXkktmvhKkih12VYcGGJMLM9jiDvCT7bF4Sf/S QREGU3ce5HxB1LeIwLY+OM4jR5PSOQj1DljvmceI0jm3E0aK6oitXug59OzP07zs 05iAxLA95Q6VvwX05H5ecNlra1k8Q9VlzGnnu6lgUYd9t90DXCedeDSryjzLL4Tb tMKeip+XxNpaHo5So+RgwCE9+uynKB3VEzqtMCOFe6+XTuH9OV3K69m3wKbC1tzE js+9aWXuhohRVr0ccNceRoU9iFIOGqosrHGj7Pp/MCT50vtKQiPL50ZHP4G7fss+ Jzm8SUoaFJmonQJSgVglRECkvUs5fPgws8SScsD+dA3H/KkiM0YVTQf+/jHJvInf LqcHydfykflEfLAew50sZLnaBvMuL7NbUY0CiR793urZvDWlS4k= =cnxv -----END PGP SIGNATURE----- --jepbhLwGEDWuNCcE--