Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3280531iob; Mon, 16 May 2022 18:01:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEso3nBbuwewWJqnQ9D9BuclFzRMyCoD8LxnTmpzzDcnlytowMSM5eRKBoiecdZqhZfZJw X-Received: by 2002:a17:907:2506:b0:6fe:4088:8200 with SMTP id y6-20020a170907250600b006fe40888200mr6110489ejl.744.1652749298155; Mon, 16 May 2022 18:01:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652749298; cv=none; d=google.com; s=arc-20160816; b=ofp8ympwevz9CUN4ib7WcRWpvJpE8R6JoonVBgDocQwkZqmt4I9e11uP5/qmREyXZp wYP3xsDZDQ4Y7iqCQKFzfEdC1WPfr4wJPy1RsJXy1Frp8akdcEkJZNZvH06p/NYRWqBE Hb8xCLAW4xHLcZagcLBVivFBJj68usJ1tzMzxlEFxW6hKQcify+dScKkC7dvZCD2kqvE IXkHKIkCmkcyC9l3RF05o+CKs7E/6T5t4JgBKUmqmGdf2fzzBel+7CFOi7uiJMRDid0k Argvn22t2fDUThbLeHTWmI3hEJWZ8mnaM8Ap0bZVemMHHB6jb3tXaGyEQp9FsgR2cXvO X7+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=mTP9JKWbQi5X9Aiy3D3CFclT8K0qf8xcDbui6f15aq4=; b=Z0kSxxbtAiL92ch++q67iW0MGmI1Apj/HnbpyeS1/Ce1MCpi5QTpFywkbF+SxBW/hv v/m9wWlh2Osan2XO7rO90YagHwbDea3gOaEhCr55h919QcMvp4RO8RuhJDjnkrzzvDLv 8aD8iCHAS1mEPYrrFvrg5CQvJlXLGpZ+UOQtklnuA4cv38JwAdlbfYM/e/dvnfQFg3nc 162p0Bnq8JOZKtoTJVE8B2yYO1kxB4VtAbtz10/AqJ9N7Y9ix7COOaE97//szs+rfayk s7HIpKmY1NYGpDEbOgLNVkYzgvp5ac/HaTr/on/IJq9kmsWA2e/nX6vq0Q0F2PF24sLU uo6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kapsi.fi header.s=20161220 header.b=tYWuzJTP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sc17-20020a1709078a1100b006e7edaf2b8asi856534ejc.371.2022.05.16.18.01.12; Mon, 16 May 2022 18:01:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@kapsi.fi header.s=20161220 header.b=tYWuzJTP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239150AbiEPKCo (ORCPT + 99 others); Mon, 16 May 2022 06:02:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229759AbiEPKCm (ORCPT ); Mon, 16 May 2022 06:02:42 -0400 Received: from mail.kapsi.fi (mail.kapsi.fi [IPv6:2001:67c:1be8::25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A67335594; Mon, 16 May 2022 03:02:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kapsi.fi; s=20161220; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=mTP9JKWbQi5X9Aiy3D3CFclT8K0qf8xcDbui6f15aq4=; b=tYWuzJTPm570yErOrshkxq+qSU qhC4yrbZSy+ywVt2mL+GJ/d5HBSjMmWIovQmSzwey85qWTqCLe1VPWox+yoS0y6MtWlGfc4o90X9P KoXzkwzsi0qWUnsgdc22S9w0D6i5CFiVytZukOzAswGzt3MSo2PVClTUvnO4KtJVg96D59mwt9b4o 2XIAzlNkhh8zMdxLNtmHTlUM1Vz0YGp/ffr3IX/6H1j7ZjaTrc/+o/2DcUulUiYUF1aSZjxsS7meV lPyYh3NVuQlpfW/XqQeJdcSxjiEtOdNpoRd8wLqx05r9DvhTBUUvxBc26//2EBTfHkA4Bh3sKJHmY j6WM/h9w==; Received: from 91-158-25-70.elisa-laajakaista.fi ([91.158.25.70] helo=toshino.localdomain) by mail.kapsi.fi with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nqXYf-0005yU-NX; Mon, 16 May 2022 13:02:33 +0300 From: cyndis@kapsi.fi To: thierry.reding@gmail.com, jonathanh@nvidia.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, digetx@gmail.com Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, Mikko Perttunen Subject: [PATCH v1 07/13] gpu: host1x: Allow reset to be missing Date: Mon, 16 May 2022 13:02:07 +0300 Message-Id: <20220516100213.1536571-8-cyndis@kapsi.fi> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220516100213.1536571-1-cyndis@kapsi.fi> References: <20220516100213.1536571-1-cyndis@kapsi.fi> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 91.158.25.70 X-SA-Exim-Mail-From: cyndis@kapsi.fi X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 From: Mikko Perttunen Host1x on Tegra234 does not have a software-controllable reset line. As such, don't bail out if we don't find one in the device tree. Signed-off-by: Mikko Perttunen --- drivers/gpu/host1x/dev.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/host1x/dev.c b/drivers/gpu/host1x/dev.c index 5a57165ab0f6..c28939850bf6 100644 --- a/drivers/gpu/host1x/dev.c +++ b/drivers/gpu/host1x/dev.c @@ -423,9 +423,6 @@ static int host1x_get_resets(struct host1x *host) return err; } - if (WARN_ON(!host->resets[1].rstc)) - return -ENOENT; - return 0; } -- 2.36.1