Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5456953rwb; Sun, 4 Dec 2022 22:18:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf536iwMLvPTN55e6xCwuDbsQQvvSwKBIe51gpyhWtWKsBheO5i8WCMrgsc2l4KL+ZKPzy3w X-Received: by 2002:a17:902:ce86:b0:189:48b0:807 with SMTP id f6-20020a170902ce8600b0018948b00807mr57147008plg.81.1670221096029; Sun, 04 Dec 2022 22:18:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670221096; cv=none; d=google.com; s=arc-20160816; b=gK+BDPGiwWi8vOX+9l3U45DccsfqLwCbLjqvwijnYtjIXQG3kdhqFbrn1dDSp9lzDu Erb/19hnffIsahln05JnpmU0wGFK5SWgtalPzm6Vf4P/3P1urOdYnnWG6dx39dWAwgsB UOEqczVQHCUJZN+Vmbm4h5ghWrcsRT56YW3oUi7Qocw4DQ5y+HrDObq0nlboN2JveVub oAZdF238XUzPK/2OckMTn2JMboKNhmqPeyoGsEf4RHGZrhI+zezEmoLet7utSs1f5kzf AbHKhgoYs5nkhhkr6ZAviAzuETV8Wv7iGNdULCeUPNbpCKgzKYzPxWiVBGnrBkUH0GQP HmQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=QC1TfHvns8IB+y5je/AdBYiCOxKGInhYwLcqczu+Fnc=; b=X2d4P1VoNDc/KE7DvLpkPd9lomLwnf7HdnYSxWOWVP3Xq6oFa4aR1OQBzh+Q6A1zxl 4eri0Rtt0/ttzfISwIpSD0LmP9QQx9mdsnFdSl32bmiVK2uMcvEM27IJbTA8mc9CrtCs ha2cJF55fATcoERVTGkJv4ukH+5B/+ZnaIPJgSzUOyJ5wu5sAMqaQPwr+hhlxTsjTeGT rDV6z00d2NRECJD56J2xlxZbDw72Gg3JJ/yGQfH52Y4XwXXtrqNnyOqfXGTZ+7NjzuME Kf0oH1wLn2C3fo0PM/dvNbtLA3qdpiHIGaVhxHIFAKw/CFGx+YR6XkV+QR+V8U7ck2UU pxUA== 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 e16-20020a17090301d000b00186c41eced7si14415376plh.36.2022.12.04.22.18.04; Sun, 04 Dec 2022 22:18:16 -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 S231526AbiLEGEQ (ORCPT + 83 others); Mon, 5 Dec 2022 01:04:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230037AbiLEGEO (ORCPT ); Mon, 5 Dec 2022 01:04:14 -0500 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2C1F3E021; Sun, 4 Dec 2022 22:04:11 -0800 (PST) Received: from loongson.cn (unknown [117.133.84.183]) by gateway (Coremail) with SMTP id _____8CxZPDbiY1jmDUDAA--.7361S3; Mon, 05 Dec 2022 14:04:11 +0800 (CST) Received: from [192.168.1.2] (unknown [117.133.84.183]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Cx5VbZiY1jCcglAA--.8830S3; Mon, 05 Dec 2022 14:04:10 +0800 (CST) Message-ID: <899d9d4c-36e8-6a4f-4243-dcf16f9ef29f@loongson.cn> Date: Mon, 5 Dec 2022 14:04:09 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH v10 1/2] gpio: loongson: add gpio driver support To: Andy Shevchenko Cc: Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , WANG Xuerui , Jiaxun Yang , Thomas Bogendoerfer , 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 , Jianmin Lv , Hongchen Zhang , Liu Peibao References: <20221201123220.7893-1-zhuyinbo@loongson.cn> <35ff475a-e925-81eb-ffeb-448be43f59ff@loongson.cn> From: Yinbo Zhu In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8Cx5VbZiY1jCcglAA--.8830S3 X-CM-SenderInfo: 52kx5xhqerqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvJXoW7uF17Cw1xCF43ArW5GF1xKrg_yoW8JFyrpa 4UXa18CF47Gr4fKw1vvw1UCa1avr13J34rX3WkGr48Cas8tr9rtF18Ja12kry7XFWak3y7 JFWFqrW3Ca1rZaDanT9S1TB71UUUUjJqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU bDAFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wAFIxvE14AKwVWUXVWUAwA2ocxC64 kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26r4j6ryUM28E F7xvwVC0I7IYx2IY6xkF7I0E14v26r4j6F4UM28EF7xvwVC2z280aVAFwI0_Gr1j6F4UJw A2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Gr1j6F4UJwAaw2AFwI0_JF0_Jw1le2I262IYc4CY 6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27wAqx4xG64xvF2IEw4CE5I8CrV C2j2WlYx0E2Ix0cI8IcVAFwI0_JF0_Jw1lYx0Ex4A2jsIE14v26r4j6F4UMcvjeVCFs4IE 7xkEbVWUJVW8JwACjcxG0xvEwIxGrwCYjI0SjxkI62AI1cAE67vIY487MxkF7I0En4kS14 v26r1q6r43MxAIw28IcxkI7VAKI48JMxAIw28IcVCjz48v1sIEY20_WwCFx2IqxVCFs4IE 7xkEbVWUJVW8JwCFI7km07C267AKxVWUAVWUtwC20s026c02F40E14v26r1j6r18MI8I3I 0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_GFv_WrylIxkGc2Ij64vIr41lIxAI cVC0I7IYx2IY67AKxVWUCVW8JwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1lIxAIcV CF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r4j6F4UMIIF0xvEx4A2jsIE c7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07jnkucUUUUU= X-Spam-Status: No, score=-2.2 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/12/3 23:41, Andy Shevchenko 写道: > On Sat, Dec 03, 2022 at 05:27:31PM +0200, Andy Shevchenko wrote: >> On Sat, Dec 03, 2022 at 06:53:20PM +0800, Yinbo Zhu wrote: >>> 在 2022/12/3 18:03, Linus Walleij 写道: >>>> On Thu, Dec 1, 2022 at 1:33 PM Yinbo Zhu wrote: >>>>> +config GPIO_LOONGSON_64BIT >>>>> + tristate "Loongson 64 bit GPIO support" >>>>> + depends on LOONGARCH || COMPILE_TEST >>>>> + select GPIO_GENERIC >>>>> + select GPIOLIB_IRQCHIP >>>> If the kernelbots start complaining you might need to add a: >>>> >>>> select IRQ_DOMAIN_HIERARCHY >>>> >>>> here. >>> Bartosz had merged my patch and I will add a change on top of the existing >>> series. >> I don;'t know why he had done that, the driver requires a lot of cleanups, >> e.g. why it uses acpi.h, what that "nice" container of the platform device for. I just compile it that it is still okay when remove acpi.h, so I will remove it in v11. and, I'm afraid I didn't catch your meaning about " what that "nice" container of the platform device for." you said is for following code ? 144 struct platform_device *pdev = 145 container_of(chip->parent, struct platform_device, dev); > + we have macros for get_direction() returned values and so on. okay, I will use that macros in v11.