From patchwork Tue Dec 20 09:02:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bough Chen X-Patchwork-Id: 34997 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp2857039wrn; Tue, 20 Dec 2022 01:08:45 -0800 (PST) X-Google-Smtp-Source: AA0mqf472bkN4Nq6jl8GNAPfZRRuvpHpBphkd2oeL7QdWpB22/F5Ly6jWToemam3DiiBLfnFxDJ3 X-Received: by 2002:a05:6402:24a3:b0:461:ed76:cb45 with SMTP id q35-20020a05640224a300b00461ed76cb45mr40400441eda.24.1671527325257; Tue, 20 Dec 2022 01:08:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1671527325; cv=pass; d=google.com; s=arc-20160816; b=Uy+lJ1haKXhqDiotOVT+31d4gNcapxTvB0I+idbsl9Jt/M+PSbfsC45yW8Yisjy4At jnFaNUtXkaIw3oMpBNsIJmo42WuWg8oJSmfajoXlYcwMFNFYb2t8zs65AVc3Ton+Tkhc LgnaEcWATRovpQkCuR2E29skFvqEGxhKh5MzfAE44O/C3zKWgF34MNO0ljb3VGwqsSSg ffSSN/KTPeRYSr7/TagXKJrCg3JW5hbiM9g7QfkwsdM7lABKh2XCXum8qFryLY155hww 7wF3t//1R5VOtz0Dd1775tQ+XOdP4YhI6n5DkB3htwZS0gfmnkRSlrbZdl1mP8yCx3JY K6Kw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=/8QNEk/mx+b2del/+/BMrjhvBKlOjzNe77S6SnRpG4E=; b=p22UFVFgD1I3iykf1aZyRlvN0DGS18mENo89YYWoQCEV87P/Q0pgGIZcIDkHm1R+M0 FgWnAy9YrZD/ok+7o16oLf4JL1bXQ/5UY/ZA9J6jjFiYbSGDRCfXt0mkMY+Kl8UmKV4t uQl38TlkfTuX/9ma3cffCGNIYaTUwwWXWPFsrPZtWI5eieR95p7oXREk0ri3DRLK0dS8 xgPW7jel918Fm+M83gOiwU6wgTFdO8SpD54/636Okf6Y/tUkNcxPy4Wcl4CQJ29HpCqo M6oWlJAeMTZJBL4NRKbWojU82W9V8DgmbXu2dvdMGZbE/o8cNIrL1ujQp9BekuUk6z8r mEfw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=DsRt6c16; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y4-20020a056402358400b004697dff9638si12500149edc.87.2022.12.20.01.08.19; Tue, 20 Dec 2022 01:08:45 -0800 (PST) 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=@nxp.com header.s=selector2 header.b=DsRt6c16; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233309AbiLTJCY (ORCPT + 99 others); Tue, 20 Dec 2022 04:02:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232561AbiLTJCW (ORCPT ); Tue, 20 Dec 2022 04:02:22 -0500 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2050.outbound.protection.outlook.com [40.107.247.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 356C2113B; Tue, 20 Dec 2022 01:02:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jpuNj8XW83vhhlU+mHa8kZWGQzssUx4/Mmz+GvP7E/C7fWoRCDeErIrCWl3iufPEtZ2WwjarZxqzt/GvsYAnymi8BgOoDF0DU8b4d5Vx8UEvljPgqLhaZw5iOHZCJBhcXUz8q7SH5vEeAzFThd/ZZruQaRpi2F698yPRxhcaM+TGVlV64OMjqv831l/uMG9P9YhJ2WxX0cE3ngAudaUgCrMOxZI6EoNCPwADJWIgp/vpIpwAkVdfNbV1MVy4J8sR2BwqEmabVNBU6F4mIRc8oVmvkbfwYEYm12oQQQ3xErpMXqbINaAItCMOIgXrwtRaZouFJI/L4210wRjyXZfSRA== 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=/8QNEk/mx+b2del/+/BMrjhvBKlOjzNe77S6SnRpG4E=; b=QOeG1swpPkEDZ2u+s8dAMORbzNJ+aJB+GrSI8WjTWYWyLstNofO9k4HZ4IyGbSXsexdlqhQ93GUH/tm1oweolQ9KGruNlva0Hx+h/SnK9/QZ2fRKwgkKhQ7TRIUh6fxDxLsw1CDLZwBzfuAjc3OosDD/dLJZDmc5+jMlGVWsniA03x2OZpHu1IGS5BCgvDUvKxI91vc2IUCR1E47MzsqhViD7AV/GwQLXXlhyUtezhflV6TFGJ8ZxHtuQh/mPFWODDZ7RRswgkEyHGoEwlxXmt1Vh9ldsUGmyyFjAvT9LDCdmm8MfRMZrKhKMkHQ6qYxS8S1CJ6SdCQo62rsGf+tuQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/8QNEk/mx+b2del/+/BMrjhvBKlOjzNe77S6SnRpG4E=; b=DsRt6c16P9kBWw2s05nAEtFYaH6ZedjPeM/gxq6XURh9f0X5FQmWe+P8fy+NEILRfyeLFi/WPPHvJNWWkkcsveb6POJ/JL/rnwdGEuAQBcwcxGrsaE51PqjbLNqrJC4tIR1HTguFfVhQIzvFjxVSkvKsKaHqbo/SFS7ZnYhrmiw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DB7PR04MB4010.eurprd04.prod.outlook.com (2603:10a6:5:21::30) by PA4PR04MB9221.eurprd04.prod.outlook.com (2603:10a6:102:2a0::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5924.16; Tue, 20 Dec 2022 09:02:18 +0000 Received: from DB7PR04MB4010.eurprd04.prod.outlook.com ([fe80::7479:76ef:8e5:da0b]) by DB7PR04MB4010.eurprd04.prod.outlook.com ([fe80::7479:76ef:8e5:da0b%6]) with mapi id 15.20.5924.016; Tue, 20 Dec 2022 09:02:18 +0000 From: haibo.chen@nxp.com To: linus.walleij@linaro.org, brgl@bgdev.pl Cc: stefan@agner.ch, linux-gpio@vger.kernel.org, linux-imx@nxp.com, haibo.chen@nxp.com, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] gpio: vf610: connect GPIO label to dev name Date: Tue, 20 Dec 2022 17:02:47 +0800 Message-Id: <20221220090248.1134214-1-haibo.chen@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SI2PR01CA0026.apcprd01.prod.exchangelabs.com (2603:1096:4:192::16) To DB7PR04MB4010.eurprd04.prod.outlook.com (2603:10a6:5:21::30) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB7PR04MB4010:EE_|PA4PR04MB9221:EE_ X-MS-Office365-Filtering-Correlation-Id: a26874cc-8d00-4cc2-1c61-08dae268e533 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: RIt4nosJ57tAVBP56oB+qMsB5L6LMq1PSms0xlg2s0ZIeVjBdJ1EfZsYn35gl+NjTg/AhG/eG42u0lvFNlcUu7sHuYocwKNieOxNFcIgmG75RJlj11dUSZoOOeHtQMI6D5iQ4Tr0lxnk9j0rnb8G9HL2LEximf6JO3ONU65z1r9iYZu6W1nmoxjjlANW1KVAkwRZuIt35FfMlpES9AvocazZFeRXbKK+tWo8cHSYVmOYAddSba7ffAa8rtEaXrhO2dAKOzH3nMqphqf2X7Id/61pedcenNhIsYMA3hHo3yE0HDPnsmCazRX6PkhQlVCtSNrcIFAC/xrZYwiPSwm+a9pSfVcC5aCDHsrmaHrt/mZI/kWB+VsBpplznbx3JFnpKvxVn+ze3gt/anKkZGR6If0JFqWSaM3ZpC2gBohi8na+TieVmUXFjUoO8oaz0lFTfmZi1NB0tmu6PYuTz/1+CgAuUSzUwgBPegbmrv3uhaA0YDjanlwhpshCu2+kchvX6m7UEiucLWK6FkKHLB/fqqE+lxldcrb4ZWSbPcUSqNGh80xuX015gF5ywEu9lt06ggrsSRj6X5PBe2AbPWqXAj8sGt5XZZTaMED0bx/ypEbQS0OkvbM/Ro6FyuUoZpnrBIM4IGOaWW+cqqqf89paxk3l606SQb43D4NlMQzThGrQMC3UpeHL3SWrXofMI6oZPXMxH8+T6O0+MXRixeATjQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB7PR04MB4010.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(39860400002)(346002)(376002)(396003)(366004)(136003)(451199015)(38350700002)(38100700002)(36756003)(86362001)(9686003)(316002)(6512007)(478600001)(6486002)(6666004)(6506007)(26005)(186003)(2906002)(41300700001)(83380400001)(5660300002)(4744005)(8676002)(8936002)(52116002)(2616005)(4326008)(1076003)(66556008)(66476007)(66946007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: lYC0BjeP59g8t8fRH496tRJWtlsvYV8hF6Kbco9KhSEX8F61GzFpBuPLDhQwv5M5TFMT4VbltX1TsK4EqwLKBUGYTrBuf33ExkTyvqw1mTEDHdMnkgT0T60DomyN8o2TVaqYPuJx1SYU+exZvAt28ztdczuSTFhVPahOuMrBhH1wArXmRCxQZjTG/TRpBhqpd8CmT/iIVCvLpOlMoqBp1+xcQDQTX2mNP3REYPA3ys0BXfWW3d7vFuD2LCoJVt808Q0jOiWl292is+XMfRmIGstJWXWV1B9Wqqxuhx3LIuyd88Eccs1fqSyMStUtEBXcNkGb65wA2RW1+grAlRclkYkZy/DYrT8hxv3mblvShfrcAxeDQ2tzLghS2DmqbbcBtgGD+fDuLuTuHqpTUJmVC34jYVm/5UPFUPrFRtFLfFOL/itieU4p6nQsLf+SoxiqXdU7IaE+cjKYx8ZoqJN13gsn2C0/3/3qsIy6mq/HkKxkMRC/WepzOIU8tn8TunJfT9BKjmAYTMGvs/HnhFbU1QL4l1stoG8Cb5CSPmbRQLVyBCMbqulK4WQLHb8kuT0X/4IatUHKPh/ynmEhKPdfnrE9JsGaJKANf/7rIPt/TWkf6uT1/cRgWrkIsicSJY9J0jdsnP7gEyKYjwnbNRB00YeS3FucSA5GtjclxWDWqbSxk2a4IxmPl/XXMuwyrcI9E8zJqVWjoNI3TnJ2M6WoLLWCN8r0DhsLUjniNiHdKB6f+sK2ITMvxIxCmUOiFlApC6HNjbqMrtZEQXOrQMNjamq9rAiLZ7qNv2849VSd3df9JLH3n9K1jRfB/kxxABmO8mybpoQHRiqRbaHnKt5GF+troLrXEXZFelT5i0QdujIYNc0t8mxPVcPsUcHl2FuW6Mnkej2LjFOpcvmleLuvA8zhueIDxi7KeOevOB4HIxTaWw0cyhUAlRnCeJXMi8DlF/xge3hzAIrozvC8hiQRzRRigfaSywXJFIWAeh6uciljX8K+54yoA1vjd3cDVYsFh8QXRX4uxoINjRaZboezRhSGaUXtwONHaSpK9zeP54DEtZBfAhOCO0dQXZq/j4mUlg3zpyX7BwfXoYbnqhxQ66pQLNDZkOZrUyU/Unb+iigE8kIGcqSQNz2sorvhqbtLM+tiPnwnGKqg4P1iHxkh8DaNX3rsK8QwoDXVXoMIds+fsvqkwjWWhMHbSdwRsVhkFiSUT+aC7Liwoa7BKUSsC+Udz5jNHb3bZBLRlNqfyzrn6hbMqkxAZuz8qtG3wlzas08vNlFTU9b1c3F2dGy5a2zaQbUfFnredqodQJDXJlx1BtmRndo0weYjH4FnzKkMl2+48yM3NpWEphDeRdZBpPSyY8d10bebXNX/0vd5hrCVmAOuijSP+OlHqxi7I+9A1RA3aE03KTt698AtLRayDfkrYQwqVH+cktijYDAj0msKXMuAOh1heUhoSbqtfb68NzS54/pUiFoMLNCiRiubseFMupLC3pW6Z7WEBkVC0mQ0wugq6rzXyQ2WrwRKNcWEZPVbvbGtz7kOXqCInAg8GU5hGRYmx4FEbDMYtm9WMxDqofIi7xkpjX6fIp722qeQ X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a26874cc-8d00-4cc2-1c61-08dae268e533 X-MS-Exchange-CrossTenant-AuthSource: DB7PR04MB4010.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Dec 2022 09:02:17.9591 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: luZ60Nvrat0jsdDMvqRNBa7ewLhzBDXZFvTXE1yWmk+N1w5ari5MryqNKiivnNepC9sp7+uM4urUvdb096btTQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB9221 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, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752723436580234442?= X-GMAIL-MSGID: =?utf-8?q?1752723436580234442?= From: Haibo Chen Current GPIO label is fixed, so can't distinguish different GPIO controllers through labels. Use dev name instead. Fixes: 7f2691a19627 ("gpio: vf610: add gpiolib/IRQ chip driver for Vybrid") Signed-off-by: Clark Wang Signed-off-by: Haibo Chen Reviewed-by: Linus Walleij --- drivers/gpio/gpio-vf610.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-vf610.c b/drivers/gpio/gpio-vf610.c index 9db42f6a2043..a429176673e7 100644 --- a/drivers/gpio/gpio-vf610.c +++ b/drivers/gpio/gpio-vf610.c @@ -304,7 +304,7 @@ static int vf610_gpio_probe(struct platform_device *pdev) gc = &port->gc; gc->parent = dev; - gc->label = "vf610-gpio"; + gc->label = dev_name(dev); gc->ngpio = VF610_GPIO_PER_PORT; gc->base = of_alias_get_id(np, "gpio") * VF610_GPIO_PER_PORT; From patchwork Tue Dec 20 09:02:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bough Chen X-Patchwork-Id: 34998 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp2857838wrn; Tue, 20 Dec 2022 01:10:32 -0800 (PST) X-Google-Smtp-Source: AA0mqf40XJINsNODL78jynN00iDZQ9SGGsRGzxalw3nqqlAIPkkykBO989+Rpu+sIHUJwBNVqU3t X-Received: by 2002:a17:903:2451:b0:189:f7c8:f3c7 with SMTP id l17-20020a170903245100b00189f7c8f3c7mr68618274pls.28.1671527432196; Tue, 20 Dec 2022 01:10:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1671527432; cv=pass; d=google.com; s=arc-20160816; b=bwd43EUbjdWhNRzMF6jpI+kkupzp+bWwOQjec1T2FC7gdWfanZEMjvRk0vvcr7QyR0 0VIIYIoYmkXuGjnx9wZbUb0rZJYtG8axgpv3PEzy9ZMRSlCNBQIWM5X96WB9u30YeAKr Kg2j04KRvT0QbnJ03houW9orRAALwZkDf+hDrhD0mnzkQMbcnpKjsrRhhcgJYS7fh8yi HJKxS3WspuZkNvQrPq8MIGOtfLJoav7eLrA2cOypEZNddJqQyKGik2F3YF+KXTqCm7rC /j1X3sXDAKSHwWA/w/URKc2BCN3MNaVjKA3izJJRa1LnzQ3AQR7Q/tSq3a2tqgJpb9Pg +o6g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=lqcvnb0BZvZ2HwzyQoLGjNQjfnL6akT6JQSNWdf5ZWY=; b=QxiWrnBY0kGEAQI4zAewkywaXVHT6la8uv3wLsgXRq5tEougC7HkQzLQCLWgg3cA/q iecuIYAKXxlYOO2r8IUsl2jobmcmjjMQ9HVZHwTuIFAh4tvZq/f5srwEYx3VWrMY6wQA Cwf6WFcPkmwmfxEPLiiYIR/6gJjjPD5Tw9d0NPXjpH/2kbvqEnymSoNHD6AKZDvX69Eg ohw8DhM5PiyQAy2azDg0bkJEpzrSUevib4Y554hNdmFmaNGH1f6agSwggqUswbQx3IoM tgKQRZXDudOzkVmqV0RLbGaqJlKjxe2AjRcNF2AnZ3uI6iSY0eCWrALe3tkcfcYRETxN o6SA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=gJg4ea7o; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x4-20020a170902b40400b001869cf73143si12720598plr.314.2022.12.20.01.10.18; Tue, 20 Dec 2022 01:10:32 -0800 (PST) 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=@nxp.com header.s=selector2 header.b=gJg4ea7o; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233321AbiLTJC1 (ORCPT + 99 others); Tue, 20 Dec 2022 04:02:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233296AbiLTJCX (ORCPT ); Tue, 20 Dec 2022 04:02:23 -0500 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2050.outbound.protection.outlook.com [40.107.247.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 805141705F; Tue, 20 Dec 2022 01:02:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bCygyiyXbiCOyWR9POS3cMdg9APnkMr8AZvlhut2ouHh1hB4M6OebmxLrTP30bPvHGgdiEHpPM/axR/VlDwr1XHlisT+jefDXQAChzZ7uKQuasAqEQY9+tFKB4Wo5/TakXtiUW4/zPTiNEqKDGayRFbs1ZNn8Zq62INz2MkHeXJRzrgCPP6oXHx2KASQ7gzzmvomQirk76qrt8jX/NNC6tZ/e+4HC63Y8is3m9GNmsMy+RCbWNJKXfMdi43exZ5qvCV5p16GpwGp8p7TqNEUmUpmgMqYrQUpKOPieJH/9e7YRcMy2a9mUyS2bJKkDgtVi3uVzskxv0rSFk+dJUVUnw== 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=lqcvnb0BZvZ2HwzyQoLGjNQjfnL6akT6JQSNWdf5ZWY=; b=JLiJZjYPupku1HLnCZEsAMBDl+6CL2W0CbvXn94BqAqNlVwdmsgh2plym3btEg412ewO18cEk449j7juOC01iPYrnzC5raYHQFJbWpt6nqzyDWcE4Odp3tEr+MWo1Z+1S1yIDefLPzkpxnOKZBYDgGmg0+bfYa6DL8vuf0UHCTjP4TVjWEezxDroWuI1gG8t6hhxoVJ7ARivcYUjaepRT8z5Zjsunr/wPBG0zLEqi2tRmFg9IM+DpJidm4Lhwm8NwkXNKp7DWjftJXAP1gUGj8edyaN0eud+5mSajwgEJn9KJF3w8stMqhBzSCH+Sai1Py6CXw5oAJTD5F3RwgyekQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lqcvnb0BZvZ2HwzyQoLGjNQjfnL6akT6JQSNWdf5ZWY=; b=gJg4ea7o0etHO3BzCF3tXN065ZQMHrJoUlVOMYL5mSqARFVJEMr8a5Xty0krpgVHYObcEMm9p+RYCkkSAYdR94NqnZUy95cjhQ20z+rZx5VCDKZqFQhmYeFH0KA1LJe4dPRvSLwPNV+xLFYt8tDtRWBeE294fMC69Ju/ASSN0DI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DB7PR04MB4010.eurprd04.prod.outlook.com (2603:10a6:5:21::30) by PA4PR04MB9221.eurprd04.prod.outlook.com (2603:10a6:102:2a0::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5924.16; Tue, 20 Dec 2022 09:02:20 +0000 Received: from DB7PR04MB4010.eurprd04.prod.outlook.com ([fe80::7479:76ef:8e5:da0b]) by DB7PR04MB4010.eurprd04.prod.outlook.com ([fe80::7479:76ef:8e5:da0b%6]) with mapi id 15.20.5924.016; Tue, 20 Dec 2022 09:02:20 +0000 From: haibo.chen@nxp.com To: linus.walleij@linaro.org, brgl@bgdev.pl Cc: stefan@agner.ch, linux-gpio@vger.kernel.org, linux-imx@nxp.com, haibo.chen@nxp.com, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] gpio: vf610: Support building gpio-vf610 driver as module Date: Tue, 20 Dec 2022 17:02:48 +0800 Message-Id: <20221220090248.1134214-2-haibo.chen@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221220090248.1134214-1-haibo.chen@nxp.com> References: <20221220090248.1134214-1-haibo.chen@nxp.com> X-ClientProxiedBy: SI2PR01CA0026.apcprd01.prod.exchangelabs.com (2603:1096:4:192::16) To DB7PR04MB4010.eurprd04.prod.outlook.com (2603:10a6:5:21::30) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB7PR04MB4010:EE_|PA4PR04MB9221:EE_ X-MS-Office365-Filtering-Correlation-Id: c0061266-6709-41ea-4fa8-08dae268e6d4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Rvbbv7hnwclpHqGQkQNnGv29HholMVKGViftu0bj8EG7R9hG8moI5RoSXLO03dFFvTrqYVRm7c9V1CBgGTw3FtqV5qG1896WIdXsKqapVzDX+Lo3J2ASQyH86nejtO5zE4/wGZu/O9U4TcYChRdUZ3P8ayJs6ThEMr7V7VA1DSCBbyWdaqRO4PciJuE8UV8nZkiKos63y8GgO9XeLfqNPIaSy+DlE5rJB0QVLchEpqVLLDBiutUGVlU+5UIV0OSS0QDA1PFz9RRU4OSjw4c1a3zDbqY/rj5kY7QuncPunnDxxe0AK+lRGFPBGmbxC54sWYGQxWJECSTas+HmUX/6cYQxG5V/wTEn2cgw3xzRJswK8oZC9vwmZL9AEkxfFm79kpiVbxSNjXqjHWOZ4XUiqaL+m+Hi0YefHEt8zxt243XUJG8AW+9OnyA02Djq9xdThtasSXrayO7qd8AFSrRo20ROqIKItPvlz8om8xL/1S9ESrm0AmNhEkPz7itnnUVliEV51aiGlz/uzazvMadkFm82+vQh3cKPjT/96ZzPr/8KoJO7q1JzmQ8glOw11UVcbYPdlnXyNznPfoHNJNfE2j9O02AS9SDeOEcRzto59fTEqdoDpnIiMyDCa3R/H2bi2IcmNu3MaRk/qEcCkMhDicqBpja8h/UnZSu5AQVq497di0bELnrcqgs2lT5WDMrM7NVMn3LdBMUtaRLooJuR8Q== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB7PR04MB4010.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(39860400002)(346002)(376002)(396003)(366004)(136003)(451199015)(38350700002)(38100700002)(36756003)(86362001)(9686003)(316002)(6512007)(478600001)(6486002)(6666004)(6506007)(26005)(186003)(2906002)(41300700001)(83380400001)(5660300002)(8676002)(8936002)(52116002)(2616005)(4326008)(1076003)(66556008)(66476007)(66946007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: MuAyf61V6Af9RcmLKO1BLofsYidVy0SuJjGEtlxcWbW92FlZRgUFXVvPUUJclDCBSFOdDPcoMTxxSActV5kkuKUGWRtpl/f0dsqlLIJNCXFiiUaC1+2HefWWOB+OoiW34KG3qJ7ARJtbJCXR+FKcysnNzxznL1WHLHtbU4ycNWAHQYzn6KjcfbrcqHNa+mYoGQg7Nce+ckfA+q7lGG6f0wTCLXBintn7+XaYEtvQfD88KUxRI75dYylkv/z8QA2PxL9w7R510/XZ0DKiVi/Zg6sff5gcQ4UKzZ11CeTAoOelMXyHeP0EwBsmYxaW5D6rfUEL9VXZYXpUhxABZwobDrm2cb12VRuOTeqo4gehcfY4Kmcll6+hGyagJ1JwitdK3JKTJHU+jCh62KuAf+CWc0TrqPsp4WCPqjpHJ/epnev0EPSNP8CXSrMp44eTTo5tcgw3/G1KasbSu7U/fPvJckGhET6Zs3eJwMReAnEEX9dLsnsx+yrAt/gM0hCG/4fMTHmeJ3s5mwNc2cQy8dumZV73DLZ4F6uwEbeHFLDyHYdEEt2pboSonJJmTAqLnBRZV+mY2O8j8kL9rj4OKghduYSIBdWZa/WzlRDrMqOB5X/zwPqZjsQUIc2fIdxUEnNP+xNGjfuPtnhpu/ZiO7OkHu/OxAvHtiBxAaULlwjwCoXanbeHHn7gzET/f11wfcflzmkYGUnJh2/GLxFTR/pp71IkKIL0G5fTJGa8i44TcnTxIEOnsGpGgqPhhEqZB6e/H3gSd51ENjeltOR12nvKoii5BaLw8Q0LLaaq63Bf/0/qN70wTSRpTAPMQW8B5G7IUvYfdvpHCKH0wFZAvoP1x2a21MKyTvC9hOk9l2SOo3hSvY12ZQaWfx6vAcwPhQyngwCdKrMAeDPeH1NZ6bwNeT0BlM6o50StN6ZfPrMD/CNCpGg1Q6oXIsDDcu8T07RUn2ozprjlWV/+aDWcQujmFCgqYn4421d11tLKJQ72H0xLEB3imMzhwuNjhTIrfzUJEcRGUZGj+mWlrXvirWZfMS6I8kwb0fqhmVBQV9dP/Ooiuu5h0e9JuocOwxHiBCsnXS60HilcYpxFecsedrESPXCNd2Y15+HvwYNE9WiqBO5FR2FwwfQmgKKysXMlnG+9RMQo5/NdtHlAnjyxK0pChc0uC8+62KcSh1FoxuYIvf/tmeDXXH2t0k1IngpxRro10nFs0Vwy5tUzqlumPVbBug/hoOVxA2NprWHJYaAp+j+yfM4zvjM8Kjsn7IZV8CEQiLlpXAZBZjFHhcGqKpCVPnKXbXNA6p//XG/hr4CfvMN866LQk1irERRKG1Zv+MaTEeQVBKnMlrfgNyFQsTXQYp+XeeMVJxjW5Simak7qlG2IxHtSDQAAJNAIbDdawMn4twunC5ZGqZFPobQ21bM312DSaT+GAstKDaIYH/P2Sg5fqkJfUezc5HYTX2A0LraJ1aUgRVnG49bQtV+d6Ck3FUDsBMZBOUNkDYwgMWUlZ71PPNOQDeD+N9V15zL+5vzfWDP4VcN9tkSSMUuZ9ODIkwDW1k35Ti7pJXVQ4rIjPuG4j+J7PodvLvHedSSa9dwH X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c0061266-6709-41ea-4fa8-08dae268e6d4 X-MS-Exchange-CrossTenant-AuthSource: DB7PR04MB4010.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Dec 2022 09:02:20.6621 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ebbJBQClKCgKWXkEqhzqTWlCkbDIDFYIG6dkUtX8516zACpUIorX973Sj2d2+s4aqHdxmk8giGzu7VERxhMIOw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB9221 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, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752723548500801630?= X-GMAIL-MSGID: =?utf-8?q?1752723548500801630?= From: Haibo Chen To support Android GKI, need to build this driver as module. So change the config as tristate type, and add module license. Signed-off-by: Jindong Yue Signed-off-by: Haibo Chen --- drivers/gpio/Kconfig | 3 ++- drivers/gpio/gpio-vf610.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index ec7cfd4f52b1..53c35cc0ff73 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -680,7 +680,8 @@ config GPIO_UNIPHIER Say yes here to support UniPhier GPIOs. config GPIO_VF610 - def_bool y + tristate "Vybrid vf610 GPIO support" + default y if ARCH_MXC depends on ARCH_MXC select GPIOLIB_IRQCHIP help diff --git a/drivers/gpio/gpio-vf610.c b/drivers/gpio/gpio-vf610.c index a429176673e7..942932ce825a 100644 --- a/drivers/gpio/gpio-vf610.c +++ b/drivers/gpio/gpio-vf610.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -355,3 +356,4 @@ static struct platform_driver vf610_gpio_driver = { }; builtin_platform_driver(vf610_gpio_driver); +MODULE_LICENSE("GPL");