Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4535297imm; Mon, 17 Sep 2018 16:03:18 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYuP0X7HnaQDsZhdGEmrYSltIGGUFfBBH5v9erQGj2zVG+BSukSBnotSU7C3H28Zy4yUSFE X-Received: by 2002:a62:6104:: with SMTP id v4-v6mr28215316pfb.122.1537225398595; Mon, 17 Sep 2018 16:03:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537225398; cv=none; d=google.com; s=arc-20160816; b=JPeZhrBs9Euq8UlT4l938+WBz0eDN1iTzitHH+iGMp6i3F7W6frC6eiGWuLniUkUQi PriibB8EBmSDCIJZBqFyAHzW+b9aSX/YWAUFSExBYVJjD92k1G5/jUxk7ikM+KLt5s8Z ro8uElktP7/8y31gf5C2utv0RhwKKOVqYQ0rGv67rwdC66y0mSSNUNPK1E9xO6tUVBMC 89bQsLH6jIIUmrz6hZLO8NKcmCGlviBLYpJL8XikezHInQbn1KsBxPwf+9gc5NbsVnez jZPKGqIf7VEDEyviNR9IHSujbFWF08fvzdtibhs0bdLwXG97qcj5SsorJ3n1znpiJroV ysSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=ZRjBhgFPgOZASL3/EpGiZPzJF+CXVywxs/bBWSmv8cA=; b=fUEfkPStn36tb6im7ithygegGh+funWkovSg9E23KLhfsA2CRSZJpHgEcKy6qmLHzk HCxoTO6bIQTyQHZXuTwVG5t7yFuVj9wSyAzIzUxSKLoTJ1RiHAJ8m8WmL2H1/t1Fv4Uo PkzDM1hgusYXD5R0AHEgWyqg3G9lWs9lOuAKR9VF4LmwBudYPoDlKT4wAjjCit9tnoA4 yr76niZB4OG663NDUytKeTZvLcUeCPhWhYul9SS5+xp34wgDthxId2SIfC6ibDN7ULnH Vi1ORsXFdt9ZbpBag47O3QcoY+gbykgVg08CtxROJU8+gw6FPbW/7DZv6pjGND9I2Uou TAHA== 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 21-v6si16548980pgs.520.2018.09.17.16.03.03; Mon, 17 Sep 2018 16:03:18 -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 S1730230AbeIREbC (ORCPT + 99 others); Tue, 18 Sep 2018 00:31:02 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:48298 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727088AbeIREbB (ORCPT ); Tue, 18 Sep 2018 00:31:01 -0400 Received: from localhost (li1825-44.members.linode.com [172.104.248.44]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id A28E1C03; Mon, 17 Sep 2018 23:01:33 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Philipp Zabel , Sasha Levin Subject: [PATCH 4.14 037/126] gpu: ipu-v3: default to id 0 on missing OF alias Date: Tue, 18 Sep 2018 00:41:25 +0200 Message-Id: <20180917211707.198115795@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180917211703.481236999@linuxfoundation.org> References: <20180917211703.481236999@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Philipp Zabel [ Upstream commit 2d87e6c1b99c402360fdfe19ce4f579ab2f96adf ] This is better than storing -ENODEV in the id number. This fixes SoCs with only one IPU that don't specify an IPU alias in the device tree. Signed-off-by: Philipp Zabel Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/ipu-v3/ipu-common.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/gpu/ipu-v3/ipu-common.c +++ b/drivers/gpu/ipu-v3/ipu-common.c @@ -1401,6 +1401,8 @@ static int ipu_probe(struct platform_dev return -ENODEV; ipu->id = of_alias_get_id(np, "ipu"); + if (ipu->id < 0) + ipu->id = 0; if (of_device_is_compatible(np, "fsl,imx6qp-ipu") && IS_ENABLED(CONFIG_DRM)) {