Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp153586lqt; Thu, 18 Apr 2024 10:53:00 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUxrUfm2ngYj8lrjmr43tT1AQX7YZCzBROBooMhNzzIkaoGaYA5tnY3bcBC+vcy+fR5VXb9OGa4Xr46Z6p8d3bpADzrg+f9uSjzVF55Og== X-Google-Smtp-Source: AGHT+IFMf77sw7fxJgObOBtVEcmbqr83DhmunrheVX5rwi98Dznw6kdXQP+QYOl05cc4eTs4vwrV X-Received: by 2002:a17:903:1250:b0:1e4:48a6:9691 with SMTP id u16-20020a170903125000b001e448a69691mr4038776plh.3.1713462780497; Thu, 18 Apr 2024 10:53:00 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id a19-20020a1709027d9300b001dcaf709f55si1753228plm.207.2024.04.18.10.53.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 10:53:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-150598-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=iHRL8t7H; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-150598-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150598-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (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 25F842843F6 for ; Thu, 18 Apr 2024 17:52:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AF55F168B06; Thu, 18 Apr 2024 17:51:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="iHRL8t7H" Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) (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 5F52E178CD2 for ; Thu, 18 Apr 2024 17:51:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713462686; cv=none; b=T+ZxhTSr0G9h1O27Rxyihiel9iSvHGSbjNIxTkVFPNixNunLUMMXFObpq7kJVPLX+fAoD+E3BXKui/+6A2yAVZPqdj+69RF+2+CFvdcd//5Iuhqk/pMg9YJfpgyR+YBJPfe/VvyG8kd4NxTFdqBUEgTWWcvpD94X0ZBYz2kua5Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713462686; c=relaxed/simple; bh=KdBXRsvK2CVr4aB7wlqRzi1vOez4nde2qg+3HRaBgTM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=i6lzzY9GRutSF3FfMRQPP0ndaS7ZynEB9u0nWvvQBWzlHY0L3qQfmpjUnVPJ+nYQRDAQ55rmIlKg+7uCUKwEmaUsuQphlp5apoZNgMm/ZqPgWjE07td6xOKbbUEOSP493KZp0x7qjyGq2jpmJ5NiE8LKTT3gOCtz5QZwhpXD/6I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=iHRL8t7H; arc=none smtp.client-ip=209.85.216.48 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-pj1-f48.google.com with SMTP id 98e67ed59e1d1-2a52c544077so941537a91.1 for ; Thu, 18 Apr 2024 10:51:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713462685; x=1714067485; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=bEWmndW1cSbjh0xIBdu/vAc29pKfsBmdXaqbFNxBkMQ=; b=iHRL8t7Hf05DxlN4zLvnU8Ud/zeWCA/Zk5tU2pQmE9jqTV6OnvHuPp5iELJWTP2hca 7MEOpTQhsUdqwA+LMJb+Bs1KrdZhbOsiW2AfMHBqguCDtXt5sEi9bBUXvzQVJOUhDEB0 lV1dYptMRiHmzJZX0cA+9kp5UbsCWhHRFv4opk7O2fwdX0NdnvL4t1XmrhswCR6nH/Ph lUBNJjSFQ+eFh3+9beLkFnyd9CuXCCHWiaYc5kMYubc//oA0ixbn4b5a6gpU/yHimqHe Krk/XffuxaKVMuBsQTtkW1h9xy/XLfgwS9zzV5E4VZqYGIYOa4tdF/CwA3jf+XsxGtAH HAhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713462685; x=1714067485; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=bEWmndW1cSbjh0xIBdu/vAc29pKfsBmdXaqbFNxBkMQ=; b=hLG9kCREvwpw9USPNAIJW+pTM8xCLb6yKkYDvquLda7K9fm+RLmKtD5xMtNcxfW4c4 q1w1Et44B7aY1gOa4xf7rFIYU3NIBHLLq9DfJIiR5GDP/qXKDrTHx+dDc1+XWwd/HWOZ /o43QaX3Njk+Kqa4y7/iI7izrei5wlHFsXsGugeCxnQmRnpVYRwEkbbL1IDvz4pOb4Fa Rt13hqth58c+KBvYcdTAdhbfh/5Z5UnRo5d4GOeEDPgzso9tHN+ObfnMCDOGmKlSId/c TD1GxyX91WZ9upoA+zPYsFeqiiALdWqQj/6Ztj6opIX1gGHON8VgkNKpBt3EPiRHjJgo 1apQ== X-Forwarded-Encrypted: i=1; AJvYcCUVihfYc0yZNcgEp35lk9aW9ZlLMhWosROuhtKWWTRebZP6rhTJv9tFOL45O0loVPilqm1UWffzhlTTZMgwmHkZlFOcJXnG+e/NKjuJ X-Gm-Message-State: AOJu0Yze4gQs7wz7GbBiT4L0x2Idk6jVZ/tEsWajRrGNJcBpWdou5gjg b8OQTR84F+Uy4Dn7bnsuYO6/GOS/sawTw0zo+kivelbUsUiZkn3ITIVoBFEULXk= X-Received: by 2002:a17:90a:d507:b0:2a5:d979:8eb2 with SMTP id t7-20020a17090ad50700b002a5d9798eb2mr3152834pju.19.1713462684682; Thu, 18 Apr 2024 10:51:24 -0700 (PDT) Received: from [10.36.51.174] ([24.75.208.151]) by smtp.gmail.com with ESMTPSA id g3-20020a17090a828300b002abf2057cefsm1324332pjn.0.2024.04.18.10.51.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 18 Apr 2024 10:51:24 -0700 (PDT) Message-ID: <16a4a58c-cae6-4b62-859b-3661c052468a@linaro.org> Date: Thu, 18 Apr 2024 19:51:22 +0200 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 4/5] spi: cadence: Allow to read basic xSPI configuration from ACPI To: Witold Sadowski , linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, devicetree@vger.kernel.org Cc: broonie@kernel.org, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, pthombar@cadence.com, Piyush Malgujar References: <20240329194849.25554-1-wsadowski@marvell.com> <20240418011353.1764672-1-wsadowski@marvell.com> <20240418011353.1764672-5-wsadowski@marvell.com> Content-Language: en-US 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 TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzTRLcnp5c3p0b2Yg S296bG93c2tpIDxrcnp5c3p0b2Yua296bG93c2tpQGxpbmFyby5vcmc+wsGUBBMBCgA+FiEE m9B+DgxR+NWWd7dUG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3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20240418011353.1764672-5-wsadowski@marvell.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 18/04/2024 03:13, Witold Sadowski wrote: > From: Piyush Malgujar > > These changes enables to read the configs from ACPI tables as required > for successful probing in ACPI uefi environment. > In case of ACPI disabled/dts based environment, it will continue to > read configs from dts as before > .. > } > @@ -924,6 +989,21 @@ static int cdns_xspi_probe(struct platform_device *pdev) > return 0; > } > > +#ifdef CONFIG_ACPI > +static const struct acpi_device_id cdns_xspi_acpi_match[] = { > + { > + .id = "cdns,xspi-nor", > + .driver_data = (kernel_ulong_t) &cdns_driver_data, > + }, > + { > + .id = "mrvl,xspi-nor", > + .driver_data = (kernel_ulong_t) &mrvl_driver_data, UEFI provides compatibles for ACPI? I think that's first such format in the kernel. Best regards, Krzysztof