Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp632129pxp; Fri, 11 Mar 2022 11:07:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJwi8aCNUVT8v7bqlC7vfxQK1JWSlz6DqKqUu4TWb74m9HITpv7R9KcrpH0H20GzYYfeIORO X-Received: by 2002:a17:906:4795:b0:6db:7c4e:d2be with SMTP id cw21-20020a170906479500b006db7c4ed2bemr9151679ejc.682.1647025677907; Fri, 11 Mar 2022 11:07:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1647025677; cv=pass; d=google.com; s=arc-20160816; b=Y0OTlX6fJhEbieWtS4AYBCrAfh4K0lJ02JLcjlBSS1tK4h8zvOKS7uc/CYPJ8HMRwn dSdrMq+dpRoRvscgkfLSyaISaqAP0RihTXJsDF3/Pxg+fwrQGC06TWqGSCVJ7X/vV3Db dcC6yC3IuRp7hKO9tHxDBcLjDfQNzsF8XtlusIh2eP8ls0WzR/dutRn5MyEJgUfdFkm3 cCpH17ipLOmciF/CXS9+0lJOfYBeKZwiaCa8kEbXEWksl3P4XhrKhGHXzPxDBpwX1WxA yt89AlZO/0P+pPfwEpT2Jlsz0DWCjTp8U38hJZALyf9JxI7VMnsG1hQ4fWHH1zOqv/qL boew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=XrAza+H9OQauIgcpZ3DptTzuk6KsqPAa0/wBiYcBQJI=; b=CmwKKMJ+xSJfPw4D069iKB5RtIIrOIVmLcWUdI2BT+Xl9HsEP2weP7RbHBQzDP6OQZ AZiRUgRBUPo+Dzfjzq9rtePKvgY1+Qa1OmONI6laYg+HsEL8UnWmkgHqyqHZyuDnPker 9V1W4faEfmUY8En+KHsZnl3GjgQiH25m8hHjzM4zli0B8Ztj5Ti0LMFG24Wsxc33vQ3n 8I3/HVQ7MkutYWujhjCUy3W0U3HI7F/oAMUoh7pPIFE/oppdfGPY4lEVUER1YHil3CHC e/KtsyFRe7lbpOTTy9v/lcAaJNfct53DPWKdValqtpohAKN23dMiLZW+jVn/8G56mnv9 YWwQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Analogixsemi.onmicrosoft.com header.s=selector2-Analogixsemi-onmicrosoft-com header.b=P6ekXV1b; arc=pass (i=1 spf=pass spfdomain=analogixsemi.com dkim=pass dkdomain=analogixsemi.com dmarc=pass fromdomain=analogixsemi.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=analogixsemi.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d3-20020aa7ce03000000b00416702706e7si5302924edv.311.2022.03.11.11.07.29; Fri, 11 Mar 2022 11:07:57 -0800 (PST) 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=@Analogixsemi.onmicrosoft.com header.s=selector2-Analogixsemi-onmicrosoft-com header.b=P6ekXV1b; arc=pass (i=1 spf=pass spfdomain=analogixsemi.com dkim=pass dkdomain=analogixsemi.com dmarc=pass fromdomain=analogixsemi.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=analogixsemi.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345804AbiCKDAe (ORCPT + 99 others); Thu, 10 Mar 2022 22:00:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231809AbiCKDAd (ORCPT ); Thu, 10 Mar 2022 22:00:33 -0500 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2103.outbound.protection.outlook.com [40.107.93.103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92FAC69CFB for ; Thu, 10 Mar 2022 18:59:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i7ccDClAgKc9vlnKjnVSp6NRLUzYCMdFtMN9WCHaA1hfatDfdUlEsq5hgWzfboYq6ooAcJllYOrnhBmcslNNTimZSy61hJTzHm/os1TNxRMhe44Dh5IaPR8KxNwcxG3bk9rdK/ol6/LjVfmoveuoIb6RrXGe/hbKeyJLfWorDRXAfzHMVi9EduxUzmwX2Syg47uecUwH0+NiGTLMwk7NyY6x/vA27yOf5egrc7q2csKwdiRyzUzABeWeqUYiPMW1U/ftlnOzcohX5RPrt/5n5np96VKuCL9hYC5mA+sswqLB2w6+b3A7pPj2iETj8auw6NHGqLw7zYsyBi5HpoF7yw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=XrAza+H9OQauIgcpZ3DptTzuk6KsqPAa0/wBiYcBQJI=; b=D5GLJlOHwBUEQDdIOBut1r8YRrL2x8xjZrUAcUyzN1NKQu/u/vIWqrpTN17Lsprf1zCdWEUaQe2xEdbq3ySk0gRdo7NuAR+HU/rkcnoKsuzto6ZU5ciBdThkuCbZ3o4DjG8ct+suX/TbV5XxLXIssDIr8ix3QFqnRGyIG1xCJFR+ECUlitmt490faybfyp7wq5gb25u3v3J1gK1ZHjeXDJeCs6uIdYx4ztmBlZ1aoaflq57RoflXppc4MANm8u8pUvdLrTmYg5RVO3VMaV8eKSq7gSSM3LMa5i8YVdpBuTXBf7Rmk+2ZLF4fBb6c47j+nkwseVxnBTQEO7w5eVIqCQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=analogixsemi.com; dmarc=pass action=none header.from=analogixsemi.com; dkim=pass header.d=analogixsemi.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Analogixsemi.onmicrosoft.com; s=selector2-Analogixsemi-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XrAza+H9OQauIgcpZ3DptTzuk6KsqPAa0/wBiYcBQJI=; b=P6ekXV1b5dve+14Ez9rbPFDCsaVhpESMxDLLk+6jJXUx5nTVyGn5fTyMJiWVCoXi27wvw6sh5KdgWyt2+kZOBuwT8sk+qXd5o0Mi/Qr7fPSsckwQmtp1gYrMdklagioaewiGRf2H1XyQDIMN+1/EK7qRpczUprIyQpRglGGqmg4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=analogixsemi.com; Received: from BY5PR04MB6739.namprd04.prod.outlook.com (2603:10b6:a03:229::8) by MWHPR04MB1200.namprd04.prod.outlook.com (2603:10b6:300:75::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5061.22; Fri, 11 Mar 2022 02:59:28 +0000 Received: from BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::a865:6d10:c4a9:1142]) by BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::a865:6d10:c4a9:1142%9]) with mapi id 15.20.5061.022; Fri, 11 Mar 2022 02:59:28 +0000 Date: Fri, 11 Mar 2022 10:59:20 +0800 From: Xin Ji To: Sam Ravnborg Cc: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , qwen@analogixsemi.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, mliu@analogixsemi.com, hsinyi@chromium.org, bliang@analogixsemi.com Subject: Re: [PATCH] drm/bridge: anx7625: Fix not correct get property counts Message-ID: <20220311025920.GA1346668@anxtwsw-Precision-3640-Tower> References: <20220310091653.1298588-1-xji@analogixsemi.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: SG2PR02CA0083.apcprd02.prod.outlook.com (2603:1096:4:90::23) To BY5PR04MB6739.namprd04.prod.outlook.com (2603:10b6:a03:229::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6cf39a02-f025-4d84-389d-08da030b27f4 X-MS-TrafficTypeDiagnostic: MWHPR04MB1200:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: IY+YszQAW01f3Z+l0KO4ZBOu/5kI5LdbABTNB3oSUiVpyw+FsMWBBq8/KCRZTEyFYoqbHIC0a/87w5Ub7Ym917wpIRNv8pmTTrIKhp+pvKI8PgSzkQ1Ie5LmF4xOjgJrb0ZEGOH27UnUdExRj9J6yDKJdsDccgt2xGCuy0Q0idjUD7mlfWGToa/Wx3rRNKrqd+n4GLjG/tQ55Oz3ppmwPkMrUOy5RskZdTsENqYkWlMfpYqaTXoHEqdK9jMbjS97rwCoqUNILOPU+cKc80+f7CPIdLBCBHaOvHtUrwoGf36AI/jlnmAKAS6mPogiZN0ASq98n+EYAStzpBPMgaoWg3COETVo2qCPFa1CalVAtkWthfeu1fC2FMf7fqD7d4UXF2C/pmX4uEXdH96E/jadNXLmWu8KzJgME4MeG6qVSl2OeCCsOgjrWYEP0LP6Y6rDKURGX1L9guf7fQtoN79Jyaoe57I7nqHjF34wqO6r9b2C299chfXCaVq6QDnYBF0VXzl18WZSWq5LMdAVDY/NKAZyiLigkPyvR74CYXo5G5BeJ9Qvsm9QCv0hSIiscax3cqXFb1hZmLPn3K2te41Bg6QGQE/9UoxFQFrokpnCBLRB4794UYuPvU0WFC7a3kMGLUdjo0cDuCBckJMkuBQAYwkjL59dlhZKzoRzOVbcKjhOSnZ3+dUvHZTdGrdiTunks1W9kkYjcpGQke7xF72I1g== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR04MB6739.namprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(7916004)(366004)(316002)(2906002)(54906003)(6486002)(38350700002)(38100700002)(55236004)(52116002)(6916009)(6512007)(6506007)(9686003)(66946007)(8676002)(4326008)(66556008)(66476007)(86362001)(33716001)(6666004)(8936002)(1076003)(107886003)(508600001)(5660300002)(7416002)(26005)(33656002)(186003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?Zy6+8l14rm1ed/5/vxLMSe4AM9vp+lSF0F/jvJeycm9ti0eWPcmC8jsiMKi7?= =?us-ascii?Q?p23lTFlG+ExEjMze9ggI8NH8gHr+7kYr150KCj4IkVMrPQhP1DEgp+Obr6i8?= =?us-ascii?Q?p9HA0G0dcREBekDMkumrBEwbOhvNAOOSE7y84ckz8nQ/4yMpBa3oClFxrO/A?= =?us-ascii?Q?vTV9T0oQqtdPGKqvzt+v8RMLF5hFCVnTP2vjcl7NnrQV4Mw2pzqOuIV4vgZ8?= =?us-ascii?Q?5HcvGMbkGqmI11pqStqSh0VfqOurAUrDqsi8w9+vrgbhF0H1XoW1QFHZkqeq?= =?us-ascii?Q?9L0w/Mf77UA9L3fFr1NumUXOyrpZFGA8WcKNm2YfAd7ZyOnSvnzXTC4SdhC0?= =?us-ascii?Q?8XKsPYctzYFbg3RtJfv+wbrq2KMe6JY1Nt5Umb24eSlmykq16UIeNFx5Bi/c?= =?us-ascii?Q?k/E+aOFvN0NY9ijL8iNi7B3laQldq1J0qCbL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3q/5jyt5v8jHLnKwPQNrLp8DyfiQbv9wT+ZAUgmDRmT?= =?us-ascii?Q?EMx4w+7WPrqTXJGsSdJNwsbhW2k10C+DuSGqoVfKG+wKZKChmGorrzpzplvZ?= =?us-ascii?Q?4kYKqZUO7Uefd7hd2rx1R2FW+j71VqIO?= X-OriginatorOrg: analogixsemi.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6cf39a02-f025-4d84-389d-08da030b27f4 X-MS-Exchange-CrossTenant-AuthSource: BY5PR04MB6739.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Mar 2022 02:59:28.0729 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b099b0b4-f26c-4cf5-9a0f-d5be9acab205 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: gBOn88w6jrbmfpYhvJBrbWwxm3PYqZSkYz556yCpHIq6hmH7obStjtTzZtE6vhQMqGAOdVjdvupDjAvPcLonKg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR04MB1200 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 On Thu, Mar 10, 2022 at 07:53:59PM +0100, Sam Ravnborg wrote: > Hi Xin, > > On Thu, Mar 10, 2022 at 05:16:53PM +0800, Xin Ji wrote: > > The property length which returns from "of_get_property", divided by > > sizeof(int) to get the total property counts. > > > > Fixes: fd0310b6fe7d ("drm/bridge: anx7625: add MIPI DPI input feature") > > > > Signed-off-by: Xin Ji > > --- > > drivers/gpu/drm/bridge/analogix/anx7625.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/drivers/gpu/drm/bridge/analogix/anx7625.c b/drivers/gpu/drm/bridge/analogix/anx7625.c > > index c6a9a02ed762..87081d5b408d 100644 > > --- a/drivers/gpu/drm/bridge/analogix/anx7625.c > > +++ b/drivers/gpu/drm/bridge/analogix/anx7625.c > > @@ -1594,6 +1594,7 @@ static int anx7625_get_swing_setting(struct device *dev, > > > > if (of_get_property(dev->of_node, > > "analogix,lane0-swing", &num_regs)) { > > + num_regs /= sizeof(int); > > Since the property is an array maybe use: of_property_read_u8_array() > > Sam Hi Sam, OK, I'll use it to get property data. Thanks, Xin