From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0A96CC4167B for ; Tue, 5 Dec 2023 19:06:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=jA5UttqudGi3v8IASycNr6++WwlZJtr6rd055EZ5Whc=; b=yJja5vB9MkwsnI /LWV8QbKD8b5D2/6F7iBk38UJi5/vsY3rOViaLQIR4QWdIyEKbj9zJ7bTHv6pzBBH3ipmbIzC8Qku v4CJLG++irRc/zx5mSkW+HWyZJS18cqbSGLWEZaRowvu8nHypbUHnH9ZozOoKR/UGqcfM2E78lktq l+BU04oPC/hq41Co8amuXlE2ilD8i5AP4wOPuifn3UI5KZWzH2IoBTyomQdlADSFr9rBWf8mI3cAh ePGaMv6juMFypAc0hV5vuFX+BI0XfFjauFMwoDKdmwiwONwqiWA06b/YfssJ2NK37R/aczvh90lUt 5YX6sVta19+3WSSupBJw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rAakH-008EKI-0I; Tue, 05 Dec 2023 19:06:13 +0000 Received: from mail-pg1-x531.google.com ([2607:f8b0:4864:20::531]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rAakE-008EJb-20 for linux-arm-kernel@lists.infradead.org; Tue, 05 Dec 2023 19:06:11 +0000 Received: by mail-pg1-x531.google.com with SMTP id 41be03b00d2f7-5c629a9fe79so2547193a12.3 for ; Tue, 05 Dec 2023 11:06:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701803169; x=1702407969; darn=lists.infradead.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=P1pAlpuH5Xa5SLoWkygT7UiOceoXCeggodj1re8Nc1s=; b=mb3K9tciTpnrdpoc0cepI91k6nCoRczsxY80yRHTm0PZFyE/eO0qEEnFeI8pPU8L2q agQIS30hXwB46qMUo96EYnl01X+kJeqTwOeTUFU11PqqLifBPdDpEd2xG+P0XDQhmCMw pIFWLq4DH8MOcPdelWpgKaohketOFXYnKluRTJH/gUjn8YBEL+qH5KWkAEHrg47+E6DK 0n5UACe/5PxNqDgyz1e8mmYeISqcj4+XfMhhz5iUb+ElUxLebmvagv6dp97k0NsKHANx nmrfPecQzCUCiaowTZ4QnTDJohNwW/8A2qrPTE3jemCcef+YTRNi6+C6Fyh2HxIx5djo hdUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701803169; x=1702407969; h=content-transfer-encoding:in-reply-to: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=P1pAlpuH5Xa5SLoWkygT7UiOceoXCeggodj1re8Nc1s=; b=K1g8MGJVBkE7JqauSEp6Y6KG3W3Q2hpTpJAhCxkb+SqHZW7kpI3CMgQSiDQZ6fuL6q Ky/TYs44IgJFUvdHUXZm91E+w0GflUj/CjXpeZ4WvOl954derPyCwaffGHn8vYeDuGrr 23wUvAu2Z3bWB9QSzIeKfO7AmwNlPFrZ+WhBzzo21mHyJAkkwNZ+uwMhmoYHaoDlBJad zbSorW888t/QfXCvuZ1OW5oMHwiOoLpGSZuwSwyQFELd4qA1CeFoV9JRcGqh058xuk7E 25QqnfxD8YfGHuqV4FfGR7xLuO+yR02C58mGewk3sb+OC2qaS1ze+Vb6XYufOew5xrqQ Kofw== X-Gm-Message-State: AOJu0YyQ5S6CQIPlYfLPqpyG5F3WmEXwGcQ/3iNjrzmn3ge1WcgX/yDi hg3LfLJtXl7fuTbQvQLVhVc= X-Google-Smtp-Source: AGHT+IGhqX4d1zjyzK5FHrlGfPJ/M5kdx4UOHh66YSZV+LHHsYYQhq5JyIXg7kLnfFmAEVreoaGMvA== X-Received: by 2002:a17:90b:4b52:b0:286:bdb5:d073 with SMTP id mi18-20020a17090b4b5200b00286bdb5d073mr1420677pjb.42.1701803169102; Tue, 05 Dec 2023 11:06:09 -0800 (PST) Received: from [10.67.48.245] ([192.19.223.252]) by smtp.googlemail.com with ESMTPSA id gb2-20020a17090b060200b00286c1a13ed9sm3110511pjb.56.2023.12.05.11.06.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Dec 2023 11:06:08 -0800 (PST) Message-ID: Date: Tue, 5 Dec 2023 11:06:07 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 4/4] memory: brcmstb_dpfe: introduce best-effort API detection Content-Language: en-US To: Markus Mayer , Krzysztof Kozlowski , Florian Fainelli , Rob Herring , Conor Dooley Cc: Linux ARM Kernel List , Device Tree Mailing List , Linux Kernel Mailing List References: <20231205184741.3092376-1-mmayer@broadcom.com> <20231205184741.3092376-5-mmayer@broadcom.com> From: Florian Fainelli In-Reply-To: <20231205184741.3092376-5-mmayer@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231205_110610_659285_B1EFCEE7 X-CRM114-Status: GOOD ( 13.32 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 12/5/23 10:47, Markus Mayer wrote: > Add a best-effort probe function that tries all known DPFE versions to > see if one might actually work. This helps in cases where device tree > doesn't provide the proper version information for whatever reason. In > that case, the driver may still be able to register if one of the known > API versions ends up working. > > Caveat: we have to skip "v1" during our best effort attempts. This is > due to the fact that attempting a firmware download as required by v1 > will result in a memory access violation on anything but v1 hardware. > This would crash the kernel. Since we don't know the HW version, we need > to play it safe and skip v1. > > Signed-off-by: Markus Mayer Reviewed-by: Florian Fainelli -- Florian _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel