Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp155562iol; Thu, 9 Jun 2022 00:40:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwULXv89VX8gV0ei9JflNC3TvUvGyEVgvOAdhEPRwNrf19EqcZ8aef0B9way6rHlqGXRwaZ X-Received: by 2002:a05:6a00:1acd:b0:51c:795b:860c with SMTP id f13-20020a056a001acd00b0051c795b860cmr4137183pfv.16.1654760450605; Thu, 09 Jun 2022 00:40:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654760450; cv=none; d=google.com; s=arc-20160816; b=kfwqpxU5xLePFpnZjDt7W8XRAJO3RY3xnPmBM43n/brKPDiGCJmxKBbfptJlifYyip dHLY8NVvvUASk1hHlvsYbDw5DYpuAgnuMD9BG2Q8YknAsyg53dQj3t3Rw+AICGdibr3R lHHg45tHsRf+fM3lgbMSR0iIVoHF2zV07QIVf5dcaSEQsLpH9qPRpvNWNynnBehrVEOe 8tbgt6HyuqnlGO6e18yw41RwshKf/QQjW1HTgWIe0tB43ttuEZ4wOwDS+1ZRKSTrySZh 7KXha2YXj3YJdR2fFUjJYBSKvddJrwYdlt4reapWScPaST583yW577xXzr3lUwzMsTTr XH5w== 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=K7MRkR8auhgUPzxY/AhWyDzJkPMHJW4gIp7+t1KlPCE=; b=FYUPmzi7Gs44Zlcf5Dklzk2u3MI+05A1BqSqM73e5TG0tm6n9zzvyc/bcPCnIgHF7m wx9Pxc2EyawRfpbq1u3YF0SjfXt9IDz5Fl9zsbW6Vflqypm6/MC5MVuhaWfwQSUG90JD 8uuavggU0N0sMmadotMIXShcxlPqXMhgEILHyLpzKdAjlxgosJQ4+lLmoirn0ZcXxnHV D74jKC7PxgyXmXU9XxeazvsxVMpfOvFyG7yveNPq5ofFVeL+D7NsJnG0UJB8Pz6unr6j t2mPES3yux0zDGRfqBmopDdY6ZKwYkLjolZg9Lby/RDaJeFJU2aBi0URkmsOdU95POKh i1pA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=l7ZtrVUB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b7-20020a170902bd4700b0016184e70124si29417404plx.192.2022.06.09.00.40.38; Thu, 09 Jun 2022 00:40:50 -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=pass header.i=@chromium.org header.s=google header.b=l7ZtrVUB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240349AbiFIH2Z (ORCPT + 99 others); Thu, 9 Jun 2022 03:28:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240168AbiFIH2B (ORCPT ); Thu, 9 Jun 2022 03:28:01 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D34D1156B7D for ; Thu, 9 Jun 2022 00:27:58 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id e9so10110893pju.5 for ; Thu, 09 Jun 2022 00:27:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=K7MRkR8auhgUPzxY/AhWyDzJkPMHJW4gIp7+t1KlPCE=; b=l7ZtrVUBq2GYXh2+SH235Ub+vP7lWLaHmSegb5FpWeD2UBMVxBbbSg+yfXe8Ha0sHa sRrJmsQrI/ZCdxQ+/mkSj46cerzBPD3JKq3Y5+z0BBzUgbEQ/2VS82VzI3LUsJM4QZbp QiY5PgrIjbT2MZf10Yl5LRotp6JHblUn1MP+c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=K7MRkR8auhgUPzxY/AhWyDzJkPMHJW4gIp7+t1KlPCE=; b=YFR6AqQGvzj96AU+i2ELl92y/CDvYx8TwgHXtjTsyrf3jjjWFBbQOaqcK5vdu6WtJQ OOWotb2dSiArStPKA8fTvu01Ldq4Av66jfM9Y3rGKRT1s95b6iTakbkjqyiDWqNTt82H N4P+yKAuBgiC9P8JM810wxn0MJU314M3rd+XZJ7TE5wIeSNHkRencLsWci9cyrbpcskt mssr8fPqb0I+j0IIxewiIDcerDa7FZBIO/uj7sfMc59blTbWZErCWYcoJHPCN3JTIv28 3aMz0gwAg6nMqdu5q0SPdxC1J4eG8qIXCU7fBzWEBUk2seypmmZNgKTwGOBwEWB+cMxW sUYg== X-Gm-Message-State: AOAM532picc8PSrPRRa19zIVzksBQJXEoGMEbdjvi50x2ESi8F7hbWGe 2FoqTg7B1TyyQLMtM3kc3C0IzA== X-Received: by 2002:a17:902:74c3:b0:167:6811:40 with SMTP id f3-20020a17090274c300b0016768110040mr25200983plt.120.1654759678228; Thu, 09 Jun 2022 00:27:58 -0700 (PDT) Received: from hsinyi-z840.tpe.corp.google.com ([2401:fa00:1:10:5119:d95b:c6cd:77fb]) by smtp.gmail.com with ESMTPSA id p16-20020a1709027ed000b0016403cae7desm15312221plb.276.2022.06.09.00.27.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jun 2022 00:27:57 -0700 (PDT) From: Hsin-Yi Wang To: Hans de Goede , Sam Ravnborg , Stephen Boyd , Douglas Anderson Cc: Thierry Reding , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Philipp Zabel , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, Rob Clark , Rob Herring , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v7 6/8] drm/panel: ili9881c: Implement .get_orientation callback Date: Thu, 9 Jun 2022 15:27:20 +0800 Message-Id: <20220609072722.3488207-7-hsinyi@chromium.org> X-Mailer: git-send-email 2.36.1.255.ge46751e96f-goog In-Reply-To: <20220609072722.3488207-1-hsinyi@chromium.org> References: <20220609072722.3488207-1-hsinyi@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 To return the orientation property to drm/kms driver. Signed-off-by: Hsin-Yi Wang Reviewed-by: Hans de Goede Reviewed-by: Douglas Anderson Reviewed-by: Stephen Boyd --- drivers/gpu/drm/panel/panel-ilitek-ili9881c.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c b/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c index ba30d11547ade..58d6798c25ed8 100644 --- a/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c +++ b/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c @@ -853,17 +853,29 @@ static int ili9881c_get_modes(struct drm_panel *panel, connector->display_info.width_mm = mode->width_mm; connector->display_info.height_mm = mode->height_mm; + /* + * TODO: Remove once all drm drivers call + * drm_connector_set_orientation_from_panel() + */ drm_connector_set_panel_orientation(connector, ctx->orientation); return 1; } +static enum drm_panel_orientation ili9881c_get_orientation(struct drm_panel *panel) +{ + struct ili9881c *ctx = panel_to_ili9881c(panel); + + return ctx->orientation; +} + static const struct drm_panel_funcs ili9881c_funcs = { .prepare = ili9881c_prepare, .unprepare = ili9881c_unprepare, .enable = ili9881c_enable, .disable = ili9881c_disable, .get_modes = ili9881c_get_modes, + .get_orientation = ili9881c_get_orientation, }; static int ili9881c_dsi_probe(struct mipi_dsi_device *dsi) -- 2.36.1.255.ge46751e96f-goog