Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4279672pxv; Tue, 27 Jul 2021 03:30:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6PnMUqqASwkNFH18wMM2SD/Vz1oa+vzGx8P4t+NaXANmJjDomirSKSjqDESZ8HU5oeg9D X-Received: by 2002:a92:d44b:: with SMTP id r11mr16700376ilm.217.1627381822606; Tue, 27 Jul 2021 03:30:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627381822; cv=none; d=google.com; s=arc-20160816; b=OmtRgiuNzDjhQmoRgym20PVTL2csTj0maMJ1PKF9ehU2tuY3Qhu6mStigpcph7Yjj+ mUrB9TTVCi5R3sC4it4tcqJFEkyBdvxROHrXMDvDcT+/8F7L38C64FMkb6X9Gf5y7nEh EXcv9el3ZknZS9jnpP6OLS6w06PiugmJle6+GcbZYLUKncw1IpxfVgzKmgiudJJzfohy Pv8HAi70Iq7SZ4dQ+XJDLJZ54CVDu4JHYxqe/MYcUM8OOuJacm22lMIXwjTwwrwZMm0E WIBevhvnjebi8m4sYAV9VW6TVo+6JQqd8OTtgE+Xuekw88ATpGRTQyZADyC0ertALsOS ROtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=BNXOQOHHvkyOlpYQvBOMgkkH26gWwGd0okW8oi8QdqI=; b=Nvo8DKjrHiXXq2E8GmKCPrvU7JOhpgjEPbSMyTpYgSBgOicNWdHM34IgsnmDvQtd/Z JYwO21PKErnI22tqUnJSOWg9WE7bT+qfetBBslJQ9tDy3IYsDcawNpeYgTQyHogus5k5 Yk6/dMSZBezp47wmgQ8hbAQ1Fm7iBonMcGd8oN69JtRZG1czhH4ZQGKIv4LjeKEVWyE9 jWv5cuUbKbOu3JmxHdyb0PSVd/B4mv8qd4GlPlWIzeM1LPlI91Yzb/sYbURUO0NIE8QV TlRvWNbj//BZqv64lTHFCpRi2cNj5hboDo6eQZUx6ZT43jeMEMkBQm/wdNziFwxsEQ4u xu7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=VA9XBSq4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b9si2858284jal.24.2021.07.27.03.30.11; Tue, 27 Jul 2021 03:30:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=VA9XBSq4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236195AbhG0K3X (ORCPT + 99 others); Tue, 27 Jul 2021 06:29:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236036AbhG0K3U (ORCPT ); Tue, 27 Jul 2021 06:29:20 -0400 Received: from mail-ua1-x92c.google.com (mail-ua1-x92c.google.com [IPv6:2607:f8b0:4864:20::92c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EFBDC061757 for ; Tue, 27 Jul 2021 03:29:20 -0700 (PDT) Received: by mail-ua1-x92c.google.com with SMTP id 105so3401264uac.7 for ; Tue, 27 Jul 2021 03:29:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BNXOQOHHvkyOlpYQvBOMgkkH26gWwGd0okW8oi8QdqI=; b=VA9XBSq4CQhlCAZrPbTm3nskntRBag7xfqyt0l5ZRi4tj4r7Nwmj7cH8Q//ULvZ68Y 5rx6ds4fUh1cKyKjtK9DlDLoCmoMTBGuBTVGak7TJbutzKps51Gx+PW0a4zDeLzgCVRA 7v+taAWoRMIo4GLW7W31F6kuP0wNC9VL3N8Xk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BNXOQOHHvkyOlpYQvBOMgkkH26gWwGd0okW8oi8QdqI=; b=Or0mNYTvYlgXqyuRQwC3vIFq2xb9y4bmxFZpdU59OctcZc7HzWd98a22dg/rFIvd5Z HQCFUxGAvHIWWf81MZX0Gg4sMCCq4RtK5VBBQNFXO5DUVTannVAyOF4T3IuMZQb+OaYJ vwFA93BlLPi1WPux1ZMjQhMj9d6MNePIpmC8JCI5hm/qJRTW/3vnX9bm3zi5qPg0vH86 PCmTWd1xEXCcTr4t0f+IT8q2Rt3y1nULuQ+Nw/vjRRJM9uJ4lD4eXCmHx0zuLW7WafoC OMo6IPNo1uY4QUhNbtIICjQLgk0GgZBetKTpQzyhSWCigMzcCskFpLbkSnmfcDxKXjRa pAPw== X-Gm-Message-State: AOAM531gHb6z7s1EDsgD7E3AOhbfTIABMAj8IVVBWGEr6nwmgc/Vix0m 03Hmb6s297HUL2gDwttx1SAegJ3PB5w/UajMoZFhoA== X-Received: by 2002:ab0:2641:: with SMTP id q1mr16151134uao.82.1627381759398; Tue, 27 Jul 2021 03:29:19 -0700 (PDT) MIME-Version: 1.0 References: <20210727094435.v3.1.I629b2366a6591410359c7fcf6d385b474b705ca2@changeid> In-Reply-To: From: Nicolas Boichat Date: Tue, 27 Jul 2021 18:29:08 +0800 Message-ID: Subject: Re: [PATCH v3] drm/dsi: Add _NO_ to MIPI_DSI_* flags disabling features To: Sam Ravnborg Cc: Neil Armstrong , David Airlie , Viresh Kumar , dri-devel , Jordan Crouse , Andrzej Hajda , Thierry Reding , Laurent Pinchart , Andrzej Hajda , Joonyoung Shim , Jonathan Marek , Krzysztof Kozlowski , Jernej Skrabec , Tzung-Bi Shih , Adrien Grassein , Chun-Kuang Hu , Jonas Karlman , MSM , Yangtao Li , Abhinav Kumar , linux-samsung-soc , "moderated list:ARM/Mediatek SoC support" , Pi-Hsun Shih , Hsin-Yi Wang , Matthias Brugger , Sean Paul , Xin Ji , linux-arm Mailing List , Rajendra Nayak , Thomas Zimmermann , Seung-Woo Kim , lkml , Robert Foss , Kyungmin Park , Yu Jiahua , Dmitry Baryshkov , freedreno Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 27, 2021 at 4:35 PM Sam Ravnborg wrote: > > Hi Nicolas, > On Tue, Jul 27, 2021 at 09:45:21AM +0800, Nicolas Boichat wrote: > > Many of the DSI flags have names opposite to their actual effects, > > e.g. MIPI_DSI_MODE_EOT_PACKET means that EoT packets will actually > > be disabled. Fix this by including _NO_ in the flag names, e.g. > > MIPI_DSI_MODE_NO_EOT_PACKET. > > > > Signed-off-by: Nicolas Boichat > > Reviewed-by: Linus Walleij > > Reviewed-by: Robert Foss > > Reviewed-by: Laurent Pinchart > > Reviewed-by: Andrzej Hajda > > Reviewed-by: Xin Ji # anx7625.c > > Reviewed-by: Abhinav Kumar # msm/dsi > > --- > > I considered adding _DISABLE_ instead, but that'd make the > > flag names a big too long. > > > > Generated with: > > flag=MIPI_DSI_MODE_VIDEO_HFP; git grep $flag | cut -f1 -d':' | \ > > xargs -I{} sed -i -e "s/$flag/MIPI_DSI_MODE_VIDEO_NO_HFP/" {} > > flag=MIPI_DSI_MODE_VIDEO_HBP; git grep $flag | cut -f1 -d':' | \ > > xargs -I{} sed -i -e "s/$flag/MIPI_DSI_MODE_VIDEO_NO_HBP/" {} > > flag=MIPI_DSI_MODE_VIDEO_HSA; git grep $flag | cut -f1 -d':' | \ > > xargs -I{} sed -i -e "s/$flag/MIPI_DSI_MODE_VIDEO_NO_HSA/" {} > > flag=MIPI_DSI_MODE_EOT_PACKET; git grep $flag | cut -f1 -d':' | \ > > xargs -I{} sed -i -e "s/$flag/MIPI_DSI_MODE_NO_EOT_PACKET/" {} > > (then minor format changes) > > > > Changes in v3: > > - Added all R-b tags from v1 and v2 (hopefully didn't miss any). > > > > Changes in v2: > > - Rebased on latest linux-next, after some of the flags got fixed > > (Linus Walleij). > > Thanks for the update, applied to drm-misc-next. Thanks Sam! > > Sam