From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 132CEC433DB for ; Tue, 5 Jan 2021 11:11:34 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A239D229C5 for ; Tue, 5 Jan 2021 11:11:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A239D229C5 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=xilinx.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:Subject: From:References:To:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Dzrj/uEMSgsTr8R/OKvCPFmQlLy2sW6Y4ksbWu7w2lA=; b=y3iWsmlsaXebHZv64WuGImhDS uXDyrLyndwIn516TDY80t2m8ii727Z7dbJGsMmIIgzIG4lYIZprNZEgdCGN8PdXvWrViC39rP1ou7 cvy0osEenhj7/wc5+DWfLg70obalD4Kw66lJr/q+nXBjpA4o8oopp/tENHubEreY0oYe5FtnVFJbR l+Fq1cBItwsVYugLmAfIc22OT8aXhF9O/zOC8r7mwoI9ZmXY8hg1ZMjTSgk22ZLN7WgOhgdxAbxzp W5mihDZfGAz/C/xyCMIp+yMeeJQn/mYSIU2wIsNsLO7/6zCrLSg+gvg9Ci7kdE2St6eq5lcB+Y1Zy cECiAeuhw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kwkDq-0003Pi-0H; Tue, 05 Jan 2021 11:09:54 +0000 Received: from mail-dm6nam12on2059.outbound.protection.outlook.com ([40.107.243.59] helo=NAM12-DM6-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kwkDn-0003Or-Nd for linux-arm-kernel@lists.infradead.org; Tue, 05 Jan 2021 11:09:52 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AAeW8Qsnd1BFtMWkFATAY7ulqB2r6rjZdRuzzr7pvwwBHFkQWUIz3f1d9jKX0A1Fcu8dojesRijHuuXQIpNmrWXauW0k9ET/cOCiYJSxe2346BjiIsB09OzyfQYNpCh9amiGnRGWej0MZ5rr8IVdp9UQapcN5NCE5RzVMh1mSwwVRl++h76waIazv5itmZoHG5aWEPlvG1IupptFXMeiqeHtIhkXTVx94cgzlrxaFh6rQmIt///nO7FU8x/197tjQUQkJc5qQATkzOfigks7jwwTlVhki7Ao/If4iDw+28vXHYD5lGwrqyNozWJgXHIo68YKuScfl1pngdNKnRWX/w== 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-SenderADCheck; bh=J8dDKZ7IfYQbYoFvm8NpM71p4M5fYj8aYrYg8XiXeJ0=; b=jakC7+58sg6rLwJcRKzSTS+yuwzT0SR1Sat2t8DpBE9Ddwo0iScnvcYjWlWbcqJEpDJ/rc0Sdr5vB6WwrZkpMie44Fjh74ezM/sZ3QN7aluecGG4padXeeGJKWU4RE0QqTW4IYxodPm8QMnLzwVqOB+0uT2JQoJBFLuL1DsFKba07C7ddrn99AJl0NYWXVaYIiepT05k4Nlf7RBwEZc3/rUkRCD2A6shiF4QmfXcqKusRr6xmU5E7+/oulrUlBUxRdcPzvotgyQH7ga3nCTSO5vXenOcBIGLEBkRAbW9ZIEicbgHzyWtmvkiRqwqRbROVopa4Va27Ki9RltDT/oF0g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=xilinx.com; dmarc=bestguesspass action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=J8dDKZ7IfYQbYoFvm8NpM71p4M5fYj8aYrYg8XiXeJ0=; b=QT5owJuIWVO3mPycORw7t5tyK8f5Ypn0RcDHwFLj1WRxbZJIu+uIt4fop0sXX48Xb5sRfh5/cdWJQ1pToiFqlpeJx4kCGk0lsMRwIuBIzjOZO4elecpJm6lSul/Zo7VJuFtNogyLWWzojvoaBrr6INY6s1GDyMeJbVAZoQTSXD4= Received: from SN6PR01CA0026.prod.exchangelabs.com (2603:10b6:805:b6::39) by SN6PR02MB4352.namprd02.prod.outlook.com (2603:10b6:805:a4::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3721.20; Tue, 5 Jan 2021 11:09:48 +0000 Received: from SN1NAM02FT044.eop-nam02.prod.protection.outlook.com (2603:10b6:805:b6:cafe::ff) by SN6PR01CA0026.outlook.office365.com (2603:10b6:805:b6::39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3742.6 via Frontend Transport; Tue, 5 Jan 2021 11:09:48 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch01.xlnx.xilinx.com; Received: from xsj-pvapexch01.xlnx.xilinx.com (149.199.62.198) by SN1NAM02FT044.mail.protection.outlook.com (10.152.72.173) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.3721.22 via Frontend Transport; Tue, 5 Jan 2021 11:09:48 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch01.xlnx.xilinx.com (172.19.86.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1913.5; Tue, 5 Jan 2021 03:09:47 -0800 Received: from smtp.xilinx.com (172.19.127.95) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.1913.5 via Frontend Transport; Tue, 5 Jan 2021 03:09:47 -0800 Received: from [172.30.17.109] (port=46342) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1kwkDi-0000GS-ME; Tue, 05 Jan 2021 03:09:47 -0800 To: Syed Nayyar Waris , , Srinivas Neeli References: From: Michal Simek Subject: Re: [PATCH 0/5] Introduce the for_each_set_clump macro Message-ID: <0ddb32ad-c330-b1d5-34e0-5b24611a4d1f@xilinx.com> Date: Tue, 5 Jan 2021 12:09:41 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3407ca10-4cc5-4257-4681-08d8b16a6a74 X-MS-TrafficTypeDiagnostic: SN6PR02MB4352: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: X4FQW8+vWT3nrw+N22hJMANkdKalm+LEwsx8A7BQVP0kV4U2+LdKb5xtEL07UuVveP0pGUz3qzAzzwX5pUdlUsDxppnZnxsvkbl+WfQEvFF9V0I74lXE2FMLyyAWbi6OsQxCCKxJR04SUSdPv5hhTLlERUBke0swZ1KI/x3KD5zXuEN52+XSJpaLVVlxNzrJA0hPKDveuWSAFhC39Pqkdh2xVEpeCcE4qxxKjxq/PdAlfzKLVceoz+B0/LyKRle9+/VuD02x6H1hyX/dxm6WiTkHkYB3jK7HjgUXo75ywx1m0oVzlCGkP0fRoetgCTegRIdj/CfbifVq0JSIqbBM5/Y3sc5Eip4mlvORZc5f0XF2wg5wIakKLt6TPc6maAUgy3PHk96HOZlnzhtbHzZt8QXUVdhZzP0yT36WfT9XyfLMzL9YHJ7WNaQ+kmuqw92iotimTzCQd1dpzW/UNejiGwX+oFSUa3Ofc4FV6/hxtx2TNAuzVUHv/MjGGqVciyZtFtaBxFx5hr625f/ne4PYgg== X-Forefront-Antispam-Report: CIP:149.199.62.198; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapexch01.xlnx.xilinx.com; PTR:unknown-62-198.xilinx.com; CAT:NONE; SFS:(4636009)(39860400002)(396003)(136003)(346002)(376002)(46966006)(44832011)(8936002)(83380400001)(426003)(4744005)(7416002)(7636003)(6666004)(8676002)(356005)(82740400003)(54906003)(316002)(47076005)(110136005)(6636002)(2616005)(31686004)(36906005)(70586007)(36756003)(186003)(4326008)(70206006)(2906002)(5660300002)(9786002)(478600001)(82310400003)(26005)(336012)(31696002)(50156003)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jan 2021 11:09:48.2780 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3407ca10-4cc5-4257-4681-08d8b16a6a74 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.62.198]; Helo=[xsj-pvapexch01.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: SN1NAM02FT044.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR02MB4352 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210105_060951_786750_38E08B26 X-CRM114-Status: GOOD ( 12.28 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arch@vger.kernel.org, amit.kucheria@verdurent.com, arnd@arndb.de, yamada.masahiro@socionext.com, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, daniel.lezcano@linaro.org, vilhelm.gray@gmail.com, michal.simek@xilinx.com, bgolaszewski@baylibre.com, rrichter@marvell.com, linux-pm@vger.kernel.org, akpm@linux-foundation.org, andriy.shevchenko@linux.intel.com, rui.zhang@intel.com, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, On 26. 12. 20 7:41, Syed Nayyar Waris wrote: > Hello Linus, > > Since this patchset primarily affects GPIO drivers, would you like > to pick it up through your GPIO tree? > > (Note: Patchset resent with the new macro and relevant > functions shifted to a new header clump_bits.h [Linus Torvalds]) > > Michal, > What do you think of [PATCH 5/5]? Is the conditional check needed? And > also does returning -EINVAL look good? As was said would be better to handle it out of this series. And I expect none is really describing fpga designs by hand and using DT generator for it. But I can't see any issue with checking that we are not exceeding certain limit. Just keep in your mind that every bank has max 32 lines. It means if you say bank0 40, bank1 10 which is in total 50 it will pass your condition in 5/5. It means maybe checking every bank separately is better approach. Thanks, Michal _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel