Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2000201ioo; Mon, 23 May 2022 07:58:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0FNmGXRzJ/5QpOWK3EYYaXQDB+xMLkE4DBJCpTaQTdRxoilQ2KPObPNSe0D6F+ehfEF3x X-Received: by 2002:a17:90a:3b07:b0:1de:b43f:f976 with SMTP id d7-20020a17090a3b0700b001deb43ff976mr27549045pjc.192.1653317927653; Mon, 23 May 2022 07:58:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653317927; cv=none; d=google.com; s=arc-20160816; b=E9Z3vWFnl2JBJf+UYGjMVgeliQnzmFIJVn7VbMw/Xe5lBXGtvt7GEwIJ/kIMRIRK1y 4D3Jf2FeTs+YeN2G7+1PbbLuli2rR2fS1PafNJV9MUZf/1hrATMzUywbWEpD5W42I72X ALHQmzTLVy9s2+4FE3U2TqGAnRWdX5dwq7ebqUeaI/Q2bkffFJGUQXfWdOyr7vAsdLcW ZKz2psoPqU8zHdzbRhnf0j4Ee8rtGMeksfi2ln/bH6Cju/yzyemMvat1VML2YjlDVAg4 3LvqUREiJQFCYFmuaF3ZtatiN8A0D7HuyFkFdNy0/c4feS2j2HknX62l8dWiZX9Pv+rG re+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Apgzk874fkDNy3DtvloZ2pgK1mAGvVBl4qEP+Q8vv7c=; b=ew+g3rurqdPoALyB4wzo9DN+IGWY/PjMzDCixln8DrGlQh6RS6xWykvRoOfqWjnrSp EZUg3CjS67hayS6PxVHjQlMr+9D+wVhayIyQ7/lqIvdKlrOCDlDGkdlZsjaIL8xuznWo 31gGBipw2vsyQVzkbt/i+DogiUPac8/CiZUxFVM61r9LFfVy0rBUD/PpcxfeamFW8XwZ y9mKeOKmuG4we+coYKBF+cPwgBKIzZW5Q1r1yzjihw1SgK+d7BGFrFhPFF6dsZxiSZP/ V535HucsAjo7/dQ+VsS+Akx3sAFetm7EJR4Fr27cWjjhO6D8uUqNmJqQBPaBgbwTcxVs mPAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=NxRrlEth; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id i9-20020a631309000000b003fa8a9301a1si1432945pgl.878.2022.05.23.07.58.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 07:58:47 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=NxRrlEth; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BE4415B897; Mon, 23 May 2022 07:58:45 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237455AbiEWO6b (ORCPT + 99 others); Mon, 23 May 2022 10:58:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237442AbiEWO60 (ORCPT ); Mon, 23 May 2022 10:58:26 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AF945B3F5; Mon, 23 May 2022 07:58:22 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: shreeya) with ESMTPSA id 384CA1F4336F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1653317900; bh=aux5DOKRhL9/c8YKccW5MZScsCscogspH5D5WmQhR4Q=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=NxRrlEthKxJEW1Lo1eSMTr0S3/yaHDr6nA5boHDOPpczZHxNtbYGqzE1LeAMT+gIN qISMsreeeQ8NxK2AjyLrvV7W46uiDlRRszGhIuJGdWbOAWb7tyQQQdap+Ws8jeAPOK b+/Sb3/FPUXRSa/3XmbZwqMFFn/2gdbV/IX1n8e2AdIBHMvHAXsmdiYJY9i3+f/eTs 6e9/mRsFQproojgjpI4sXtKJYjiRAJqSxy7V7DLkjDXVUwzyiJU+zfKIZLfcMWftsE FFmn4t5LHVlR5EAqaOZBN8vMCBeQ4zNmnC46ImoefwQGjULO6ukQCJ6r7FIEInN31g AQZCkyXNhqAdw== Message-ID: Date: Mon, 23 May 2022 20:27:56 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH v4 1/3] dt-bindings: vendor-prefixes: Add 'ltr' as deprecated vendor prefix Content-Language: en-US To: Rob Herring Cc: jic23@kernel.org, lars@metafoo.de, Zhigang.Shi@liteon.com, krisman@collabora.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com, alvaro.soliverez@collabora.com, Krzysztof Kozlowski References: <20220511094024.175994-1-shreeya.patel@collabora.com> <20220511094024.175994-2-shreeya.patel@collabora.com> <20220516170058.GA2825626-robh@kernel.org> <83907dd2-2a53-2448-576b-ae26462d432a@collabora.com> <20220518163255.GE3302100-robh@kernel.org> From: Shreeya Patel In-Reply-To: <20220518163255.GE3302100-robh@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY 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 On 18/05/22 22:02, Rob Herring wrote: > On Tue, May 17, 2022 at 04:07:33PM +0530, Shreeya Patel wrote: >> On 16/05/22 22:30, Rob Herring wrote: >>> On Wed, May 11, 2022 at 03:10:22PM +0530, Shreeya Patel wrote: >>>> 'liteon' is the correct vendor prefix for devices released by >>>> LITE-ON Technology Corp. But one of the released device which uses >>>> ltr216a light sensor exposes the vendor prefix name as 'ltr' through >>>> ACPI. >>> ACPI? NAK. >>> >>> There are no cases of 'ltr' for DT, so fix ACPI. >> Hi Rob, >> >> Yes, we understand there are no cases of 'ltr', but we have released devices >> which uses this string for probing the ltrf216a light sensor driver ( x86 >> with DT ) > That's not what your commit message says. > > Even if this is DT based, given an undocumented vendor string is used, > it seems doubtful the rest of the binding would match upstream. What > about the rest of the DTB? Got a pointer to it or want to publish it? > >> If we don't document this in vendor-prefixes.yaml, then the following >> warning >> is generated. >> >> WARNING: DT compatible string vendor "ltr" appears un-documented -- check >> ./Documentation/devicetree/bindings/vendor-prefixes.yaml 364: FILE: >> drivers/iio/light/ltrf216a.c:313: + { .compatible = "ltr,ltrf216a" }, >> >> >> Can you suggest us what would be the right way to fix this warning if not >> documenting >> in vendor-prefixes.yaml? > Fix the DT. We don't accept bindings simply because they are already > used in the field. If this was the only issue, it would be fine, but I > suspect it's the tip of the iceberg. Hi Rob, To make things more clear, following is the modalias info of the device. (B+)(root@linux iio:device0)# cat /sys/bus/i2c/devices/i2c-PRP0001\:01/modalias of:NltrfTCltr,ltrf216a It's a dt namespace on an ACPI based device. We used an of_device_id table to be able to probe the driver using the vendor prefix and compatible string. But when we compile the driver, we get the following warning and hence we documented it in vendor-prefixes.yaml and also added a complete device tree file [Patch 3/3] just to get rid of the warning. In real life we are not using the device tree file at all. WARNING: DT compatible string vendor "ltr" appears un-documented -- check ./Documentation/devicetree/bindings/vendor-prefixes.yaml 364: FILE: drivers/iio/light/ltrf216a.c:313: + { .compatible = "ltr,ltrf216a" }, There are many existing devices used by people which has the vendor prefix name as 'ltr' and it won't be possible to change that hence we are trying to upstream it. Thanks, Shreeya Patel > > Rob >