Received: by 2002:a05:7412:d002:b0:f9:9049:d2ea with SMTP id bd2csp45459rdb; Wed, 20 Dec 2023 03:36:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IF9bFl1MXAq9iaxWZW9NAI2MVJEBaIUT3urEukSv3mlI/YJgolBDN27SIw2FBghcfSVwE2F X-Received: by 2002:a05:6a21:6da1:b0:18c:346c:d59f with SMTP id wl33-20020a056a216da100b0018c346cd59fmr10374092pzb.62.1703072200003; Wed, 20 Dec 2023 03:36:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703072199; cv=none; d=google.com; s=arc-20160816; b=o6vOLxxgAp+5vPukeStl9r0JVMax+4V1XyIir1mcwZ39sKd4uyJxEEAFMD96ZyL2rY 40tWeDxiXJqWA39DZpjfslOKMs/kW0H4iYXUPt2x51ctGvxC/iTcDg7v6F+B5Y/xOhhl rXXCyO4DhUHlv/S29VewtvWPLA9Z2qfYCky0H2It3C8QMsWh2mY2pumKfJN/Lmqd/i1z qxTsWeOXyybWwqDJP3C+8ilrPygwFjWRR0wJyeVE8GB1pMQnXzygl8mHS0BkZPbJotVi hWzB7qh4Ll8/jsHy+XgniOysfbnS4iStGjJhHAQsAaCWB0Bt2fmUDP1YZ/+cLNogVZKf XLdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=IFboNxAk82XtaVTWM02c+nDiWxbn4us0s/m/m5y9Mjs=; fh=UW5/k7rw2I9qb9IToktdhNB/8kuW3Uq6IksiBL/79no=; b=TKawthBKlawbFzwJoWEW/NqJuW4JyPdFlSTno0CfRoTCxMtYjPSLjmDYmxM4xSvjY/ M41wklKi26CZC55FYRjKBq6F73TtI9+r+2+Lgd8CjRlX9Lgck4dqnDq0bxxaLQehr8uq gdeDLd2LgD8tpPYUEusKixPhuIcUAoYxXzSjUcVmiZTMxmM+MBNrVEbdC0UL+14fcn45 dZCMa+YHPXt4ZAbweQ3GKv2qowqkDwJ+GDnSJ5RvR7VjTghakLTbcNW9ziA8DPqXInRx 2/+T3bWei5lVIF7GOYYGMoZpYAcWi6dZMgdYT6zFRp/nEYLHpJhd1J0+6C44jUZJhrXx 7/jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="tG9vL/KT"; spf=pass (google.com: domain of linux-kernel+bounces-6829-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6829-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id f13-20020a170902684d00b001d3f2850aadsi563697pln.366.2023.12.20.03.36.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 03:36:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6829-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="tG9vL/KT"; spf=pass (google.com: domain of linux-kernel+bounces-6829-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6829-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B36D7288A1F for ; Wed, 20 Dec 2023 11:34:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E2C332209D; Wed, 20 Dec 2023 11:34:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="tG9vL/KT" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D28112230A for ; Wed, 20 Dec 2023 11:34:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-40d3352b525so7468605e9.1 for ; Wed, 20 Dec 2023 03:34:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703072043; x=1703676843; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=IFboNxAk82XtaVTWM02c+nDiWxbn4us0s/m/m5y9Mjs=; b=tG9vL/KTgXEDvjl8w8TeKQveWrrWP1K6ZT3OLvRD+B5cNXCG55urepkzdgWkF11w3R +tB8fJH2LIFK2DWXuy7cpqxU0loIcmNU9CUVSZWRK3D5+/zun457rN1Q+mHBz7OzB2z4 s8VFD++7XTW8+372WvLK5DmrUKoukQaN1MwQTaInyjwtxqHi760kwVWj3WrRHCjwWKrN aavSvmufRIV+2DJ0NadpPX3RYR1ig7UX9H5aQTirRuJkRLLXYKmI9Q2Da/AnnPiAJkDk Fu1ZwAzFF6nHCXzg/TLjUJNbmEcRHzl7r+05YeFrqgVhNVgV4jLcOabIFNQ8Bv9Pk05A OwAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703072043; x=1703676843; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=IFboNxAk82XtaVTWM02c+nDiWxbn4us0s/m/m5y9Mjs=; b=jAzD2sjDh6MOb7oGKC6oWJMVP4aCCEqy3j0hTKWxwsYGaVi8eIAKyk0RPcmGnpCECD 1sJo95OGAGUO45hCl9nUaV8VruI5Zmslzk5ACVlkEikPgjaXKZvpdbVsgHl2DIJRyuWZ 08hOWXDAChlHFVfoh4Z6vcUzCanjv2OfrC4ZHTyfb3MwR8LE8a4ET5QlQoA4X7G3AueE 6opSEBW54TtMaD9iEYqSIBgJPtg/BpzZ0qqocX/DVJUTYu2dXFbtN1K79lmHHY1VxmIK 9nl1gwfWLG9EIK7gB0xiuVB20Ufr8Pp14fTv6wGbMgqu0YVrc+CdNTuK85WmNtM0U3p1 Fggg== X-Gm-Message-State: AOJu0YyqPAJHNNC+kqmD7rlkEeL7uS5s1K+Az34v+gGwiD/3xIgAwU1e ExdwocXlkp7r2kdEZvr0srX5o7kwHlN6OAEF+SY= X-Received: by 2002:a05:600c:3d18:b0:40d:35a5:b9dd with SMTP id bh24-20020a05600c3d1800b0040d35a5b9ddmr425625wmb.22.1703072043114; Wed, 20 Dec 2023 03:34:03 -0800 (PST) Received: from [192.168.1.20] ([178.197.218.27]) by smtp.gmail.com with ESMTPSA id o30-20020a05600c511e00b0040b43da0bbasm6948988wms.30.2023.12.20.03.34.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 20 Dec 2023 03:34:02 -0800 (PST) Message-ID: <97d54894-7c71-49d8-a456-869c398636ec@linaro.org> Date: Wed, 20 Dec 2023 12:34:00 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 2/3] soc: mediatek: mtk-socinfo: Add driver for getting chip information Content-Language: en-US To: William-tw Lin , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Srinivas Kandagatla Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org References: <20231220103901.22180-1-william-tw.lin@mediatek.com> <20231220103901.22180-3-william-tw.lin@mediatek.com> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzTRLcn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ZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20231220103901.22180-3-william-tw.lin@mediatek.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 20/12/2023 11:39, William-tw Lin wrote: > Add driver for socinfo retrieval. This patch includes the following: > 1. mtk-socinfo driver for chip info retrieval > 2. Related changes to Makefile and Kconfig > > Signed-off-by: William-tw Lin ... > +static struct platform_driver mtk_socinfo = { > + .probe = mtk_socinfo_probe, > + .remove_new = mtk_socinfo_remove, > + .driver = { > + .name = "mtk-socinfo", > + }, > +}; > +builtin_platform_driver(mtk_socinfo); module platform driver, because this is tristate and because this should be a module. Best regards, Krzysztof