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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 08875C433F5 for ; Tue, 4 Oct 2022 11:13:36 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8CECE84E0D; Tue, 4 Oct 2022 13:12:18 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=amd.com header.i=@amd.com header.b="FnyDSJwm"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 23CF084E23; Tue, 4 Oct 2022 13:12:10 +0200 (CEST) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2085.outbound.protection.outlook.com [40.107.92.85]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E22F684E0D for ; Tue, 4 Oct 2022 13:11:54 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=michal.simek@amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lxQsqq/oHpRhiufZQxyig8oehVbP8AEy3lqktuXCYCOIf18uT/y9Wa9vZph06K3ANgmEKj6hKYHENPhc5CSChWIQS6Yii5tc++6o7hL2cLjF3HyAFRMOB/o9v0Rb1BPgEyvbts7duG/KlJiH3wERJXnixvTlGt6QTnIyjp5gkTD6a55NhO1HN0qNH7HEyi6nJ/CfYbgRXUS+RezZ1+iBIZo+mbH5QIXU8+6UO/NLOA1dH35gUxJlkrFitAT9E4rOE7wdpYTyTIqhPtEj2c0RRp6aEtlnunm5XI+nkYu8rb/IReRxL95bKSIl46gObWWV4jpWeO+CgoPCKKzRBq7aTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=x4q1rELPKPmxwF6t0KAZsKk6qpNUj0g8KpOzTJzOwlQ=; b=bTGKLD/Jl8e/ElDgG3YzkWrukbsmQND5eZmcgfUzQ/ud3pzoCO6Zz0Z+u26Ua8XkX5CYPkE4EK9YWLZCyCSN2e9a8b1nmwb5dcyoLNh3Cl25iMiMEeB46+q7GD0TX7Rb4XcVTVDAG6Va+GNB4vTUFJ0dlIrXZgoZK96S89VEebPfYaa87/qNgG5XEwrfWlEprXdmhuRDBiDeRgqYZo8JRK1U9iIAQbM7ZQxOc2O+OYIQHMApW53tv+N64xjzhRTlU5OpKIwRu9ptKJDtMOFWHK4PKBFQRMeBptvCsiVnhYpg9A0ONhEJS3PzeeL5lNqPsIkx+Ywga9pQykjakUKzCA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lespocky.de smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=x4q1rELPKPmxwF6t0KAZsKk6qpNUj0g8KpOzTJzOwlQ=; b=FnyDSJwm5m0I+Fi5uEJCd73TOsqoXbHO2Iw30rk6HBZjlqz8TNqlvdJmJo2kP7ZjqkcTtCCHsthis+VOs/HiAnymZdstc5gwFLfS1rOb5TDj5EWMkyKey7fW/9qEPXM6miiURrmeNue8WrhGON21zC9sp87vNBXMMDJ1kOwTgj4= Received: from DM6PR06CA0064.namprd06.prod.outlook.com (2603:10b6:5:54::41) by PH7PR12MB7234.namprd12.prod.outlook.com (2603:10b6:510:205::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.23; Tue, 4 Oct 2022 11:11:51 +0000 Received: from DM6NAM11FT003.eop-nam11.prod.protection.outlook.com (2603:10b6:5:54:cafe::f3) by DM6PR06CA0064.outlook.office365.com (2603:10b6:5:54::41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.24 via Frontend Transport; Tue, 4 Oct 2022 11:11:51 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by DM6NAM11FT003.mail.protection.outlook.com (10.13.173.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5676.17 via Frontend Transport; Tue, 4 Oct 2022 11:11:51 +0000 Received: from [10.254.241.52] (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Tue, 4 Oct 2022 06:11:49 -0500 Message-ID: <74061817-acd0-7fa1-5cf9-a79402f00551@amd.com> Date: Tue, 4 Oct 2022 13:11:46 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.1 Subject: Re: [PATCH v2 0/1] dm: fpga: Introduce new uclass Content-Language: en-US To: Alexander Dahl , CC: Simon Glass References: <20220930120430.42307-1-post@lespocky.de> From: Michal Simek In-Reply-To: <20220930120430.42307-1-post@lespocky.de> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT003:EE_|PH7PR12MB7234:EE_ X-MS-Office365-Filtering-Correlation-Id: af819574-9f83-4642-9106-08daa5f93cd7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: L94bsSN+bFJpdzYYywdjjjfQueTsaZq+iUoxKBeDC4tBZETEZPVNSRhWyHak1WbdGQIcMf1eZPrDm60K8WfOWaiGaOXJmHVEWkSMyndBPBMIeou22ANJ490HkWjNutyRkJsoAgAeh/wnUoCeqsYT3jGKQ00LYvgL4u8cvOg+wuKf1iP3++dBlqM/dF9cVL6Kez1zsLD+uh/yS3PTzgcfHkPuVG2epFuNFVKiWe6VKARQnzB0otiikz7LNMd6D9+aGgcu0DPyaSlHQ19Tl5weUYG4ECFuPXjOY3okmb/RrgbovRdwlujB5rsfvW8aptwfmKB8ECBfRM+kb1AXOCKL23RDgFmOP29364A3cTorootLly3u+H4sWZVJRmS3xRLUNcu/AwJmCMKwh3n0hcMgmJNJkedyBmBWZByiB08RPjNlZHh9BYnjZ7Xc6noYymu3bSNlvY6YPbsYV92p/3z1JLxAq7mtGqMlBl88fSMNWbWW9E+/xcLu73QM8c9+QuPCqg8i40H2pDdMAlX+B+P7VjVpwK0PiA8P6aMMByKep50GOve1YUSHDsLpMLNiSVm1u0ZPuhsmrsVhEUt82bYCC9h9wFmeIFhWWB62wieS4LOMVJmrUEV3cUSlxkaRKstwWkeJWak7A3C7UuYnaJlJwuKgUJUCo+Jii/Oa/DME/jsM4gB8kpRmtCuOiqjU4oDKto4eAGnIDkXp+tRKYIbMZojknf81LtQYblHly5qLivJGV6OK6zRd5bUKhpv5ABPKBJVlDdiSnB+vAqIvUJK5SfaPogHqZSe1keHXBRL/TuvRNzIjuIgAAD2rpScv3zqOF6KeJqyQejRTgz7ZJJ5DEw== X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230022)(4636009)(376002)(39860400002)(346002)(396003)(136003)(451199015)(36840700001)(40470700004)(46966006)(86362001)(44832011)(31686004)(5660300002)(16526019)(426003)(47076005)(82310400005)(2616005)(81166007)(356005)(26005)(16576012)(36756003)(82740400003)(36860700001)(53546011)(40460700003)(316002)(8936002)(70206006)(70586007)(8676002)(336012)(4326008)(2906002)(31696002)(41300700001)(40480700001)(186003)(6666004)(110136005)(478600001)(43740500002)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2022 11:11:51.1452 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: af819574-9f83-4642-9106-08daa5f93cd7 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT003.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB7234 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean On 9/30/22 14:04, Alexander Dahl wrote: > Hei hei, > > tried to address all the feedback I got from Simon, thanks for that. > > Build tested on Debian GNU/Linux 11 (bullseye) on arch amd64, tried on > i386 first, but got some nasty errors there (see IRC backlog). > > Tried in sandbox console, and everythings looks fine to me, as far as I > can judge. `dm tree` and `dm uclass` and `dm drivers` list the right > things, and `ut dm fpga` returns with success. > > I refused to add Simon's Reviewed-by, because I did some changes > compared to RFC (see notes on patch). > > One technical question: should I add SANDBOX_FPGA to sandbox_defconfig? > > And Michal, is it okay to add you as maintainer for the unit test as I > did in v2 of the patch now? > > Greets > Alex > > Alexander Dahl (1): > dm: fpga: Introduce new uclass > > MAINTAINERS | 1 + > arch/sandbox/dts/test.dts | 4 ++++ > drivers/fpga/Kconfig | 19 +++++++++++++++++++ > drivers/fpga/Makefile | 3 +++ > drivers/fpga/fpga-uclass.c | 11 +++++++++++ > drivers/fpga/sandbox.c | 17 +++++++++++++++++ > include/dm/uclass-id.h | 1 + > test/dm/Makefile | 1 + > test/dm/fpga.c | 20 ++++++++++++++++++++ > 9 files changed, 77 insertions(+) > create mode 100644 drivers/fpga/fpga-uclass.c > create mode 100644 drivers/fpga/sandbox.c > create mode 100644 test/dm/fpga.c > > > base-commit: 97c0a9c5708dc60d82cad721a8b882f0ce37e83d Applied. M