Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp178790pxy; Tue, 20 Apr 2021 15:58:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgrChlBpWu1a+N0ZZY8yCZUjndMORQW8pU0YrWSk1+FXyzuzXlqN8gQWJsyVVL7qvcoGUz X-Received: by 2002:a17:902:bd8b:b029:ec:7e58:a544 with SMTP id q11-20020a170902bd8bb02900ec7e58a544mr23561523pls.26.1618959532365; Tue, 20 Apr 2021 15:58:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618959532; cv=none; d=google.com; s=arc-20160816; b=D4XyzFHx49zWRwNs9jHbcdYGZtqqV67mPzxFlErMUq7aGIQ3BP1NL47PwOqaoGAY2P oHxgpYlaYBJD/NKZzuZuRooRgxX1mHAB5W4AAF+1dxwKNDe8qRLrNELCAoaRrz22eXyR ZHLIzhA9JNY36D9qeIMeg/Uf40Sq1GkkDFj2IZ6VNF8ORQYgm4MavZ6rY1Q/b/vqY5pU UVwHtPDiBV5DcbD05FBpcKPVHNDm58KnZ14KdqsJD0hN06EeA7ZsMitsABmcLvNpf5jH Cehj5Sn24o+08/NViSBmAfTIKagCX6euC/MNFMbBI2qC1bqz/sNtuB3s/kDp+tHTucCG u2MA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:sender :dkim-signature; bh=vcNH37yHMvcdC/MIfvM5NaS1Yc3VO2Vq5NGFDgGaXz4=; b=x930+5C1SdTYg9iOu9kUfCtP5SnngQzkIEPmP1QqXDX0Yc5/4meNnDiY/yT2NQZ2Vi oJy3vMUUKnDR9ln4Leg9H7BQoJ21NoyKEsmh1DbkJ7G7kVk1e0mFr69qtpH0Pu59ASLC 2mcOursgiDSR9dW9bscNiMWHSMlr+VO9ctFm9M1h94HpihElDBizj/H6WXynIVlJ5Uz/ qsb7Mkx7t0eyfQEipgiTtvF0Rz8Xns1i74iw4BA8WTY1axu4LD4fR7UAdOJBy7t3E16Z +le/JadeBdnXIVgsIpcSm4ks+c/1nd+vwTvoYS5vjZnz+sa55wEVbReYyXueEdJefn9z Nw8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hkBfzpg3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n22si138286pfj.204.2021.04.20.15.58.13; Tue, 20 Apr 2021 15:58:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hkBfzpg3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234276AbhDTW5F (ORCPT + 99 others); Tue, 20 Apr 2021 18:57:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233964AbhDTW5F (ORCPT ); Tue, 20 Apr 2021 18:57:05 -0400 Received: from mail-ot1-x335.google.com (mail-ot1-x335.google.com [IPv6:2607:f8b0:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FF86C06174A; Tue, 20 Apr 2021 15:56:33 -0700 (PDT) Received: by mail-ot1-x335.google.com with SMTP id 65-20020a9d03470000b02902808b4aec6dso32564240otv.6; Tue, 20 Apr 2021 15:56:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=vcNH37yHMvcdC/MIfvM5NaS1Yc3VO2Vq5NGFDgGaXz4=; b=hkBfzpg3NwTklfYcRHxbjLmvWVwI7QwCyX4oqVwUilM+Mdhg7HBgN4g9q2otujmhOj 0PXWGh0NC3BB9STmP7lyMmJRUdCCfjTzMubQwkCcGg9crEOhYue2Nmkdai3okfUAz3pL qzf8ChBFFOITs7ZgnNuVEE1qqAvYJKQtyC7Zky65mk/YhWXVqgERqJ3H8mrHvVGGFRz+ wWbd10FMlUYQ6c8Y9jhrJk/uLS88UOAJZ3p9CSXl8dr7WTHB5RdoMuL25JPtDj1SJAn2 9+XC/Z6VG973My3AlRgJyLdNzs/fo/YNn9Foi2YSaJk4r1kDxzY8BIoFTbw1lPetW0Vi QquA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=vcNH37yHMvcdC/MIfvM5NaS1Yc3VO2Vq5NGFDgGaXz4=; b=KUYqVqpSoXGqzxuo/XVrIXEx16hvT7incOxx4UA6ZQHE8XgUlOF3LOlgcksYsA6ZcX 68l6I26JS9k1lnIGCqIkJT83mLMeN9bWNsx2+i+hj8yPS0abLe8wPitxzPW4dKcXgvrU ndtM5jgo+vbIppj4C8LrqGDqHNoQDAZah3AarfS/roqyadLE5Or0PTAkV+NeMK/wPloe Xv901xFke/VB+lANyesg+7p/e/vxCtKd7TLt8ltzc/E754aKbP9TmYmhOuHXjIOE+5VF joWIz1gAI7wf+K7eBOHiZqf5WoLfUYzp51DyE0zGvlzDfDSQO/DPRMJws1hir4As2w/x /7vw== X-Gm-Message-State: AOAM531MaKjrQe8sGkB0y5kffVdJ1ZCoTkj2GhPRxIGwixdXxCJf4Tp5 e3gCp2h3Xc73Vb+VKJlhsRk= X-Received: by 2002:a9d:764b:: with SMTP id o11mr15874864otl.149.1618959392882; Tue, 20 Apr 2021 15:56:32 -0700 (PDT) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id v17sm115193oot.10.2021.04.20.15.56.31 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 20 Apr 2021 15:56:32 -0700 (PDT) Sender: Guenter Roeck Date: Tue, 20 Apr 2021 15:56:30 -0700 From: Guenter Roeck To: Ilya Lipnitskiy Cc: Thomas Bogendoerfer , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] MIPS: pci-legacy: revert "use generic pci_enable_resources" Message-ID: <20210420225630.GA223531@roeck-us.net> References: <20210420052319.GA162457@roeck-us.net> <20210420063942.7041-1-ilya.lipnitskiy@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210420063942.7041-1-ilya.lipnitskiy@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 19, 2021 at 11:39:43PM -0700, Ilya Lipnitskiy wrote: > This mostly reverts commit 99bca615d895 ("MIPS: pci-legacy: use generic > pci_enable_resources"). Fixes regressions such as: > ata_piix 0000:00:0a.1: can't enable device: BAR 0 [io 0x01f0-0x01f7] not > claimed > ata_piix: probe of 0000:00:0a.1 failed with error -22 > > The only changes from the strict revert are to fix checkpatch errors: > ERROR: spaces required around that '=' (ctx:VxV) > #33: FILE: arch/mips/pci/pci-legacy.c:252: > + for (idx=0; idx < PCI_NUM_RESOURCES; idx++) { > ^ > > ERROR: do not use assignment in if condition > #67: FILE: arch/mips/pci/pci-legacy.c:284: > + if ((err = pcibios_enable_resources(dev, mask)) < 0) > > Reported-by: Guenter Roeck > Signed-off-by: Ilya Lipnitskiy Tested-by: Guenter Roeck Guenter