From patchwork Tue Jun 18 00:37:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 13701586 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 5F2C3C41513 for ; Tue, 18 Jun 2024 00:38:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=cJM+FjwIt8Vsqi9DQbiY4E0tjpC6f+V3n620JM6N4W4=; b=EkO9rU3BpwiPsujCJCRrogvgpk fYdDKvGddzIGTnY69ZKCANlFrNr2Mt8i+LHBt+35ibylMwk7Is3/LdvLtzSVppwHGX7d07fZifhn3 3YrrDJddqSCUKeLGtW1QO3h48Gcjo0Vob9rapQqruFE3GHKzleWOsnmjxz7WGuim/ogSDHmhXdQq4 NLy57SqnTUCeHEeiYC9sNWwH28mNGDVDjRs85OUvun5vhB4RhbVx/TK68fkYOaFLiGx51Nuposopn 8bT67e1VFOOAWvr2MXCrCBxVLYPgyHctKC/EO68/cGKXhzo6lGvVqOjsQXGmU7J12T9Q9HeqkddJi frxQeKNQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJMri-0000000D523-11IZ; Tue, 18 Jun 2024 00:38:26 +0000 Received: from mail-ot1-x32d.google.com ([2607:f8b0:4864:20::32d]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJMr6-0000000D4ml-3d77 for linux-arm-kernel@lists.infradead.org; Tue, 18 Jun 2024 00:37:51 +0000 Received: by mail-ot1-x32d.google.com with SMTP id 46e09a7af769-6fa0d077694so2136286a34.0 for ; Mon, 17 Jun 2024 17:37:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718671068; x=1719275868; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=cJM+FjwIt8Vsqi9DQbiY4E0tjpC6f+V3n620JM6N4W4=; b=dcXO4R3gyCDmraNBA/PW/5oq+0n3BAUfSzFjI9lvC6J6i7FCpNO0WpSN7/2Ao7LN+B tZZKwELcRwSqYCY87azDwNO5NI1896ygH/bNF6hS+SBZIndth8QnQ/JH+nGm9WIoFCAu /tgSqzsIgPG7uLazkAg+44afpkWgDY3b+0Jw3HQF8TN8dSgABbk6fFyx3I3lchC8trh0 X9K19ZYdYyMyH+8djZcNe46QTsyJAq9GZTwS4ASwKyfBGRH3596xgKMwZlTXFKFgv48h cNRLEUU1F/pbTY1FTw3ENb3ncqAy/VUXQnggpwABkEUXJWZ05z1Yl96K4GdbVgssH4WL 89RA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718671068; x=1719275868; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cJM+FjwIt8Vsqi9DQbiY4E0tjpC6f+V3n620JM6N4W4=; b=mrjOC5KtgBqgTbWtZ9BnARRmKq7Qq2mbQS0BGZDAEZz2Z57mKjOHRgK3ehYcG8QXd0 xNB+UCjbqliFqIwRB544oICbZ/kaVsDHezB1ZV1ycsyq9gvRQCbFh7q7aDDVix92iwdn CC9BUl2RWHJxJiziXzH3iNa+F005QOMkC1jSC3T4JKdQMmzXzPu6bLODerSQWRk1r3/F nl9nCOGFwufWZuW5eNHUhS6bGnBhBkcfdmpcJ+xB9XxZ41EQfiVxPWGv0zXSB36ym/df Lwd8cf/AKM36lQZJsTxVePkoRqLFHtC7K1ZSwbM3YE89w2n6L1Ntti52fMydz4Nen1R/ 6bwg== X-Forwarded-Encrypted: i=1; AJvYcCUv8F+SJboB8qlQvtKNaq5T0xVgykTP9cD2tRXYUsoN++Efn3SbF2ZJUz+XyLaK/SbozJ8/XuKUUWISF8h9iMjt1ex+V+Cux5hpH9Ro0302qErOXW8= X-Gm-Message-State: AOJu0YxvoKd1kkR0ulTCvZjq8hmGpwxuoZScPh/clATGbtxGXFXb/YqB cm/S0r7pCCM/yGTJKhXRJ6HP/II1l7N99AmRAviuGKWMOVRWiq1l6skRMuhkgZw= X-Google-Smtp-Source: AGHT+IHmWqNe1qFCpia0kcsa+KwsVizvSzvqatZv/DcZrfeCuQFKkxSB7UvgdM255Z2koLHPoO/haQ== X-Received: by 2002:a9d:758c:0:b0:6f9:6786:485d with SMTP id 46e09a7af769-6fb93b1ef3cmr12795074a34.37.1718671067847; Mon, 17 Jun 2024 17:37:47 -0700 (PDT) Received: from localhost ([136.62.192.75]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-5bd5e0874b7sm1324092eaf.14.2024.06.17.17.37.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jun 2024 17:37:47 -0700 (PDT) From: Sam Protsenko To: =?utf-8?q?=C5=81ukasz_Stelmach?= , Krzysztof Kozlowski , Rob Herring , Conor Dooley Cc: Olivia Mackall , Herbert Xu , Alim Akhtar , linux-samsung-soc@vger.kernel.org, linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 6/7] hwrng: exynos: Enable Exynos850 support Date: Mon, 17 Jun 2024 19:37:42 -0500 Message-Id: <20240618003743.2975-7-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240618003743.2975-1-semen.protsenko@linaro.org> References: <20240618003743.2975-1-semen.protsenko@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240617_173749_012752_B73CA722 X-CRM114-Status: GOOD ( 11.08 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add Exynos850 compatible and its driver data. It's only possible to access TRNG block via SMC calls in Exynos850, so specify that fact using QUIRK_SMC in the driver data. Signed-off-by: Sam Protsenko --- drivers/char/hw_random/exynos-trng.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/char/hw_random/exynos-trng.c b/drivers/char/hw_random/exynos-trng.c index 98b7a8ebb909..3368a08df9ce 100644 --- a/drivers/char/hw_random/exynos-trng.c +++ b/drivers/char/hw_random/exynos-trng.c @@ -333,6 +333,9 @@ static DEFINE_SIMPLE_DEV_PM_OPS(exynos_trng_pm_ops, exynos_trng_suspend, static const struct of_device_id exynos_trng_dt_match[] = { { .compatible = "samsung,exynos5250-trng", + }, { + .compatible = "samsung,exynos850-trng", + .data = (void *)QUIRK_SMC, }, { }, };