From patchwork Sat Nov 2 13:59:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1188380 X-Patchwork-Delegate: bmeng.cn@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="cgVrWtWi"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 47512x6sRZz9sNx for ; Sun, 3 Nov 2019 01:02:17 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id AE254C21FBB; Sat, 2 Nov 2019 14:00:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 538AAC21FD0; Sat, 2 Nov 2019 14:00:11 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 23AB4C21F50; Sat, 2 Nov 2019 13:59:35 +0000 (UTC) Received: from mail-io1-f67.google.com (mail-io1-f67.google.com [209.85.166.67]) by lists.denx.de (Postfix) with ESMTPS id 8A4C6C22005 for ; Sat, 2 Nov 2019 13:59:35 +0000 (UTC) Received: by mail-io1-f67.google.com with SMTP id k1so2045798ioj.6 for ; Sat, 02 Nov 2019 06:59:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=uLaXSN3G6nLMBJwr9U2Ma1Fa/T6/fmrqL2pOpt64res=; b=cgVrWtWiJtHSXKiWAoG+eZ5A/WsqgOrqCPsIrnWC6PeVcswCIcu+nVvTQIp/HZl7O0 fO5tzCrWH8+SXjv43FeWi0c85EbKdWF1q0uVxwNjjpK+YZL7/onlg1VNsIwElYErT4gr MYSYXPckhI5X8DO5D+yFX5sf7HAZE+8zmx1D0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=uLaXSN3G6nLMBJwr9U2Ma1Fa/T6/fmrqL2pOpt64res=; b=okXwvFtpdDdAWxRqvvSmt2nRQb8soS7EXztmOrFXJbG97h842mbEZ+Q6xJdiziOwqN l6u1wbB083YeYDzFhC5RsRrHeNgCQuSZRymcyN+Q6I5v0UT4G8lBkW3Eo1IZInYptWya 0OVCDkMoZOsLIPLVLY3l+04vrKMf/38A4Xh4xLS9+d/bIUA6hMk12ePfAl6+T0WlMz2I 26GLWIYYJ2UZAxCt0Lo+78kRQ5SpSH3HMOTuhQCQRHTlZQ9iLGFFiJIiiDYilMRVyplB jLJ8H39bliALjOyMSgeGIXHYOWuMag9qgBJ1vDtdP1287W6LePJ+qkpNSamHSAERzmGV VEoA== X-Gm-Message-State: APjAAAV68aUEJLNjx6AZRxq5NSvhVDDGaqMa3Xl6hhz73ka0NMshbcjL jBteAsVcvn+xEK1puJ+QYZ/CAk9AHXIA3w== X-Google-Smtp-Source: APXvYqxyMJ4gTrkn/7EUSJYxVyk3WmIkWr6lxEUydDFfceT95vxYPb0zUVw1XCp4jExoPcKm+rHDqg== X-Received: by 2002:a6b:3b03:: with SMTP id i3mr13480730ioa.199.1572703174410; Sat, 02 Nov 2019 06:59:34 -0700 (PDT) Received: from kiwi.bld.corp.google.com ([2620:15c:183:0:8223:87c:a681:66aa]) by smtp.gmail.com with ESMTPSA id k20sm693700ioc.70.2019.11.02.06.59.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Nov 2019 06:59:34 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Date: Sat, 2 Nov 2019 07:59:15 -0600 Message-Id: <20191102135918.111713-5-sjg@chromium.org> X-Mailer: git-send-email 2.24.0.rc1.363.gb1bccd3e3d-goog In-Reply-To: <20191102135918.111713-1-sjg@chromium.org> References: <20191102135918.111713-1-sjg@chromium.org> MIME-Version: 1.0 Cc: Andy Shevchenko Subject: [U-Boot] [PATCH 4/7] pci: i2c: designware: Add compatible string X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" Add a compatible string for this driver so that it can have children. Signed-off-by: Simon Glass Reviewed-by: Heiko Schocher --- drivers/i2c/dw_i2c_pci.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/i2c/dw_i2c_pci.c b/drivers/i2c/dw_i2c_pci.c index 34cdc7bf59..193ad5225f 100644 --- a/drivers/i2c/dw_i2c_pci.c +++ b/drivers/i2c/dw_i2c_pci.c @@ -64,9 +64,15 @@ static int designware_i2c_pci_bind(struct udevice *dev) return 0; } +static const struct udevice_id designware_i2c_pci_ids[] = { + { .compatible = "snps,designware-i2c-pci" }, + { } +}; + U_BOOT_DRIVER(i2c_designware_pci) = { .name = "i2c_designware_pci", .id = UCLASS_I2C, + .of_match = designware_i2c_pci_ids, .bind = designware_i2c_pci_bind, .probe = designware_i2c_pci_probe, .priv_auto_alloc_size = sizeof(struct dw_i2c),