Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1820747imm; Mon, 3 Sep 2018 10:16:55 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbbO6fAsBzvtUX9uTES2jJM65dvXhe7eC2WfYh9HkNiq64gPT3KaNg3x5C2yt9qbSrIkRCq X-Received: by 2002:a65:4384:: with SMTP id m4-v6mr12690654pgp.265.1535995015395; Mon, 03 Sep 2018 10:16:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535995015; cv=none; d=google.com; s=arc-20160816; b=a+5v/sL4XCW2i5D5nKtAkt47x7BeBuZts3A5AwRAMcr3K04syMEzduqsafCWQWI+Ip k22dlTB9Ti95U01tBkBMjjx/KVgqn40v0x2nKSSQ2wS1dt/gZG09IOTCyaVBNpXTflj9 yu2i91BLOtpZd8QGj+iUOxKlE2bgVUXidOEFYTEwUVdgH+jFNJoKBuKPRgvY6t3uUpPe Sh2cW7Vvm+slFmIFe9g/iFIfi824/IezBmU+GP8/u4LvsM84rqSE+zWTBbjPFq8sJPpD hiCGp/jWojFUoJI7p43yn3z1rcfO5ENSc37pV1iDBVac2DNEJwkI4FBOYkD0oQtBMhKZ 8m5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=nCSWCrWojctTz+NqYbjFAKrLweGIweOIeZN0Q4kouLo=; b=y/zsH9nzbfgLoEUBhkIWKe3ql8OaXlCBQwPIJ8SjAgJRCiHWLuT/xvXJfa7bTzte1f CAByt/W5D6ZOr4R+DLcZv89qoqk3oebx7UHKP4UKyC7s/Lf6Rzaj1/RqL4GZPDLLDHEz xu1OtbndEjrrNwm4FiTcineCgM2g1Xd3q+aMDmvAr4MC8cv+iWGxDYLHDAkKupbd7RaF RQLQ70HGtMx3QzUVoDiw1TGBV3sl8mEU2hoUHUBZmYNnc3CD7AkK/LIvdmcGGLJcpc/n 1wZIk+BNZk2L1kAHp9aAepKkLO7qKoP+4Oo+0yelYOo1g51/90O11e3HMrxknYU8dJOG TFuA== 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 bj7-v6si16600631plb.320.2018.09.03.10.16.40; Mon, 03 Sep 2018 10:16:55 -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 S1729701AbeICVgl (ORCPT + 99 others); Mon, 3 Sep 2018 17:36:41 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:42418 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728174AbeICVgk (ORCPT ); Mon, 3 Sep 2018 17:36:40 -0400 Received: from localhost (ip-213-127-74-90.ip.prioritytelecom.net [213.127.74.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 6BCFCD06; Mon, 3 Sep 2018 17:15:36 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lucas Stach , Philipp Zabel , Sasha Levin Subject: [PATCH 4.14 013/165] drm/imx: imx-ldb: check if channel is enabled before printing warning Date: Mon, 3 Sep 2018 18:54:59 +0200 Message-Id: <20180903165655.680892035@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180903165655.003605184@linuxfoundation.org> References: <20180903165655.003605184@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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: Lucas Stach [ Upstream commit c80d673b91a6c81d765864e10f2b15110ee900ad ] If the second LVDS channel has been disabled in the DT when using dual-channel mode we should not print a warning. Signed-off-by: Lucas Stach Signed-off-by: Philipp Zabel Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/imx/imx-ldb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/drivers/gpu/drm/imx/imx-ldb.c +++ b/drivers/gpu/drm/imx/imx-ldb.c @@ -655,14 +655,14 @@ static int imx_ldb_bind(struct device *d if (ret || i < 0 || i > 1) return -EINVAL; + if (!of_device_is_available(child)) + continue; + if (dual && i > 0) { dev_warn(dev, "dual-channel mode, ignoring second output\n"); continue; } - if (!of_device_is_available(child)) - continue; - channel = &imx_ldb->channel[i]; channel->ldb = imx_ldb; channel->chno = i;