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.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 8C33AC433EF for ; Tue, 21 Sep 2021 18:25:21 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 4E8F861211 for ; Tue, 21 Sep 2021 18:25:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4E8F861211 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=O0kOSLh7xSr0r82L2Mih9dR5/hlyk11Cp9NacgNPd6M=; b=bj5rEe5nJl2nc+ aoYaR0vak5p7SVEIeJKHlOwr63g+Ysebgime0kQVwBaq8DomI12omEgBcV8XgXun8DmxieHBlttC6 JTh6ZSq9Y+pJ4NWS1vwg2tZvh6EpocmqKh7i3a1r2FI0mJSBGSko8ifJ+MXTRZdUMz4z2fgZHAW/J RpG/ON0fLch+iYGCV5yDDyYw3OmrKu3TXE4C5LSK5JOkfXLyfP9eNMcIuZrkmLHth/czm8mTEVdJy SDTpmJT/Op0GeQ/Vre/An32hqN0uM1T/bVqOWDG7Nr1SlkcSdZuaanw1SHInoh7HjwhKZua7cf7tE m0+m8v+BYIi7hXHlUCLw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mSkQM-005TSB-23; Tue, 21 Sep 2021 18:23:22 +0000 Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mSkQI-005TRP-0k for linux-arm-kernel@lists.infradead.org; Tue, 21 Sep 2021 18:23:19 +0000 Received: by mail-lf1-x12d.google.com with SMTP id i4so1256553lfv.4 for ; Tue, 21 Sep 2021 11:23:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=95KkxudQIAbKhZ+olJ5AirJiIBhk18GBqqDo5uHFJh8=; b=A3949n9uTh622dQCJvH2SWATPTLI4MCUs48nEeMYGYwRbFPOf4+MMJ2VwwW0iRoeF5 T8f2DyGZLozLTmLA3EBZFABv4ZINiOE/uN+xhXNF2Bv4G8TpWr7ckPVVp8ffJxmetvg4 hohXnnKWUGvNj38BQg2ZTreTuqWCv9UTBPQ/LHWnImzAlUEaNBrneo7B2PDH/Crys0l3 lxaBlljPhCMXowdlBYHoi/+xwjZNKE+JzwdR2CRy0FhGoWvqfH140e6ylsQVqhSTnXQB eU5AdoDdjvLnE0XYwhlMrSpGRt6DuAOijSST+X/PY/9qlJVC77GPlzTRe4WkVhVV9OrI AiUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=95KkxudQIAbKhZ+olJ5AirJiIBhk18GBqqDo5uHFJh8=; b=s2zyboOk7hnFUEOqaZ4jM/MQe0re6+NaQwGaQVaA/iolPu7rtqjKCFhRChPf+ok+L9 k8clW7LGKVIySQydCbhduJuh2eWKMhuvp9Y7Oj4Rrbdd3X8DPNmIuai88QmOkB24gi0A gGFTtUh5MUBpp3gJqsnfj9Mic7WrBaTS3kHIXsqfaBh3SsR842SfVnqyo6G/7J8KjzUv pczE9wmtonINL+FDSNyaWwk/axz+egZDykQMARpA+ZWLDDeKpNspxP4feoWcQ7gZo9rL A2rpTVNiDP1Imk4kfl7u6U8HF5pO4VsarD80dxALSeNmb2YqetJ83eenQZPJwhze8Keq yjow== X-Gm-Message-State: AOAM532/+UGrGfajEOkIFmIA+eRi+sTRbrYweJsW2lJhU8H9DaYBhC/V JV/sgDX0eDQCuAbTG1wHdNlPtbxBS1gKNX9ARlT3GwMG5cKmSw== X-Google-Smtp-Source: ABdhPJxKOb0iW8dQfSSFSGRpWpnprJ9V46xURau26sAcNZ6XDxd1mwmb99YAit8ggJSfc9aM0+PSDWbDdd9tnZd5R3I= X-Received: by 2002:a05:6512:10cb:: with SMTP id k11mr14488705lfg.72.1632248595956; Tue, 21 Sep 2021 11:23:15 -0700 (PDT) MIME-Version: 1.0 References: <20210914100415.1549208-1-daniel@0x0f.com> <20210914100415.1549208-3-daniel@0x0f.com> <87zgs7vavl.wl-maz@kernel.org> <87wnnbv6ac.wl-maz@kernel.org> <87lf3quydn.wl-maz@kernel.org> In-Reply-To: <87lf3quydn.wl-maz@kernel.org> From: Linus Walleij Date: Tue, 21 Sep 2021 20:23:04 +0200 Message-ID: Subject: Re: [PATCH 2/3] irqchip: SigmaStar SSD20xD gpi To: Marc Zyngier Cc: Daniel Palmer , DTML , Rob Herring , Thomas Gleixner , linux-arm-kernel , Romain Perier X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210921_112318_104877_6294CF3E X-CRM114-Status: GOOD ( 14.55 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 On Tue, Sep 21, 2021 at 10:27 AM Marc Zyngier wrote: > Linus: is there a reason why the gpiolib insist on setting its own > handler while building the hierarchy? Is it this? /* * We set handle_bad_irq because the .set_type() should * always be invoked and set the right type of handler. */ irq_domain_set_info(d, irq, hwirq, gc->irq.chip, gc, girq->handler, NULL, NULL); irq_set_probe(irq); (...) IIUC it's because sometimes, on elder systems (such as ixp4xx) some machines are still using boardfiles, and drivers are not obtaining IRQs dynamically from device tree or ACPI, instead they are set up statically at machine init. I assume it would otherwise be done as part of ops->translate? I suppose it could be solved with a patch that take this route only if we're not using device tree or ACPI? If this is the totally wrong answer then forgive me... a bit tired. Yours, Linus Walleij _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel