Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2514853pxb; Sun, 23 Jan 2022 07:07:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJynjHeMaQqjExmELBWDOg6eLm/sbkwNmdtJYBCnRbY+AI5iBfaf/GiiEV3h06DB0akJq/ID X-Received: by 2002:a17:902:b592:b0:14a:d75a:11c0 with SMTP id a18-20020a170902b59200b0014ad75a11c0mr10779704pls.81.1642950469631; Sun, 23 Jan 2022 07:07:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1642950469; cv=pass; d=google.com; s=arc-20160816; b=ZiGuzFwT8Mw6MnVFfVK/4kZ/74BDowLU7jrYq/Vu8fl4Z6gZMzgLwpHoPvpfG4xDe0 DcozUUn7bRbSuMTeVhro/QTZLFhp3yyUSySn9JWR5QtAtSohVA+lrLngZpGTKFKdMKlX neeipamuNmOr2bEmQDNlQAFjZux+8EyeqtIZeCQaSDUiVUdq9ErMDxrWZ60/wd4vQM1R h97t1eBGkKuP9u95R1wZmo/duNK3jW3WGUDR0bCxFa6BwKrt2i21dtFP1A/keKrh+wFa LzbPJZyYRR9jN715oOIrX3CfcgVk3HYDYihn8P83TG5Ke3s/aSe9rPqzO3jKBv9E009t 5rUw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=xLmuF3o2KXD3Oy3S+0aQq20AB5vK7E0/S9PyXvvrWQA=; b=DK7D0rC8ZOcC23aURour1jWHvf+misGO0cn4Kxkx+IDYT1hcNC5wuqTyNpiNQpjm/M FbghGdrBvqkjqJlDfHToZdhm0VekRs37K9wuWy8NZ/+W/727044lb/0DFfZ/XmQf6ulC wnPLTt5K75W4WIh8HxscWDDv8ycCHq6rP1M1xmjTSMGg1uESicDPdsutbnoaEgsTgf0G Ua6T7rxQpnl84trLuq7umZLBJe58AuoOtyo8PZ8gscwg1gvm0AeN7D0XN0aAWtQ3aUzs toHGLoUStQvgWw2gweQWiMcKMyx28tkHa8hgAHkmM4ECzgrjwzG2O3eqlui4KO96blmD CO9w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=VsEHQCrE; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j19si10176558pll.354.2022.01.23.07.07.37; Sun, 23 Jan 2022 07:07:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=VsEHQCrE; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234414AbiAVLdH (ORCPT + 99 others); Sat, 22 Jan 2022 06:33:07 -0500 Received: from mail-mw2nam12on2051.outbound.protection.outlook.com ([40.107.244.51]:60330 "EHLO NAM12-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229678AbiAVLdE (ORCPT ); Sat, 22 Jan 2022 06:33:04 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LB5r8JS5fvc3rpJv6Sz9rzQ03ya/Gs4P6OyKl6o9TtCLWZB0UOwLXfdlXF7/H8IwrzovVKJLvZn4Jp7sx4nlpxx7XKAsIgU02UQG0NDEHrtbcQv1CaNdKh3f32ZK87vJQmApgR+TjGtu7kX5MfMj2lno5t4tEy/TZi4GQ0o4qaQsrN65Vb+6obR0iqK5CVaXZJ1TbOXXIBz28q/uc8wKMJB2pYCGNpjcQAj25m9r6bL5cDkls+OGBF/p01HqxHDfLfJYqsc1L/BxrsozTSH1Io6Rlbp+xbfxYbzasXou71rUJVRBrLytl1v8qqDDMvdzQvOzSqGvDO7FKKObejJS9g== 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=xLmuF3o2KXD3Oy3S+0aQq20AB5vK7E0/S9PyXvvrWQA=; b=D4E9TgKbSyyHmXMPAKo2jIWPRoYfr6TRt6tlOkU3w6UEcR7OM/xdT1S6ctGZnauphK1kc4frlLo38Yv8RgWBYei2HTShXp+dmyBieTmmtCWBxKW9+OdGjU71j+BZ8KZrgERgCAXNPxgZ6b5xtZ08Juc4IRVFXiXUHjym1rsby/uY3vDGvY4SyX4rg8f0R7zTtSAnWHTaSl9tZYaNTUWvrGZ5VH5Zz7csFGGTVD0c/99/7DaanIkVybFIIpFLzZbX1WqSZVk+su1z4uIPPVg59vYJhrhFqDQgQ4f4KhEXg5QbX3cWrRCDpwbsna1S+zqgof324ZQ2fjHkSiYkJOHMqg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.235) smtp.rcpttodomain=linuxfoundation.org smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xLmuF3o2KXD3Oy3S+0aQq20AB5vK7E0/S9PyXvvrWQA=; b=VsEHQCrEvmK6qDuRIcUZBdarYaQjcivKWKvCyDMbLPK3obZk/ybTFVQRmlJ/DFighjcO246mc49TvKhc8Qy782D+2FO92IMw+oILjyFbKOWaeirkr5Sj9CK1n6AymKcOs2q3T9P1qGvZSHP63m5Pn5j0NzfSYM/1k1CLdkkmHO8qTxqPG3FmmPm7hCcl8OUMQNNhtu28Q+4BT/gVQgbaT1ew83gqW5EwSYpB8/v2gK3SfPpW6eVwbYQsORfym6UEq2JAQa69GD7jnMQn7pqjUjq2R1/pXj0RNFRll5TFtxejhcuhL3UupiZ6qxe8uhY/eenHaIe5MS4Dz+EE6Nn7wQ== Received: from DM5PR06CA0060.namprd06.prod.outlook.com (2603:10b6:3:37::22) by CH2PR12MB3830.namprd12.prod.outlook.com (2603:10b6:610:2f::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4909.8; Sat, 22 Jan 2022 11:33:01 +0000 Received: from DM6NAM11FT009.eop-nam11.prod.protection.outlook.com (2603:10b6:3:37:cafe::3b) by DM5PR06CA0060.outlook.office365.com (2603:10b6:3:37::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4909.7 via Frontend Transport; Sat, 22 Jan 2022 11:33:01 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.235) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 12.22.5.235 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.235; helo=mail.nvidia.com; Received: from mail.nvidia.com (12.22.5.235) by DM6NAM11FT009.mail.protection.outlook.com (10.13.173.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4909.7 via Frontend Transport; Sat, 22 Jan 2022 11:33:01 +0000 Received: from drhqmail202.nvidia.com (10.126.190.181) by DRHQMAIL107.nvidia.com (10.27.9.16) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Sat, 22 Jan 2022 11:33:00 +0000 Received: from drhqmail201.nvidia.com (10.126.190.180) by drhqmail202.nvidia.com (10.126.190.181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.9; Sat, 22 Jan 2022 03:32:59 -0800 Received: from kyarlagadda-linux.nvidia.com (10.127.8.10) by mail.nvidia.com (10.126.190.180) with Microsoft SMTP Server id 15.2.986.9 via Frontend Transport; Sat, 22 Jan 2022 03:32:55 -0800 From: Akhil R To: , , , , , , , , , , , , , , , CC: Subject: [PATCH v4 0/3] Enable named interrupt smbus-alert for ACPI Date: Sat, 22 Jan 2022 17:02:43 +0530 Message-ID: <1642851166-27096-1-git-send-email-akhilrajeev@nvidia.com> X-Mailer: git-send-email 2.7.4 X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6d390b81-0054-47ab-f264-08d9dd9af2aa X-MS-TrafficTypeDiagnostic: CH2PR12MB3830:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8882; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: O92PQq7mPidZ2ZWu6nSVWOUjDBDWhWSmJBNhdkmKGMClb9VOsZMo3Erp27iZXZKhn4C4gS2PujNyO8Xxrji8pvYjqzGdhGH9w+2luZ4C+z/E7pICyBiSt/NQHE8PqFsKrQDi3QRs/YPFRG4+VT4mcSTpGH4egm+A3Q5keykVuIuZf3KzDcv/y5WJU+/127+AsSKuCeMjuIs/n3Sfk/902U61I5QNupqFT5e+TC9zmLwo9+n97pm0yZwkrH0tMkaxohvEzBIJpmwyfNPE3PdnO6piued8EBo137eHYpqrGv14A1oijn6j5DLXc9lELdLTXR/U0baBe9x1JIF30AnI32OnxEZObaJFSHJ/+H/j7L4oL6kzg0ojZI2E92GwJ0vQeag2LYjEGmgf+7itnPQR6F33U2FJIdXQ/4Nfyryz3Av+3hsTH2X2J2JGIzdUJTqy9JXL0EoXB3O5yrZQIr7/TD7G2GoELo70/gQ+UJ8otC7G7Nu+L01VNd8HUEdYAhUoWbkasGNE7VB9pkaqPEugzEIo335wwX68UheUn3q1gLR8ki9JAcZSoLgy73fbn5dvwTCFBLd3/2OvtsOoqyirwFV/+wWq05+h1wTRyA5rmdOggB753Y/9h24BumWfiDw+yJHnGerSo8GG8psiGbKmFuBUTmrCXzkAZmxbdckOEh/T2I4TjY/abis0BFDz8KGGCY/lQCGY/xvXwPIFwBOqU4Gh7FXE4wRFWG+3Qx3pvJrYCT9U7RelmGCnNzFSyrNqe2zqXA4mb/eKVoacYqB5q0rO1JIKkgVhAZWu3ro8i/l9awR8SJJEB/y6BldL4hoFsPewxg01F6tzCunghn/EoB+x6QB+9gVWxRLINpY9IVg= X-Forefront-Antispam-Report: CIP:12.22.5.235;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:mail.nvidia.com;PTR:InfoNoRecords;CAT:NONE;SFS:(4636009)(36840700001)(40470700004)(46966006)(8936002)(7416002)(40460700003)(316002)(5660300002)(86362001)(336012)(186003)(8676002)(82310400004)(83380400001)(47076005)(6666004)(7696005)(426003)(81166007)(508600001)(36860700001)(2906002)(15650500001)(356005)(2616005)(107886003)(110136005)(921005)(4326008)(70206006)(70586007)(36756003)(26005)(83996005)(2101003)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jan 2022 11:33:01.4221 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6d390b81-0054-47ab-f264-08d9dd9af2aa X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[12.22.5.235];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT009.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB3830 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I2C - SMBus core drivers use named interrupts to support smbus_alert. As named interrupts are not available for ACPI based systems, it was required to change the i2c bus controller driver if to use smbus alert. These patches provide option for named interrupts in ACPI and make the implementation similar to DT. This will enable use of interrupt named 'smbus-alert' in ACPI as well which will be taken during i2c adapter register. v3->v4: * Removed device_irq_get_byname() * Updates in comments and document. v2->v3: * Grammar/spelling corrections. * Added description in function comments. * Removed 'unlikely' from NULL check on 'name' v1->v2: * Added firmware guide documentation for ACPI named interrupts * Updates in function description comments Akhil R (3): device property: Add fwnode_irq_get_byname docs: firmware-guide: ACPI: Add named interrupt doc i2c: smbus: Use device_*() functions instead of of_*() Documentation/firmware-guide/acpi/enumeration.rst | 39 +++++++++++++++++++++++ drivers/base/property.c | 29 +++++++++++++++++ drivers/i2c/i2c-core-base.c | 2 +- drivers/i2c/i2c-core-smbus.c | 10 +++--- drivers/i2c/i2c-smbus.c | 3 +- include/linux/i2c-smbus.h | 6 ++-- include/linux/property.h | 1 + 7 files changed, 80 insertions(+), 10 deletions(-) -- 2.7.4