Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp6348388imd; Wed, 31 Oct 2018 10:18:01 -0700 (PDT) X-Google-Smtp-Source: AJdET5cfAbP+1n3Ew0NVFCW33dD1BHi80Xb1EDq5QrPrT6LVt+xLuyGObaJhDg1jibFVbK8JqALL X-Received: by 2002:a17:902:5a09:: with SMTP id q9-v6mr4334413pli.186.1541006281106; Wed, 31 Oct 2018 10:18:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541006281; cv=none; d=google.com; s=arc-20160816; b=chrfBevpicIAdPqcS7PyCHt8sJw0PQJzYg9QDXmiLYclwI9t2ZFP+/4a63Gdnrl111 4Tts8SI/n8pGF+o2cAxdjoc5p5V3EaKopyjfgy2w+pdHqvCTvYtozDis1lnHO3sLalu8 kMY8PzcFSZ3ABT0gfP0dzKjMVqGt0o4F5DbuaKNz3ZxdvJ5HGSzP8GZdO7JA4NkIhpj0 Sg1DfTNEkyobR6o/mQvVkvA2o9rn+IBaC8dg7xtwglUaLMaTjPOVJxgcx7TzhMRI++Ge P/J45k22p/71Gb8Zz0Sop/LKKzwJ1mu6ZDuY1t6NCp4Md2HUQ6Wt5leiJWxVVvYZG4mk rw3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:user-agent :references:in-reply-to:subject:cc:to:from; bh=AHcP2VJwSPjg83l1/9FrO12lgOyghykGt4MLea8vquA=; b=kZg6rMP3HqXG5WNgmTfXyjC+XvsEU6KzlxDTNHeob5DaDRUmceJKRYdA/cSaT09Gbc ZJgXAw8AyQyZykejnknjEHzbVb/e4aMawlkb3uZxBVZFQ9W0aRoTsn5SPUMGCRVlHN4L HDw9GhXa1M2SglwYSTHfccKkgD9WSww2n15SdTi+je6k+g0aUISBqN3dVW9qeTXcUjYv jRsyNExAKRumxWU7SGBO73iyGLq2yRL/A0/0fcm5swBo1N1nOmOrGJvq5LGLzm8yD60g tLcQAKZjFx3wKpuqmYmkCcmlnYzGzlchlwQURA2aQPG8h+xjEBtHQELynnXbtsnYQd4D TJRg== ARC-Authentication-Results: i=1; mx.google.com; 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 y190-v6si27690601pfy.147.2018.10.31.10.17.44; Wed, 31 Oct 2018 10:18:01 -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; 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 S1729744AbeKACPR (ORCPT + 99 others); Wed, 31 Oct 2018 22:15:17 -0400 Received: from anholt.net ([50.246.234.109]:50634 "EHLO anholt.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728128AbeKACPR (ORCPT ); Wed, 31 Oct 2018 22:15:17 -0400 Received: from localhost (localhost [127.0.0.1]) by anholt.net (Postfix) with ESMTP id A1CA910A1311; Wed, 31 Oct 2018 10:16:22 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at anholt.net Received: from anholt.net ([127.0.0.1]) by localhost (kingsolver.anholt.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 4BudUhdBenj3; Wed, 31 Oct 2018 10:16:21 -0700 (PDT) Received: from eliezer.anholt.net (localhost [127.0.0.1]) by anholt.net (Postfix) with ESMTP id 8DE2210A01D5; Wed, 31 Oct 2018 10:16:21 -0700 (PDT) Received: by eliezer.anholt.net (Postfix, from userid 1000) id 2CD392FE1B8F; Wed, 31 Oct 2018 10:16:21 -0700 (PDT) From: Eric Anholt To: Stefan Wahren Cc: Arnd Bergmann , Florian Fainelli , linux-kernel@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Stefan Wahren Subject: Re: [PATCH] firmware: raspberrypi: Define timeout for transactions In-Reply-To: <1540922921-3653-1-git-send-email-stefan.wahren@i2se.com> References: <1540922921-3653-1-git-send-email-stefan.wahren@i2se.com> User-Agent: Notmuch/0.22.2+1~gb0bcfaa (http://notmuchmail.org) Emacs/25.2.2 (x86_64-pc-linux-gnu) Date: Wed, 31 Oct 2018 10:16:20 -0700 Message-ID: <87k1lyghp7.fsf@anholt.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain Stefan Wahren writes: > We should never assume to get a reply from the firmware otherwise > the call could block forever and the user don't get informed. So > define a timeout of 1 sec and print a stacktrace once in the unlikely > case the timeout expired. > > Signed-off-by: Stefan Wahren Reviewed-by: Eric Anholt --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE/JuuFDWp9/ZkuCBXtdYpNtH8nugFAlvZ42QACgkQtdYpNtH8 nuiipxAAkT5oj/Elq3MYDjpnl0EfyStwl67HVQ2iZpazN5mZ25K7VA/fvcvm268T b+ZoOoUWMa1iAcOG/zAt5SftWRlzrYvi2ieSZtYVzPsjpIxDfvLhgvX0s8SMM03s iVKbKAac0K0LZg71o0x1vOwcV0kh+jB4fHbPaQr1Mk0pZioop2v++BRmKPmNA7Av o4u8ylWiUjW7svbIStc2pUHn1sv0+lYktRdGd7FrrXNcdZ93sQN4nM4q8nVtRXGU g80MYaBVy9+nGp2G4xzYbRCidKGukFhHMA2aG782wlypPibX2ZoA3ldQrB6CiNls HrHVGC1h6rsUkPVgGG+uI5mAK4P2qb8IoH4To7FkhPXaiQ5fRiCu1T5PE7J9mN8h Vj/Ksd+n0sRwoIGc01y1ASeG7XgEiFI0vLSt28w3AbMQ/svGSdQwQZaOGPpBkdtL +j8/9DTZzIpw3Jp6DOSXVa00yT4Bt/RJWTRsgJE+T2eikIIRbKManT8huIcjbOIh mWR3wEwAsWYACvcf9C8QjN+W621Wj/fAMbDlCucBJIPTn6vUz5+wT2MdEPebkFTr Xs5LlmVP0D7dDam3+GI++TbdPSzV7PHvZI0SS7LGdFWTlVdpY9eqib7qspGlCCxT oFrm+17IZP+fQucBzcnTWcZJQ8JmS9zkf/hxfedzX4YtkwMFFHQ= =X1L9 -----END PGP SIGNATURE----- --=-=-=--