Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1391210pxb; Fri, 20 Nov 2020 08:22:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJy4e+9W5dk4YT9GLBEvCSwJeVAvLBH5ueJ4Yz17g+5/Xc/VGU1P0VTy/9ckjQyGw9gIGbNm X-Received: by 2002:a17:906:76d3:: with SMTP id q19mr32555477ejn.162.1605889362200; Fri, 20 Nov 2020 08:22:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605889362; cv=none; d=google.com; s=arc-20160816; b=f//rudcXEzGIadTmlNCdKgG/7OENI4NK5R2nyMX7T4TJZCKpqCA9AFV9jfFxjGRxQy B90D8b5pCiiK7UETUg636ZNHO/T7s88aa26xsU2rb1TjQ3TwI87Go8mSWZMsBE1ymIbw kNmc3fsgOeejwh+7YV7kE9YwM02cg5DuzQNCHCJ400D1Kd/f1SeptGQ0FGV2Z3ExIj1s /ni9uYnJ5ZyxEGDztDg1bLwPeOJE/boUtLSJieswYUqvcgTe+RySV/M4I/6UREeWEW2F AIngDKPBBakMck6fdwia72B5U2+PKbjEAXsYKnIk9rAEEdtwd3zBbBvMZiqtWCbDtZYd ZtGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :date:cc:to:from:subject:message-id; bh=qviD5+WwSUbwMOdJG3CtUxz+pxwqgsF5OtOr8x1IScY=; b=Ylr8ZbxEZpeIZsv6fKJI/XY3Y3Jp0JAjwniPCkmPVvToesqWpKhP6vp+k1bpQFFd7p gKiP44BSjEOXJZxmnr8Ytt/btPIyMc7dvdB+6Qm2d3lVvs7uB91RPMdlb3cDQmUl0uYV xNa7D5VSQlBS7mhS0jTnO9vluI9Bk05zf8c95pJ2SaKbTEdBIMJcocjOswS7EKBn1Whv D0c66aTsZU2Mknts7kfs1u9UQD5gHWQWYR780YojGL5HRq0P9bo/mVAKgLo5ACm70L0P amCKmtPDJ4iz2eKNd5l5vvjRefDlTzBrxRbi1G+gZ1eq4O0nIPD2vXqsQ1kg2YBFnRmM fXLQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v11si1903854ejh.153.2020.11.20.08.22.18; Fri, 20 Nov 2020 08:22:42 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729464AbgKTQS4 (ORCPT + 99 others); Fri, 20 Nov 2020 11:18:56 -0500 Received: from mx2.suse.de ([195.135.220.15]:54946 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729444AbgKTQSz (ORCPT ); Fri, 20 Nov 2020 11:18:55 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 1A298ACC6; Fri, 20 Nov 2020 16:18:54 +0000 (UTC) Message-ID: <2b7f555bee663a033e2e8fc50f019c9b580a7c66.camel@suse.de> Subject: Re: [PATCH v5 2/2] spi: Add generic SPI multiplexer From: Nicolas Saenz Julienne To: Chris Packham , "linux-kernel@vger.kernel.org" Cc: "andy.shevchenko@gmail.com" , "broonie@kernel.org" , "devicetree@vger.kernel.org" , "linux-spi@vger.kernel.org" , "mark.rutland@arm.com" , "robh+dt@kernel.org" Date: Fri, 20 Nov 2020 17:18:50 +0100 In-Reply-To: <104152dd-a51e-1893-cc6b-022aecd89250@alliedtelesis.co.nz> References: <20200204032838.20739-3-chris.packham@alliedtelesis.co.nz> <20201113154633.21542-1-nsaenzjulienne@suse.de> <104152dd-a51e-1893-cc6b-022aecd89250@alliedtelesis.co.nz> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-nPpUsDmncpRH0ei3magB" User-Agent: Evolution 3.36.5 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-nPpUsDmncpRH0ei3magB Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 2020-11-17 at 00:08 +0000, Chris Packham wrote: > On 14/11/20 4:46 am, Nicolas Saenz Julienne wrote: > > Upon registering spi-mux's devices through spi_add_device() the kernel = gets > > stuck waiting for the 'spi_add_lock' mutex to be released. The mutex ha= ppens to > > be held by spi-mux's parent SPI bus, which unluckily, is waiting for sp= i-mux's > > probe to finish before releasing it. >=20 > I just re-tested my system with v5.10.0-rc4 and didn't see any problem.= =20 > My dts is pretty similar to yours the only obvious thing missing is=20 > `mux-control-names =3D "spi";` and I also set `#size-cells =3D <1>;` (let= me=20 > know if you want me to post the whole thing). >=20 > It might be dependent on the host spi controller. The re-test I just did= =20 > was on a board using the spi-orion.c driver and I tested my original=20 > change on a board using spi-bcm-qspi.c (I haven't got the board handy=20 > right now but I could go and find one if necessary). Found the issue, something silly on my side. Sorry for the noise. Regards, Nicolas --=-nPpUsDmncpRH0ei3magB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEErOkkGDHCg2EbPcGjlfZmHno8x/4FAl+37GoACgkQlfZmHno8 x/5GZgf/R2nkIl4aPSZPwKJzMdQQE60+w/KbP6MCNKterlddKumSwb5DnIEWXyil s/OeckEQUlZ5V09WUnPkNlARrH6tZDYWQLboQEpYReSWeLmvgcSHCp7PYBU/rXj8 gqtkTd5AK8EFhZQUOHNQsG3O9VeB7GvNXrWuqOjciDiMmoPfe443na1T97R2K9Fj K3Fmj/2bNz52+9C99ZDCvxEurco91atavZvzpcJ5ISaTHOeJE5XZ2yyrJBcGNMZT uHDgDku+o61+ZoeWGz6HYUFp/ec6Da2JPhdsZ2U0cgruhUKpa7RHzNjqlkmdz8fL SjWiw1/Cci3o6sfAwjQjQ7MRUh8KYQ== =sdk7 -----END PGP SIGNATURE----- --=-nPpUsDmncpRH0ei3magB--