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 D6526C433F5 for ; Mon, 3 Oct 2022 06:34:30 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B75C984D62; Mon, 3 Oct 2022 08:34:28 +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="HKJ5GGlP"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 360A084D63; Mon, 3 Oct 2022 08:34:27 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2080.outbound.protection.outlook.com [40.107.94.80]) (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 77DE284D3B for ; Mon, 3 Oct 2022 08:34:24 +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=I14MOKW2dPq8sZrGu3dNmljUCjsV7Cyk8CZ8sZQMgnhloV5R5ugrena2IKBOZ/g+1JBJSMQpoJKPAifuHKUtEEbk1twV3eabkgiFjMyTqHCOj2QYBwwkJCZwYWcb5kir7sJfSMFVpG12BnoU532IzHOy1WPD1nwgwZDncXYDvFBCJruJKdS1fTrbKr2Y0Tciq0b9BIH8qRW+bYHQn18GIBVKIRrg5fYsd8I6Yx1ZP2K5rqhQ/Wxmc+oAue/qdzO348Ukkqb2oP/DPJRyuIf/oxEWVGmemP03i485kBzh98ZY0yBx0ARhIL0mkUMbdPO1ee9BXzee5zvv/4Tt5AvRSQ== 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=gy34YuJccfgP1hRRT/xonzzjyVhSVGIkTJfX5qsYMn8=; b=nW9VKF4lDYdACUQ5pTSVlbbKdN3neBcFXzA7KUsFY4sw56tCpLuUkOD8dmSmQvN0Q2sCLjr8mQv78sVJI9pTlHhyjpaQHgKgcxz1Wh7k4sRB8StQlKYtMKct72NbTxJ6F7l+FVlhdrR+I5eZqCXpMgfRFiSvAWogteiGpy8z5Em6cXnc3RZfXWqo3C4Fy3IJeu7T0fNKotT27EAK4O6iKCFkLxGcCisnGi+vzN1j6gwKMZpHOUy2r/zvOcYZP91d9xKLScPip6+V4jBGIp61SEx66jBsLMc9OOj/yHQJeqCiTBaUJM2T9AOioepziXnIbqSTaXPIpLWXEWv93vZs/Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=chromium.org 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=gy34YuJccfgP1hRRT/xonzzjyVhSVGIkTJfX5qsYMn8=; b=HKJ5GGlPiPyCG5+dx7rw0tYkKqHBvh240fkd8CLkthaQK3KyebeiC3g1eSwqIVyriwlkfUEwXvsIYiy3TGFTjuIs3tggIC/KSoEu7jf7DxOoDo6Dpe6hado+Acxdx+XT/gr7fkBK9EpTfF7b/5FlziYFziKckzws2VyOV2McpNo= Received: from BN9P222CA0029.NAMP222.PROD.OUTLOOK.COM (2603:10b6:408:10c::34) by SN7PR12MB6714.namprd12.prod.outlook.com (2603:10b6:806:272::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.24; Mon, 3 Oct 2022 06:34:20 +0000 Received: from BN8NAM11FT094.eop-nam11.prod.protection.outlook.com (2603:10b6:408:10c:cafe::56) by BN9P222CA0029.outlook.office365.com (2603:10b6:408:10c::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.30 via Frontend Transport; Mon, 3 Oct 2022 06:34:20 +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 BN8NAM11FT094.mail.protection.outlook.com (10.13.176.131) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5676.17 via Frontend Transport; Mon, 3 Oct 2022 06:34:20 +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; Mon, 3 Oct 2022 01:34:18 -0500 Message-ID: Date: Mon, 3 Oct 2022 08:34:12 +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 1/1] dm: fpga: Introduce new uclass Content-Language: en-US To: Simon Glass , Alexander Dahl CC: U-Boot Mailing List References: <20220930120430.42307-1-post@lespocky.de> <20220930120430.42307-2-post@lespocky.de> From: Michal Simek In-Reply-To: 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: BN8NAM11FT094:EE_|SN7PR12MB6714:EE_ X-MS-Office365-Filtering-Correlation-Id: 6e119167-7136-4eab-d91c-08daa5094dd7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tPad6FBR8LKpm+YSuTrxHcLD/MhtJq35eZjGZE+rahp9WZl6nc2ppYE3404s4oECNT6PdgGWIiGRBDJFLVyBCm2IlV4ZViT5X9BYLfIwqfWO94IFfOU6EYtYvevVVYswWuHznwFCVYjBGAGsfoHB1aw8L74A7Y3P4zZgAvKoNE4FohiuP9673audIqv9Lpp7f2OAAohRFeEeUiuCB+HuAs9nWuTP8yI0mg34aN5Ryi2jzeqZeu+ghnh2levSMgM+R+2J27qfsJms7s8K7yeCnxbQaJR9dlfkpxT9OZbjenAYJuOL2GqQAeX7iq/f1P57ptm/ZlhUhWFMJLTaDFdPZNRKxEaVe0XPfsyTI75oMDqf2uSxD8ZPHGXAR9yuGZvsOpt89bBNooaveJSXszQNbPZq4SLp8qUeaU+koI2X1kx2p1jm3/8tDSF3+cCsNu2COUGxnaFvjP6ETb641ZtrY197cDVvTaMxm3RtCOFhi+Wdx0/LdGmGaliijZ4A4eds/KM6LGVE5XpdG+z7yajjdNEp1OpjAjdb4ieA2sTWfZglzwk35Mb6l7MQMQhVRI2Kx1alI7rTXSSDFLzCyN+dyFLociRlJqxOIoZoFd7fWOnGgIDhvQwA9O1cX82t3UkhD8y279i8+raEr8E8Q+RL8r5n4OXPd3tghXZzf9H49B6oHRz0ZXJgmLrUoP6+qpI9xbwrIEt2cbvN/+ItOoSeNbFVAD47r8n1djVQahgqCtKEr00L1ZNqVATcHoTmop5j5OEEZNBGZzgU74enc2iGbixzCkTEgJZUvKLU72t+iAWGK/RQaUtqpcwkuLNHRjUs9WRo2C1cGCP8f85g1ObM6w== 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)(346002)(376002)(39860400002)(396003)(136003)(451199015)(40470700004)(36840700001)(46966006)(186003)(16526019)(2906002)(110136005)(336012)(6666004)(47076005)(426003)(53546011)(26005)(31696002)(2616005)(478600001)(70586007)(4326008)(8676002)(70206006)(5660300002)(82740400003)(36860700001)(316002)(8936002)(44832011)(16576012)(356005)(81166007)(41300700001)(86362001)(31686004)(40480700001)(40460700003)(36756003)(82310400005)(43740500002)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2022 06:34:20.5001 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6e119167-7136-4eab-d91c-08daa5094dd7 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: BN8NAM11FT094.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB6714 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 Hi Simon, On 10/1/22 01:49, Simon Glass wrote: > On Fri, 30 Sept 2022 at 06:05, Alexander Dahl wrote: >> >> For future DM based FPGA drivers and for now to have a meaningful >> logging class for old FPGA drivers. >> >> Suggested-by: Michal Simek >> Suggested-by: Simon Glass >> Signed-off-by: Alexander Dahl >> --- >> >> Notes: >> RFC -> v2: >> - Added/Improved Kconfig help texts >> - Use `uclass_first_device_err()` in test >> - Add compatibles match list to sandbox driver >> - Add 'test/dm/fpga.c' to MAINTAINERS >> >> 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 > > Reviewed-by: Simon Glass > > The only thing needed now is a header file, but we can add that once > we have some operations. Do you want me to take it via my tree or you want to take it via your DM tree? Both ways works for me. Thanks, Michal