From patchwork Thu May 13 11:45:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quanyang Wang X-Patchwork-Id: 12255675 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DD3F6C433B4 for ; Thu, 13 May 2021 11:49:59 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 64D4A61176 for ; Thu, 13 May 2021 11:49:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 64D4A61176 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=windriver.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=BErzfrg7iixYXy7fUaNQ56gNSg5+zJea1LMGh7GZIf8=; b=HGkHcpRgAnEbg9OacVc7foHazi Sj1gwpG3ZzALPZqPYSK96/YTodANP02vtBXmn2CwGWXTyYeJy2w9It+E+eI1VcFFvFtcpTLM/RpJ+ 766ihRz2iHdUYPKcDGP5TQUl46mxNWCEdzJf8qdpIhSIEoofL3fasTbD/Ijsv/0+Ah1kzvroKR/f8 FXd9g9AgMAOn8j+ZayDJw99jqD/DmMGqS7Cp4sgztY2+lufo3Tzv+T38QUx8Z9kfGxZ9t93irogQy +TRDqkA5pa2BA7XnAk+l1shWPloczosxWXEDUYTbwHyUgTGVyEeYJ5H/bSfQxripsA/Fn5ieGDscy 4a/AJsyg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lh9oI-005Rco-5H; Thu, 13 May 2021 11:47:23 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lh9oF-005RcK-FW for linux-arm-kernel@desiato.infradead.org; Thu, 13 May 2021 11:47:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=MIME-Version:Content-Type: Content-Transfer-Encoding:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-ID:Content-Description:In-Reply-To:References; bh=pyUhD+O496w+NzKlSXdXCrbR5UdX56y+UhYPQyKUgsk=; b=LGvQtHbEwBzB8vqKuL5BlljN0x 3SAOsXX5cWTATgfPzaft9fubA7FlC+drs8RE120jlgmMEexoF8wqDSoJnX6e1RJxCThF62ahE3ryI 0lYSa1+pTttezOEH+Bb4pmYlFDF2lFt3fp0aBXCWxl0mhY8KMaM9jmPvT3h805S++5QezAPJH8WOP I5lBHRLAf2fLvLmVJMJJ9qRdMH52eHJR36b6KtskSFk7GtaGRfXQX6IjxP/R4VJXaxEcZ89zIWIEV UcA5vIY9bprEguRDTa2Fdz09rLPHx0dZLXjH+fxdYFYit4FXg/7CQ86p/U9j28AEQ4D+eNBLp6eTn kjJkbbvA==; Received: from mail-mw2nam10on2055.outbound.protection.outlook.com ([40.107.94.55] helo=NAM10-MW2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lh9oC-00BDKl-Uu for linux-arm-kernel@lists.infradead.org; Thu, 13 May 2021 11:47:18 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hmtNCfcG7JcYffjUWFbovWLr11y/6kJX3W07Yu5iwT1bM+hCLS+IHrABNEcDh7rliaOb8C80OzzNc8LxCYVXMMJobfLWZi+buIhVS3XN+pNPnex99ryWadkFu3OO87ZmfbpPu7507+fpCp3h25r9ouOI4LwoxPr7GkbwF89A0+3mQn1bELVaWsWBJofycsuOYS0kiL7wRFr/YWXA2Fi4r/CAmeV5rlRTfSvlMwkUE/aNaQWhWarBQUpyoK1fgp5giif/1lj8fkfTvy6iRc6Zm7KTn+0qZNvSqhndiOzv3B/Mz5YIAFY16AkHMTe+vmnIZMLDbqP21mCfBzgHjFC/NQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pyUhD+O496w+NzKlSXdXCrbR5UdX56y+UhYPQyKUgsk=; b=KpySK7DE5NngDqLKKde6349IVnBIPiUG2YexHiyiGN0o5o92R6gSaCfKAbnPVDby2dU6PKUu0QZLV5UFksvxFnmX3Kyo03+EcUehsWoO2vQtlv5oxtZBzst5GBX4YZaF5uOZMiJ6l5lXKtp2Q6PMR/sXr7KchNCWz5j7V55VuSXOe96tRNSYmJ12wx8QwEgUW1958YVSXelYlDT78IABQmo/c2Am9wBaw9qokGJUn6e1K4dAmxe7xph4+8/Y5qmwcuCOOAiGiU7uybFLySB6Y9D12Ut48tdu/MdUTsWTxk45up50bfoK8l/AqZGYt9g7rFAvp7NM9GvrpC0xh7tBDA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=windriver.com; dmarc=pass action=none header.from=windriver.com; dkim=pass header.d=windriver.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriversystems.onmicrosoft.com; s=selector2-windriversystems-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pyUhD+O496w+NzKlSXdXCrbR5UdX56y+UhYPQyKUgsk=; b=kVAF3905EdH4L8jmX9kFFtLvmw8bPClAjrkQVUvVBxTcpgxm8UFjkbqRNnP3SLKb5M1mQlOS03TYlTNl3+GZFMDVJzoaMrNAZaoV3iXImfRtHNcvUXBpDtZaUs3SUAJuEZw/qwIlrSdEn1TRmEF56sXQITP/r5AaRINu9WW68n4= Authentication-Results: xilinx.com; dkim=none (message not signed) header.d=none;xilinx.com; dmarc=none action=none header.from=windriver.com; Received: from CY4PR11MB0071.namprd11.prod.outlook.com (2603:10b6:910:7a::30) by CY4PR1101MB2344.namprd11.prod.outlook.com (2603:10b6:903:b4::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.25; Thu, 13 May 2021 11:47:12 +0000 Received: from CY4PR11MB0071.namprd11.prod.outlook.com ([fe80::f45f:e820:49f5:3725]) by CY4PR11MB0071.namprd11.prod.outlook.com ([fe80::f45f:e820:49f5:3725%6]) with mapi id 15.20.4108.031; Thu, 13 May 2021 11:47:12 +0000 From: quanyang.wang@windriver.com To: Hyun Kwon , Laurent Pinchart , David Airlie , Daniel Vetter , Michal Simek Cc: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Quanyang Wang Subject: [PATCH 0/2] drm: xlnx: add some functions Date: Thu, 13 May 2021 19:45:38 +0800 Message-Id: <20210513114540.1241122-1-quanyang.wang@windriver.com> X-Mailer: git-send-email 2.25.1 X-Originating-IP: [60.247.85.82] X-ClientProxiedBy: HK2P15301CA0015.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::25) To CY4PR11MB0071.namprd11.prod.outlook.com (2603:10b6:910:7a::30) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from pek-qwang2-d1.wrs.com (60.247.85.82) by HK2P15301CA0015.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4150.8 via Frontend Transport; Thu, 13 May 2021 11:47:09 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fc9e31b8-e236-42c6-a3dc-08d91604d8d7 X-MS-TrafficTypeDiagnostic: CY4PR1101MB2344: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gYSsh0Irde3sUDLvB2C6sDk9ozJ/+toQfr9aQ7ITQIeCvhnB7bPLsRziueSCVU+rcS/tIoHHEwydiVG2iQAmay3IxodCVBjlRQu3GtACnGrquZGBj3seFobBmvfw8QQDUb5UAm5yV/rRgtS70k8IvMXLXHPj1WEYnqmdv1EG8GG9f+V6XvNiOpg/wR74M3oHyMxMwLiFBLqFHgGrXrWfW1wNYE5Me893CMAACV90EtMdx4l4GJwTVIMFEj0u1QBkA9mwbZNrVlNV6qKuHUmPTvKKrshSWZXRV0xPVq/u35HfoZPjleXQWs4TUGHq6x/2OWwbB2zBWHxPof8QeNwv3045j1kHm+0mLHFAU07MPPcZcZubuiX+luO3rrvCWrE8YYz30oXrpY8M4E1EvStfSqHKFjzwvFw7gfYmAk7VbQrVaD0jlci0IekiNMNnq1RzC4jSJHIsWEj+L4dGOLRMur/BF+djGzfo5JzGWSp+fI3feYHAwuNV4t1QaT/KryWGlv0OZAIWmegi5r/5EhZHJJPFO1rEuS0XSYYK/rcIQ2ATLZr3x7ZFzLm06gM75p7UeelMCXndQ+zYnjox2Dg/XnwRSldZut2EFVFTrfTCjmX+gihLbQ2gPQzwv8LQG+QF4lfU3uyGGJZu2bJkcyqIEw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CY4PR11MB0071.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(376002)(366004)(39830400003)(136003)(346002)(36756003)(86362001)(52116002)(38350700002)(38100700002)(83380400001)(2616005)(6666004)(66476007)(66556008)(66946007)(2906002)(4326008)(107886003)(6636002)(6512007)(110136005)(316002)(8676002)(186003)(6486002)(1076003)(956004)(9686003)(16526019)(478600001)(26005)(4744005)(5660300002)(8936002)(6506007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: xOdwRwqtvzjdEtMmXJGVB9c5eFVjFATHW5joZVmfogbfSY0K1iVdClMEen+Nwh87dHdFFaZoJcz+zdukY4/97BItA9gdl2wmmAWFEL+8sTw/g9m8G1KXONB8b3FJdNOCFelt6BKkmn3VjbGdno0qI39A+LKBqatH8YLFOZBQSdctMCKwcs3NyVJ0JKwZ3loN5pMMRVUUBDNJvGAa3q/Zb66XNJPmdW4ZcNqQGnJ0LMx8SpU0JPLCaJ3+yz6vonDvIADIIC8mPVJbixtGbdgPcbVmWpf/tXNVkzPoC9LMcb1WsIQHOAKgHvH/72DF18jQPzjEMVwp3noZlFtcZi4Gxe2Giq2jt5hUsEfm2a9FVDqmjmNAPCE4R+EcLgljmocChNDevrc8FkRXFGRluxgyoPDEUizV1i/G0bvdQrYMKPgg4IsBbOH9Ya5xHCVQ5OMiaQULtw6k6OcZnSMp9n2H+axNiZaeCJUECsIA/QcseJoFzrbjFSgetqLmopSGkUOBea9k9ieOKN88HHAROqrya0bpI8oRzElgIv35mRzf6G+/ujptRauuzBvM7Y0hJxdMepnoDMKZcY6VMEaPpkDWKTpP7cZZ6W77jVvZX+cDlWUl3NVuuN8y/OKKFnC3eHkLS+IbxsXT1OC5N/XZ7oimIqqusxC+OKYH7GiBZLv4iy1hzDjkMoKwwoMabtp5P9lt/jgCQKm4FOrEreVWgto5ViBQUTbMZr8h3VNpWCoC3XZdopbWsKuL5Skt9hkpT/v2hEtSgZ5K2mvn6Jmt4USao1N3CI+UUDjUu6dP6eiPBwp2EAhUvn99K1Q2TNK6x0cnuhn7Y/4jO519ks+sApnCGtv2g/V8l2D49D6eD4ubakCFH9q/CGK1nVAqDM73iYc7IyKAtFaKIRvTNTjtw1QReYxfaFOClnsc+dozlnk4f4V2f2n1XbMlHWJjXuk7PclrrQlcO9n/Lwux3ib68wi0MtNaKc6VY6yu/bg0XQiJ8pM0JKPLdjfasbsjLKYp+QNf74h9DF017wwdla5lFosRG6x5QPEvkusq9dJpql6BNA2v42Bmwqc1tkmoOpNo+HfDVu+VukqEo907Uv3zlsAaxwIpxGEY2BMZvKMu7irZBCXQ1JPLbpIkysrDLA1AGSm8OFnpTs7GCwxh2Q5wFL33ONjqeQWwIskVbogyd1YBS+TcDnkPKXTaS2l/87dm08/2kN4JKBbVJ9V7q7pA0pZ0cUyycLbH5ojLcPXthpuh0NMNlTpLM2KeimspkJpZQXcAK0QQQwPyi4fedtv27S1Jrtc+v3NRaVEjK6o886qmAZnwkfrYHR1+heIMdgsN/fwd X-OriginatorOrg: windriver.com X-MS-Exchange-CrossTenant-Network-Message-Id: fc9e31b8-e236-42c6-a3dc-08d91604d8d7 X-MS-Exchange-CrossTenant-AuthSource: CY4PR11MB0071.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 May 2021 11:47:12.6794 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ddb2873-a1ad-4a18-ae4e-4644631433be X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 9HcnuzBfk3MeOgQCkcB6yfGtdTK0xMMWfJOU2wqXfpoQampAty369kDu48jtTleSnCGCxIrPIFMthxGYyDgnnmkqGqitx6IS2pUVWB0+Ia0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR1101MB2344 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210513_044717_083082_E5E81195 X-CRM114-Status: UNSURE ( 7.84 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Quanyang Wang The patch "drm: xlnx: add is_layer_vid() to simplify the code" is to simplify the code which judge the layer type. The patch "drm: xlnx: consolidate the functions which programming AUDIO_VIDEO_SELECT register" is to consolidate the code that can configure vid/gfx/audio to output different mode (live/mem/disable/tpg) in one function "zynqmp_disp_avbuf_output_select". Thanks, Quanyang Quanyang Wang (2): drm: xlnx: add is_layer_vid() to simplify the code drm: xlnx: consolidate the functions which programming AUDIO_VIDEO_SELECT register drivers/gpu/drm/xlnx/zynqmp_disp.c | 191 ++++++++++++++---------- drivers/gpu/drm/xlnx/zynqmp_disp_regs.h | 15 +- 2 files changed, 116 insertions(+), 90 deletions(-)