Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp247438rwd; Wed, 31 May 2023 22:49:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7LfFKc1ffN47fisrk8Myn+VNjmaQzYE4kcYwMro+SOLK4kcfGGNf3KFqFlADHst5+/rBh+ X-Received: by 2002:a9d:4814:0:b0:6af:8f03:c22e with SMTP id c20-20020a9d4814000000b006af8f03c22emr5051324otf.16.1685598547630; Wed, 31 May 2023 22:49:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685598547; cv=none; d=google.com; s=arc-20160816; b=vGzFhEq76OHXPyeGMeteq2RXwQK3qHaaGxrCPYgfgt2H6aZfEivvG6tG8AgyaG3+1X dOj6N82njReoW/bMw7eEgquC9Vmpn53iwEVL1zHcru8KMOpAv38o+HJsc00MLWt/kWxe 5QVglFIkt0QOXaqqAlaJNkDZ9Y6t/P9934ufDybotdpzwlZot0TcZaTnlNdO4MUW1cJA O9DSK3gxFCiFQnCCIjJtsySJ2xuGFPVCLD6u0HI5bLIV7JYv6aKM+B2Tkg43sng8eikf IHySgiNmUr9ZRp7GVCgnO8Ol7zZ/hkM0TDBajGOz7LtYP9QVQ2jUerpqdBXORlFQdioa nVhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ljVd92c1g+mJnQikOhJv0be3//cBkYT7Tzib+FT3fhQ=; b=EKDO+nnFjH0fYVm9/3hbCg7T84KpuxosX2VmkVq+gmFAfHjZO+0ZgDcs5q+BlK+yPh tztar+qtbsaankXE45BxraMYn3CEBcVOE04kfopSBIE01MKjo80IJz4P4cUWOsRqvIED odCwWW02UnJfL9g+tjXmkrs/tUdlF4WFZKrSN5vgBAyGzCH1JIVJWbVoOsdDoF/uJGT+ 1C2mpterzZhXrqfGn86TsV1Odql9OqtXc0R8549I/DJEvYlSu0F4npwY0ugvj3W790z0 J1PqNCP0kzxfacSyHTZe0vAiSc18hAmHuD/Z6gsD16OFYZu7Z6G7sn1srbO9TOqLJEJI DcQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@maquefel.me header.s=mail header.b=ZnllIgqA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k11-20020aa7972b000000b0064f787f2888si129607pfg.397.2023.05.31.22.48.52; Wed, 31 May 2023 22:49:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@maquefel.me header.s=mail header.b=ZnllIgqA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231376AbjFAFqw (ORCPT + 99 others); Thu, 1 Jun 2023 01:46:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231590AbjFAFqi (ORCPT ); Thu, 1 Jun 2023 01:46:38 -0400 Received: from forward100a.mail.yandex.net (forward100a.mail.yandex.net [178.154.239.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BDC69E6D; Wed, 31 May 2023 22:46:17 -0700 (PDT) Received: from mail-nwsmtp-smtp-production-main-51.vla.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-51.vla.yp-c.yandex.net [IPv6:2a02:6b8:c1f:5e51:0:640:23ee:0]) by forward100a.mail.yandex.net (Yandex) with ESMTP id 570F341C76; Thu, 1 Jun 2023 08:46:13 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-51.vla.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id pjGDMhnDduQ0-5J5veGwe; Thu, 01 Jun 2023 08:46:13 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maquefel.me; s=mail; t=1685598373; bh=ljVd92c1g+mJnQikOhJv0be3//cBkYT7Tzib+FT3fhQ=; h=Message-Id:Date:In-Reply-To:Cc:Subject:References:To:From; b=ZnllIgqAiqUxGhSfTh3ZexuqZkPzqrAUfomyEn4sRC75dfRbsnwQahT3SJIiXmNuM E61QoCvTRaBUa6cB/swZzbUlVVseApRWRvpB7Vnxlc46Lje1cYWXtaX7SWabeAuLvs qUgItmLv9+fmVccvjXJG5wR/QPbPQrDX2zVorUJM= Authentication-Results: mail-nwsmtp-smtp-production-main-51.vla.yp-c.yandex.net; dkim=pass header.i=@maquefel.me From: Nikita Shubin To: Alexander Sverdlin , Arnd Bergmann , Linus Walleij , Sergey Shtylyov , Damien Le Moal Cc: Nikita Shubin , Michael Peters , Kris Bahnsen , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 26/43] pata: cirrus: add DT support for Cirrus EP93xx Date: Thu, 1 Jun 2023 08:45:31 +0300 Message-Id: <20230601054549.10843-8-nikita.shubin@maquefel.me> X-Mailer: git-send-email 2.37.4 In-Reply-To: <20230424123522.18302-1-nikita.shubin@maquefel.me> References: <20230424123522.18302-1-nikita.shubin@maquefel.me> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org - find register range from the device tree - get interrupts from device tree Signed-off-by: Nikita Shubin --- Notes: v0 -> v1: - fixed headers - dropped coma in id table drivers/ata/pata_ep93xx.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/ata/pata_ep93xx.c b/drivers/ata/pata_ep93xx.c index c6e043e05d43..8d363bc71342 100644 --- a/drivers/ata/pata_ep93xx.c +++ b/drivers/ata/pata_ep93xx.c @@ -40,6 +40,7 @@ #include #include #include +#include #include #include #include @@ -1016,9 +1017,16 @@ static int ep93xx_pata_remove(struct platform_device *pdev) return 0; } +static const struct of_device_id ep93xx_pata_of_ids[] = { + { .compatible = "cirrus,ep9312-pata" }, + { /* sentinel */ } +}; +MODULE_DEVICE_TABLE(of, ep93xx_pata_of_ids); + static struct platform_driver ep93xx_pata_platform_driver = { .driver = { .name = DRV_NAME, + .of_match_table = ep93xx_pata_of_ids, }, .probe = ep93xx_pata_probe, .remove = ep93xx_pata_remove, -- 2.37.4