Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp94929rwb; Tue, 15 Nov 2022 19:50:51 -0800 (PST) X-Google-Smtp-Source: AA0mqf5oJqiEQi1MkcCrSQEhsvEq/uVtTGr1UC0gG493gxSni/Nwt6HkrGJfvl7IG45tJCO/lUgz X-Received: by 2002:a63:db13:0:b0:45f:a78b:f905 with SMTP id e19-20020a63db13000000b0045fa78bf905mr19295863pgg.296.1668570651513; Tue, 15 Nov 2022 19:50:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668570651; cv=none; d=google.com; s=arc-20160816; b=l9mrENAZvjSeK6jixPDf1kSgTZeHI4ryKC33r+yCUvP4J0sul8zv9EK7yA5GAQBbjD hGkYtQf0/x5DjSioSjm89bQXQ3G/4FnynKRJsvnlt2Wo3CxP/gL8vWECWIRlNL+qTD+q dp1gd+tKsSRDmxaqhU85ecPsVkhJodKCAqMznzBPZtCKei2YLyPDgZKtB3RMUoT7Fxte LIJAcbW5eSzmbayrYJKod4lUiCTgp4HbOTPttWkeBiATlmT25uajCab858pGuRr9PNRj /+hMekPJJ+nK/YXmFtz2VSuYx8M0Rc4FhuwSevdRQkfmlpsZEEYsup1TbUeix6/3Tu9g uPOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=4RBcywsD/fJEa/wKDwhE7TY9+9WTriSkPtXY7PUcUUE=; b=E7x9TIBE55GTSb+DXhscSmbw88ybLbG1cLM4faSHo02WsSl/79+RZNHTq9s5GAyqN+ l1sdkIl4WRWVUGSDp6XAKbwm7GPtCgyueMqZbNWnfsWnJdU+fE7Ze9zInR998riey5Nu Nlm4aMjiKVq64TCFWa8sjCkL3EvWeyl+w7RkTayiUEU/gfRPpu5a0TyOPL3cyBQUUM13 fuye0sbTeTHp9fHg8Z1pcp/cCj2W4ZypmZoBgq/tn6SklhoSBNRiKbe5V6jNEuLfnR+L 4aik5JhdDRmgtoZRQhTQUwZqjhGoOcG1NgnD3G6yVapkZUyLJmcfvXYc4zvmdgIwz4Jg QSsw== ARC-Authentication-Results: i=1; mx.google.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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p3-20020a170902e74300b00186fb907e27si15246454plf.552.2022.11.15.19.50.39; Tue, 15 Nov 2022 19:50:51 -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; 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 S232062AbiKPDe6 (ORCPT + 91 others); Tue, 15 Nov 2022 22:34:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229567AbiKPDez (ORCPT ); Tue, 15 Nov 2022 22:34:55 -0500 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9C06623EA3; Tue, 15 Nov 2022 19:34:52 -0800 (PST) Received: from loongson.cn (unknown [10.180.13.64]) by gateway (Coremail) with SMTP id _____8AxDdlbWnRjV5YHAA--.22024S3; Wed, 16 Nov 2022 11:34:51 +0800 (CST) Received: from [10.180.13.64] (unknown [10.180.13.64]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Dx9VZYWnRj314UAA--.35734S2; Wed, 16 Nov 2022 11:34:50 +0800 (CST) Subject: Re: [PATCH v2 1/2] gpio: loongson: add dts/acpi gpio support To: Thomas Bogendoerfer Cc: Bartosz Golaszewski , Linus Walleij , zhuyinbo@loongson.cn, Rob Herring , Krzysztof Kozlowski , WANG Xuerui , Jiaxun Yang , Juxin Gao , Bibo Mao , Yanteng Si , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, Arnaud Patard , Huacai Chen , lvjianmin , zhanghongchen , Liu Peibao References: <20221114095332.21079-1-zhuyinbo@loongson.cn> <8b24e3df-8c22-bd09-cfc1-b27e39a05c25@loongson.cn> <20221115102050.GA3167@alpha.franken.de> From: Yinbo Zhu Message-ID: <1bcc9fa5-c701-758d-c241-88c7b5d0216a@loongson.cn> Date: Wed, 16 Nov 2022 11:34:48 +0800 User-Agent: Mozilla/5.0 (X11; Linux loongarch64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20221115102050.GA3167@alpha.franken.de> Content-Type: text/plain; charset=gbk; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8Dx9VZYWnRj314UAA--.35734S2 X-CM-SenderInfo: 52kx5xhqerqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvdXoWrZF43ZFy5ur4DZr4kArWDJwb_yoWfurb_u3 4I9FW8Jr48Zr1kJwn5try3Jasrtr98JF18ZrW0vr42qwsYya1SkryUCrySya1kWw1xKrn8 Zr4kWw1fA34fWjkaLaAFLSUrUUUUeb8apTn2vfkv8UJUUUU8wcxFpf9Il3svdxBIdaVrn0 xqx4xG64xvF2IEw4CE5I8CrVC2j2Jv73VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUO 17CY07I20VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1Y6r17M28lY4IEw2 IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Xr0_Ar1l84AC jcxK6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM2 8EF7xvwVC2z280aVCY1x0267AKxVW8Jr0_Cr1UM2kKe7AKxVWUAVWUtwAS0I0E0xvYzxvE 52x082IY62kv0487Mc804VCY07AIYIkI8VC2zVCFFI0UMc02F40EFcxC0VAKzVAqx4xG6I 80ewAv7VC0I7IYx2IY67AKxVWUtVWrXwAv7VC2z280aVAFwI0_Gr0_Cr1lOx8S6xCaFVCj c4AY6r1j6r4UM4x0Y48IcVAKI48JMxk0xIA0c2IEe2xFo4CEbIxvr21lc7CjxVAaw2AFwI 0_Jw0_GFyl42xK82IYc2Ij64vIr41l42xK82IY6x8ErcxFaVAv8VWrMxC20s026xCaFVCj c4AY6r1j6r4UMxCIbckI1I0E14v26r1q6r43MI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxV Cjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVW8ZVWrXwCIc40Y0x0EwIxGrwCI42IY 6xIIjxv20xvE14v26r4j6ryUMIIF0xvE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwCI42IY6x AIw20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Gr0_Cr1lIxAIcVC2z280aVCY 1x0267AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7IU86yIUUUUUU== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, 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 ?? 2022/11/15 ????6:20, Thomas Bogendoerfer ะด??: > On Tue, Nov 15, 2022 at 05:53:26PM +0800, Yinbo Zhu wrote: >>>> +/* ============== Data structrues =============== */ >>>> + >>>> +/* gpio data */ >>>> +struct platform_gpio_data { >>>> + u32 gpio_conf; >>>> + u32 gpio_out; >>>> + u32 gpio_in; >>>> + u32 support_irq; >>>> + char *label; >>>> + int gpio_base; >>>> + int ngpio; >>>> +}; >>> >>> No idea why you would need to duplicate it like this either. And why >>> put it in arch/. >> because loongson platform include mips and loongarch, and the gpio device >> data was defined in arch/ in leagcy loongson gpio driver. so the >> latest loongson gpio drvier add platform_gpio_data in same dir. > > put the struct into a new file in include/linux/platform_data and > use that. > > Thomas. Hi Thomas, I think it is okay for me about your advice. I will move gpio platform data in include/linux/platform_data. Thanks Yinbo. >