Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3462219pxb; Wed, 14 Apr 2021 06:11:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhzUXBWNShGMGA2L29DIOkWgSP3D6eWhUhtZUEkHdM+9j0iJEG0IJvcBvfXkpZYyEK6F/e X-Received: by 2002:a17:906:eb09:: with SMTP id mb9mr15015519ejb.452.1618405900183; Wed, 14 Apr 2021 06:11:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618405900; cv=none; d=google.com; s=arc-20160816; b=YRVcTUz+FG8rmijqpvNDkpu7r3jS73UPvsEuoAGe4RcV7oMwaCTKd/a7V1oDhOTTzB MVtD3duF/5/emZukeaOgNTy7fW+aEx9UzpLWncLo5uS6LVtQwYWYuSh4RwO0dooZyStg asr8pG9JWZQtlV6mXzKaiNUg3I4Oduec1rGcWxxFvkkueIZamIXkTsFmZE7nQVdTKvHU xfaoKdRMtsDH/hZhpb09DKwrNSuloLjkRNalbOMSw3YZGStG2cFlEGQBOJ5A79Pnil2I 8G5TMtAAaZB3xBeY4ylqyJNf50TPdiu1b3fwp0v0jnpirjqR7eN75VcTugtt7uyW/sxF fRaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=fhzJXag0MgkeERLQw7fwgTTLcexMxRw26VdF4LhuleQ=; b=qoJEVHXybYel1HGNXZbSg8i/7H2cDCVJ8ueWvoUTpu2t+ABMgjbfWC0epA4qYry5+A W5cZ45I1+2XsaY5gUPVIW9DO3700PokPK0szTnRYWQgg5/xHG4gBZyFGS2tYTLabFfdo tjHfSJj/bcMnctPYp2BVMDwzkVhGi1dQJLS/+336+jyXfUZ5V0uTeqoGoBqh+BHVbo32 U3UZQVRXo11ipAHlTyKry39mVRt25i2WwEKbjg9/SlQxJKl6uCgNYfLd/aAalxmqPUGG gNUTnx3Umgh626hG65jdrJxr57OxH+WmTbKMGI739Wn8Em9UaRbDqeSyipYOgCuyOsRU PxcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Hh3pRhf8; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g3si12311225edu.276.2021.04.14.06.11.16; Wed, 14 Apr 2021 06:11:40 -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=Hh3pRhf8; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233178AbhDNDNw (ORCPT + 99 others); Tue, 13 Apr 2021 23:13:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232933AbhDNDNh (ORCPT ); Tue, 13 Apr 2021 23:13:37 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C1D2C061574; Tue, 13 Apr 2021 20:12:50 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id lr1-20020a17090b4b81b02900ea0a3f38c1so2320306pjb.0; Tue, 13 Apr 2021 20:12:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=fhzJXag0MgkeERLQw7fwgTTLcexMxRw26VdF4LhuleQ=; b=Hh3pRhf8wPcxqp/UcS84bf1IxfWOHUUlJpJtpf1ENaA/ba52PIrrUMXHwOvCz7l111 u+2jadQFZXkY7veHjQDaevPOEFwgNjmVdZ5JxwFN6Lc2hpOfRcRwNPd35+M+6YuHoBJC s4zh/xf3fYvizCQJ6y5msTlqTziaFK+4sxHX2XJFbnM2aqv6m4eCaO1iDonsF8dE5vBL lAdXD7r43tM8unpmaevt6VX+RY4g/tS2CH87yc/hdjFC8iZZKgFZW3Fht++753kFDrwN BkNY3fQSGw/Yvu2OAES8iwP27R8j63XjzoN1yfz8hVlpU6ow3U9Pvf4pUu+dDQiyP51e 4LmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=fhzJXag0MgkeERLQw7fwgTTLcexMxRw26VdF4LhuleQ=; b=lojUJHqTqdd50mHvosmvRAxvAC2aq1vTSxOvoKryOY84g7HD9uO3x/cJy1SVRgUvcG M9u/5ByK/yPW/6hLboSzj4QDDT11PdS06wsGL4Chi1Xboa91GSVCJKblKUthjJHMpk3R IbZQfTAs83oWw7Wg8hONuAKCFeveaEAgkF5j2AatfBs0An0sdNt9mtdoUl/7s2c4X3oC 7yIhaPtTI3Oi8ERfi30iKMx0kxa6jpnDa2E6pVcSTBO/InO4JMKjjwfuioqZW96u18hd u4MUZAfHpYFLkiI1XTEWlE7135LiMaqLMp5xii1c7SQneruznIb1mjlqf7N9GKLYP0ol xPag== X-Gm-Message-State: AOAM5330k8Ud4cq3qMNtjCjZVdTxqhWnZT4hZaAFEsSj4I9KVIwnKH/o fIVkZXoIwXWdfLYme/nuFk4= X-Received: by 2002:a17:90a:9404:: with SMTP id r4mr1068735pjo.64.1618369969722; Tue, 13 Apr 2021 20:12:49 -0700 (PDT) Received: from z640-arch.lan ([2602:61:7344:f100::678]) by smtp.gmail.com with ESMTPSA id d17sm13971605pfo.117.2021.04.13.20.12.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Apr 2021 20:12:49 -0700 (PDT) From: Ilya Lipnitskiy To: Thomas Bogendoerfer , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Sergey Ryazanov Cc: Ilya Lipnitskiy Subject: [PATCH v2 0/8] MIPS: fixes for PCI legacy drivers (rt2880, rt3883) Date: Tue, 13 Apr 2021 20:12:32 -0700 Message-Id: <20210414031240.313852-1-ilya.lipnitskiy@gmail.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org One major fix for rt2880-pci in the first patch - fixes breakage that existed since v4.14. Other more minor fixes, cleanups, and improvements that either free up memory, make dmesg messages clearer, or remove redundant dmesg output. v2: - Do not use internal pci-rt2880 config read and write functions after the device has been registered with the PCI subsystem to avoid races. Use safe pci_bus_{read,write}_config_{d}word wrappers instead. Ilya Lipnitskiy (8): MIPS: pci-rt2880: fix slot 0 configuration MIPS: pci-rt2880: remove unneeded locks MIPS: pci-rt3883: trivial: remove unused variable MIPS: pci-rt3883: more accurate DT error messages MIPS: pci-legacy: stop using of_pci_range_to_resource MIPS: pci-legacy: remove redundant info messages MIPS: pci-legacy: remove busn_resource field MIPS: pci-legacy: use generic pci_enable_resources arch/mips/include/asm/pci.h | 1 - arch/mips/pci/pci-legacy.c | 57 ++++++------------------------------- arch/mips/pci/pci-rt2880.c | 50 ++++++++++++++++---------------- arch/mips/pci/pci-rt3883.c | 10 ++----- 4 files changed, 35 insertions(+), 83 deletions(-) -- 2.31.1