Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1102254rwb; Thu, 19 Jan 2023 06:42:17 -0800 (PST) X-Google-Smtp-Source: AMrXdXsmOvl9Bb6JH5pn50vVQMAYq3M8t0RctUbC0q8MdnyJM+upODWxLjVQ8bMdZbubF56EGDvU X-Received: by 2002:a05:6402:1f14:b0:49e:36d6:dead with SMTP id b20-20020a0564021f1400b0049e36d6deadmr9092923edb.6.1674139337625; Thu, 19 Jan 2023 06:42:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674139337; cv=none; d=google.com; s=arc-20160816; b=joe57iVgAp8bmMW4LrFAdZU7bT6r9ZbsyTAqonQVseXSQWA3pIZ0RvhsPH3an2XiBM GKnbYXBS1dah7YjdZaiJvisM+ikPOtxBKXQAbeTNcq4jL2EmepdMex98JyewB/maM6lo YpHI4qJGU1dycN+urMiuWN48DjAp0qEpjYdCVdzqu9sOImsBcaTpJOm/jpyL9iXcgjw1 qm9raUO9qWKaC2CRNwrl0eqanJfnL8vJ/PwLkJp/XmuOTUjLNmnU55/0nIQAakxQLs2N zbg3sJsnipu8JBi5ucpqFDfbrLpurq3brvMYMMlZsSvP8JGroldnDKtu3bQYVh5z6bHU CoBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dmvJQOFCtwzkGLAsjBFRopwTcLwjcypkP+CxqSCWQoQ=; b=ia7Bc5wZfmXtPWmd4886pHtvdnv1eixPLm/2gItyxqfB62eTXfBGx6rOJdCnVqrrIi Pz+cFvv7kx6icVFO4qGMHxgVE1tiGVKQ1ViiVZYgiw7BxtsC7CdVdTSwrHwu1aC0MtxK g/rrxqmLSMuKPjCI2GWbyLU3sx3Ss9C/EH7CKYT0wUhR1VkS0E2XByYMYG5DxcLrcd0l P2/9nZFzVnnHz1ErOUWA+wbPu9yjqhtZt/nZBpR85HUtDSthp4TWV0sr8exdmN8v8LGA MhakSzbp+c85aBbxXayD+TAAL/Fb4wfA9519EKcb8uldqexvzq27O46byg5smnKcRdul jNxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=ou6xeig5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id eb6-20020a0564020d0600b0046dbf1fd79csi48710758edb.612.2023.01.19.06.42.05; Thu, 19 Jan 2023 06:42:17 -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; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=ou6xeig5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230342AbjASN5W (ORCPT + 45 others); Thu, 19 Jan 2023 08:57:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229737AbjASN5Q (ORCPT ); Thu, 19 Jan 2023 08:57:16 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5B5771F2E; Thu, 19 Jan 2023 05:57:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=dmvJQOFCtwzkGLAsjBFRopwTcLwjcypkP+CxqSCWQoQ=; b=ou6xeig5IJ07UdXh7mO+3cSoBq BT/Zx+41kyeJ9YwdJC9wWCO0PYDH7D9LtZp/XNd6QkcrKLVxCQ57S8NTJ4ASeJpOyn65Fv9e7N0ap WQf++nsEnyJUtyRMyIDwNld8vCWf08/TgENyh+KOCQLCuKNSlRsgaitnaTxpe2G78794=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1pIVPQ-002Yqq-6i; Thu, 19 Jan 2023 14:56:52 +0100 Date: Thu, 19 Jan 2023 14:56:52 +0100 From: Andrew Lunn To: Ahmad Fatoum Cc: Jakub Kicinski , Woojung Huh , UNGLinuxDriver@microchip.com, Florian Fainelli , Vladimir Oltean , "David S. Miller" , Arun Ramadoss , kernel@pengutronix.de, Oleksij Rempel , Eric Dumazet , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net] net: dsa: microchip: fix probe of I2C-connected KSZ8563 Message-ID: References: <20230119131014.1228773-1-a.fatoum@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230119131014.1228773-1-a.fatoum@pengutronix.de> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 On Thu, Jan 19, 2023 at 02:10:15PM +0100, Ahmad Fatoum wrote: > Starting with commit eee16b147121 ("net: dsa: microchip: perform the > compatibility check for dev probed"), the KSZ switch driver now bails > out if it thinks the DT compatible doesn't match the actual chip: > > ksz9477-switch 1-005f: Device tree specifies chip KSZ9893 but found > KSZ8563, please fix it! > > Problem is that the "microchip,ksz8563" compatible is associated > with ksz_switch_chips[KSZ9893]. Same issue also affected the SPI driver > for the same switch chip and was fixed in commit b44908095612 > ("net: dsa: microchip: add separate struct ksz_chip_data for KSZ8563 chip"). > > Reuse ksz_switch_chips[KSZ8563] introduced in aforementioned commit > to get I2C-connected KSZ8563 probing again. > > Fixes: eee16b147121 ("net: dsa: microchip: perform the compatibility check for dev probed") > Signed-off-by: Ahmad Fatoum Reviewed-by: Andrew Lunn Andrew