Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2372885iof; Wed, 8 Jun 2022 03:40:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcitTVkxhSflHRJiVpz0qY8hlE3WpjM8kCiuN04m5RMkcN9j4EBYGNIPs4b2IflXcPI5rd X-Received: by 2002:a63:f453:0:b0:3fc:7939:9654 with SMTP id p19-20020a63f453000000b003fc79399654mr29433013pgk.341.1654684830068; Wed, 08 Jun 2022 03:40:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654684830; cv=none; d=google.com; s=arc-20160816; b=ItwJcxOoIfxvW1KEHwLRS91xFfklbXbIpACbMZmyWyQ3KYZmdG948m7f5kvyt373zx IDmXd7p/Spi1IG4AmIVRG0qQkrWfAaAYDAezg3xl59MoM2eOmQenpXUOfYMrrHVHisVx KkAat4Q2fBirWZ4zqkgxCVFXrGmGcmAcZCFS/hIAVrz5aczZhd294h0UPzpHclqrqzIr EKtdmVOQGbTTL6MCuJlApH2XbjrnkCzk0XzKlqyzAsUPOUZfbSVIvhcnitFUmjxMcKQN aSkWBlPLT14+LfiPX8HIN7QeBk8g6iilIocggpcseNfQPRfHf8lfC83PZWUGXOSGvTa7 LVug== 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=1HCnyXhOafzmcP69v2HLalUicns4RO/ZQ4qvjS6XyGk=; b=MuZQlRsdqIPCkd8VQIHxxMHbHANNFyWOYTW+HkrXAn+QgyvPWjexgXtBATSgWJtfeP 8fakRjz0KlwerWuf0GF0iASiesLAwaH/Bv9CA94c9ItorTSdAtj6KuLQZvMaZokcg/CG 1s0kwKY97+1CFz8zIU8xEIkvIAmkwmVXyngBWH7E82EW0sXhbaESpyrcQNzzpdlCeSVE KxC/yl8p4sq7cr97RwIko59Nfh7xC/KKVKxyWRmI791bXeQC7wQvIVXMjOP3TZBA0TPs D3Y1olfXtzQElFrvawYADSjiiU4FdV1XvqG4x+vnPB9BYOaKTQpY+HxRC/e5YlWeSQw3 DxZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=TKlka2JW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q23-20020a170902b11700b00167895f9696si8339972plr.210.2022.06.08.03.40.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 03:40:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=TKlka2JW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5720E2B4B08; Wed, 8 Jun 2022 03:07:26 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236209AbiFHKGW (ORCPT + 99 others); Wed, 8 Jun 2022 06:06:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236133AbiFHKFv (ORCPT ); Wed, 8 Jun 2022 06:05:51 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7809B19592F for ; Wed, 8 Jun 2022 02:48:41 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id k5-20020a17090a404500b001e8875e6242so7091045pjg.5 for ; Wed, 08 Jun 2022 02:48:41 -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=1HCnyXhOafzmcP69v2HLalUicns4RO/ZQ4qvjS6XyGk=; b=TKlka2JWr44ssLLTx/ABCtjfqthwug/PJ8osEPhlEiu9s3s0R2eFiNlLU2VVBCK2oY spEI6IcIC0Y7RuS5XIz/7AcpSgMzg9RJ+pNYuGhUAVQ+QcbzhgLC4+gLDblo9s8kXDwj LwKR6/SQt8R+YXpVbDMufrMBVQbFsJS6qxt74= 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=1HCnyXhOafzmcP69v2HLalUicns4RO/ZQ4qvjS6XyGk=; b=3S2l9R7VVrsBO6E3WXyWckl1XmJYU8A5xPsW2gR011ZaHSE430bE1TPKF9pTHPwSJA Zp2Ja/p70KcU2MFoLxbPfVkftydU9YjYVWN2USC1puoyDHd9R/zg1cNoNT6ndzAD0ehN rz1D4kdJifQEZN5QtbWiVG7lgnrppfUWaRvVQDLn4ek2pEOZGVNR+7mwiZMTBA4eXRaJ Ym6FhOfHk6snH43nv2t38XWLc3bkfKRnJfKE8PiQcDbgDbuFIJ5BQtPjEKukmBoYy1tS 8nShIKxwU45IqgPPm+JfkjNmNDw8HlUl+9oAfdXK7Z8sL9iZkudvaD0JPbT+GPdAo0zN 9Pyw== X-Gm-Message-State: AOAM532YVqv3jBE0XlwtJg/mRwBGznjqERO4tNaFhVwPDvtZZQrC6Vxu IHtzpRviO1I3YS/Ldbg2sf41oQ== X-Received: by 2002:a17:90b:1d8e:b0:1e6:74da:97b4 with SMTP id pf14-20020a17090b1d8e00b001e674da97b4mr37453886pjb.147.1654681720998; Wed, 08 Jun 2022 02:48:40 -0700 (PDT) Received: from hsinyi-z840.tpe.corp.google.com ([2401:fa00:1:10:c46b:e7b1:f6c8:5eb8]) by smtp.gmail.com with ESMTPSA id t10-20020a17090a950a00b001e28e80a8d6sm13584038pjo.38.2022.06.08.02.48.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 02:48:40 -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 v6 6/8] drm/panel: ili9881c: Implement .get_orientation callback Date: Wed, 8 Jun 2022 17:48:14 +0800 Message-Id: <20220608094816.2898692-7-hsinyi@chromium.org> X-Mailer: git-send-email 2.36.1.255.ge46751e96f-goog In-Reply-To: <20220608094816.2898692-1-hsinyi@chromium.org> References: <20220608094816.2898692-1-hsinyi@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 --- 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 ba30d11547ad..58d6798c25ed 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