Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp945688imm; Tue, 5 Jun 2018 06:58:54 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKAu5HyqTzuv3i4hpeFHA3eddL+g+6VlNkcKcr2c4C36PW4VdeyxCrEOHv0x1cmZfvfXiZD X-Received: by 2002:a17:902:900a:: with SMTP id a10-v6mr8381162plp.41.1528207134281; Tue, 05 Jun 2018 06:58:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528207134; cv=none; d=google.com; s=arc-20160816; b=T6awA3DplirKz8llJ8wmmvIPX3m1r/STqPHAJUkZFuw/KccFvS8vL0p8Cw4nMyqlCw VE5Qlfm7yWi0pFuHn2iwSoVD2hJV2Z1Qn3IDokAMMQ5tw02fWV8EssTv4L8bC16LT4LV f5fE8VuLPHnlTVRbSQO6Ii71FUYRdLBqoEPi9RGZlx9p4ueNxM88aeuSGyzxr6SNzLWP KhR1DgG835gUIx1dwNhBHERrXz1MPl7Q7EtSlcEindWY/0RY35j1yZ3/ShPn6S/1wxFT RCEv22jv4P/wt/a0/9BkOjrWbxOm22jqo55/3DDppLkc3/Y58FXPgZTFMjoN63Racvvl kCxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=FbGnCPCd4f0EEpKXYU3BzijCBHjlzxwT75Lptw4KDjs=; b=Rp6OElNAmWgYMce34s79qwLyP9E0KLkibVYRbGxr5kEbugfXhM9caGCnj+egXmY2Gp J3lE/7yl/ltTl/cET2aL5b69Bk1K9wWjjIWI4shGPMh721lFDrwZUE3dEMpgAlm0CS/a w6XhYqBigITtAZFO4HRdP9D9Qum1mZi8BIcJiHrQ0cBtLOH2Qv4OIZ7NI+OYAA2/aLM9 2RiM/uK9FNJhXnrGFvdxqHOMJ7DKx4klN+69SGE0dXyM2vrnpV+DD6HEnKPfHkGcu+7h qSBK99YhVQ4FLxwUgjVQ2iMeb1NSyQyVQD1yEU3VCpTm1x4woFA7zz7VKKPHICLNrtVB gb2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TYqEEIoG; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m3-v6si48879506plt.71.2018.06.05.06.58.40; Tue, 05 Jun 2018 06:58:54 -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; dkim=pass header.i=@linaro.org header.s=google header.b=TYqEEIoG; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752075AbeFENyW (ORCPT + 99 others); Tue, 5 Jun 2018 09:54:22 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:39460 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751870AbeFENyV (ORCPT ); Tue, 5 Jun 2018 09:54:21 -0400 Received: by mail-wr0-f194.google.com with SMTP id w7-v6so2537325wrn.6 for ; Tue, 05 Jun 2018 06:54:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=FbGnCPCd4f0EEpKXYU3BzijCBHjlzxwT75Lptw4KDjs=; b=TYqEEIoGC2dHZ0R/km+xo9vP75MsVo4RUNXNl2l+yAwh4qkpT13C+2q9kT/Ajtsz3U oq+LKyfwG0umACSmykNo2ajCAFz7hL8HHtcRamxL232bvaLvjNDPTAB+BGQLUnI2j5g2 sH7gzNPocK7tCIBKK1T8tJN2603/xOoH35iQk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=FbGnCPCd4f0EEpKXYU3BzijCBHjlzxwT75Lptw4KDjs=; b=SXItK5bTQYzCTF88a0r3kjupDZ55tuEH2UCkTOcxEdMAbFn4bPMbl4OuJs26s/SqpE 9E9tyEuL2FxBto9OnSpTbdY5Ga/G5qOFYu/MSEf7V6I9gbXfpU2BhvdBOCyi177F409b gGS8RUbIPIc1cSEETkBn1APvDget+vX8yLi7yhL0Pq2i/LWblig3+6wa3k6e4qi01HsP m6duiuXWnGYv4e7++zgRrlnYfDQhv7u3WNMT8DmwT/P3Ij/Nssefvls6hIFqPlpauGyi nWaSNJEaIJ4Yy1CQWwp55OArkRLPDF0p1wp1yfhz/XGkkOqPMxJVx+NNt645wFLQwuyd NN1Q== X-Gm-Message-State: ALKqPwdwcy+4lgQtoNG/5jzUIzUo1yLsEkhXx6OyuhKFv2Q12OWA3KV5 3T9Gaq4thBSZWL51AE/z+uYNtg== X-Received: by 2002:adf:a6ca:: with SMTP id t68-v6mr15575094wrc.215.1528206860564; Tue, 05 Jun 2018 06:54:20 -0700 (PDT) Received: from lmecxl0911.lme.st.com (bol62-h02-176-179-166-238.dsl.sta.abo.bbox.fr. [176.179.166.238]) by smtp.gmail.com with ESMTPSA id o53-v6sm76797785wrc.96.2018.06.05.06.54.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 05 Jun 2018 06:54:19 -0700 (PDT) From: Benjamin Gaignard To: gustavo@padovan.org, maarten.lankhorst@linux.intel.com, seanpaul@chromium.org, airlied@linux.ie, vincent.abriou@st.com Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Benjamin Gaignard Subject: [PATCH v1 0/7] Remove debugfs from sti display driver Date: Tue, 5 Jun 2018 15:54:00 +0200 Message-Id: <20180605135407.20214-1-benjamin.gaignard@linaro.org> X-Mailer: git-send-email 2.15.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks to the various atomic_print_state hooks in drm structure all custom debugfs code could be remove from sti driver (~ -330 lines). This patchset does two addtion in drm core: - printing normalized zpos of each plane - add "atomic_print" hook in encoder structure to be able to dump encoders at the same time than the others elements All other patches are implemeting the various hooks in sti driver. Benjamin Gaignard (7): drm: print plane state normalized zpos value drm: add hook to print encoder status drm: sti: make planes use atomic_print_state instead of debugfs drm: sti: make connectors use atomic_print_state instead of debugfs drm: sti: make crtc use atomic_print_state instead of debugfs drm: sti: make encoders use atomic_print_state instead of debugfs drm: sti: remove the last call to debugfs drivers/gpu/drm/drm_atomic.c | 16 +++ drivers/gpu/drm/sti/sti_compositor.c | 16 --- drivers/gpu/drm/sti/sti_compositor.h | 3 - drivers/gpu/drm/sti/sti_crtc.c | 17 +-- drivers/gpu/drm/sti/sti_cursor.c | 65 ++++-------- drivers/gpu/drm/sti/sti_drv.c | 50 --------- drivers/gpu/drm/sti/sti_dvo.c | 60 +++-------- drivers/gpu/drm/sti/sti_gdp.c | 196 +++++++++++------------------------ drivers/gpu/drm/sti/sti_hda.c | 75 ++++---------- drivers/gpu/drm/sti/sti_hdmi.c | 132 ++++++++++------------- drivers/gpu/drm/sti/sti_hqvdp.c | 149 +++++++++++--------------- drivers/gpu/drm/sti/sti_mixer.c | 89 +++++----------- drivers/gpu/drm/sti/sti_mixer.h | 3 +- drivers/gpu/drm/sti/sti_tvout.c | 162 +++++++++++------------------ drivers/gpu/drm/sti/sti_vid.c | 60 ++++------- drivers/gpu/drm/sti/sti_vid.h | 2 +- include/drm/drm_encoder.h | 12 +++ 17 files changed, 386 insertions(+), 721 deletions(-) -- 2.15.0