Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2708907ybh; Mon, 9 Mar 2020 11:21:46 -0700 (PDT) X-Google-Smtp-Source: ADFU+vs+9CGnWe63awnYdDxgXKqOVzHDh4ck5TXUZp2mQ9pyVbx90q9rsYnCUvuzziiF5YawHBFZ X-Received: by 2002:a9d:d0f:: with SMTP id 15mr7380994oti.161.1583778106411; Mon, 09 Mar 2020 11:21:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583778106; cv=none; d=google.com; s=arc-20160816; b=fq04+HqHrmjNqcYjl6OKlWxy8ps4R1A31BVet11TSCgoJf5eXYHzOfBhd2FdtSFmI5 2MTpIcKsQnbAjhiI2zbUv7m+g7w5Ta4HkFMu9oJIpBiWsWQOxh2hpYCZqf/ffGVY1Py3 STzBEg3xGLhfxj7eO/kSYQyag/bzQSU3bDrGRQwBr9ZLpaTl9ZaRitAvCNw7koFGS4xu YLRCY7ww48PdqCs8v1iQR0OESChTMpciFMWshsyMI456WSgCXiC6tUnbopehYOImtkX/ jzQGJPuQvHJTxVwsG4AbkT2uK0IQH/qF+BHB2TcONwdwPITJMp7Wxi4/lqbyIgeEVDsO dHyw== 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 :message-id:date:subject:cc:to:from; bh=88zyAAPNbOqqkdtNp9Y8UkkR43xrHUQNZpLhdM47AMg=; b=oVLOgUQImFI0hPZpA3YWMyTwaq7R6P5saYwleZ7LtLwNPO9V1H1o4oz9c8VhtIEmky N3n5iKdRvbWKPPUXE7tLjfsUWjk+2AWoCLbry44fbIL7Fkwuc1SzvjYrdkCH8wRPj0hg OsF+DUic+cu8Oc6UfquybkP2U3whBIGuYCwkIbbRQAO7dDuCkCVMavFU6DODzO9l6EsT 0e45RloZ4lCtIEjlJrvfsrnlke+QyJssHo3wuhQn5gAy9hkUoiyCHn6V/612PpXa1v4A i5QACzeDoPBntr6Ud4ig9/nfr2w7Q5jDoFkLtjA/5nyL6E8AP6SSKGnLPfQG5RQ6WewS JVAg== 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 i24si6817566otp.282.2020.03.09.11.21.34; Mon, 09 Mar 2020 11:21:46 -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 S1727669AbgCISTx (ORCPT + 99 others); Mon, 9 Mar 2020 14:19:53 -0400 Received: from muru.com ([72.249.23.125]:59454 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727539AbgCISTT (ORCPT ); Mon, 9 Mar 2020 14:19:19 -0400 Received: from hillo.muru.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTP id 9682E80FA; Mon, 9 Mar 2020 18:20:04 +0000 (UTC) From: Tony Lindgren To: linux-omap@vger.kernel.org Cc: "Andrew F . Davis" , Dave Gerlach , Faiz Abbas , Greg Kroah-Hartman , Keerthy , Nishanth Menon , Peter Ujfalusi , Roger Quadros , Suman Anna , Tero Kristo , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jyri Sarha Subject: [PATCH] bus: ti-sysc: Fix quirk flags for lcdc on am335x Date: Mon, 9 Mar 2020 11:19:12 -0700 Message-Id: <20200309181912.28645-1-tony@atomide.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit adb72394e2ab ("ARM: OMAP2+: Drop legacy platform data for am3 lcdc") dropped legacy platform data but we never added the quirks for SWSUP_SIDLE and SWSUP_MSTANDBY for lcdc for ti-sysc driver. This breaks suspend/resume. Let's fix the issue by enabling the same quirks for ti-sysc driver as we had earlier with platform data. Fixes: adb72394e2ab ("ARM: OMAP2+: Drop legacy platform data for am3 lcdc") Fixes: 23731eac9848 ("bus: ti-sysc: Detect devices on am335x when DEBUG is enabled") Reported-by: Keerthy Cc: Jyri Sarha Cc: Keerthy Cc: Dave Gerlach Cc: Tero Kristo Signed-off-by: Tony Lindgren --- This patch is against v5.6-rc series, it needs a merge conflict resolved for Linux next next is using -ENODEV instead of -1 for missing registers. --- drivers/bus/ti-sysc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c --- a/drivers/bus/ti-sysc.c +++ b/drivers/bus/ti-sysc.c @@ -1266,6 +1266,8 @@ static const struct sysc_revision_quirk sysc_revision_quirks[] = { SYSC_QUIRK("gpu", 0x50000000, 0x14, -1, -1, 0x00010201, 0xffffffff, 0), SYSC_QUIRK("gpu", 0x50000000, 0xfe00, 0xfe10, -1, 0x40000000 , 0xffffffff, SYSC_MODULE_QUIRK_SGX), + SYSC_QUIRK("lcdc", 0, 0, 0x54, -1, 0x4f201000, 0xffffffff, + SYSC_QUIRK_SWSUP_SIDLE | SYSC_QUIRK_SWSUP_MSTANDBY), SYSC_QUIRK("usb_otg_hs", 0, 0x400, 0x404, 0x408, 0x00000050, 0xffffffff, SYSC_QUIRK_SWSUP_SIDLE | SYSC_QUIRK_SWSUP_MSTANDBY), SYSC_QUIRK("usb_otg_hs", 0, 0, 0x10, -1, 0x4ea2080d, 0xffffffff, @@ -1294,7 +1296,6 @@ static const struct sysc_revision_quirk sysc_revision_quirks[] = { SYSC_QUIRK("gpu", 0, 0xfe00, 0xfe10, -1, 0x40000000 , 0xffffffff, 0), SYSC_QUIRK("hsi", 0, 0, 0x10, 0x14, 0x50043101, 0xffffffff, 0), SYSC_QUIRK("iss", 0, 0, 0x10, -1, 0x40000101, 0xffffffff, 0), - SYSC_QUIRK("lcdc", 0, 0, 0x54, -1, 0x4f201000, 0xffffffff, 0), SYSC_QUIRK("mcasp", 0, 0, 0x4, -1, 0x44306302, 0xffffffff, 0), SYSC_QUIRK("mcasp", 0, 0, 0x4, -1, 0x44307b02, 0xffffffff, 0), SYSC_QUIRK("mcbsp", 0, -1, 0x8c, -1, 0, 0, 0), -- 2.25.1