Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5363690imm; Tue, 19 Jun 2018 09:13:40 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIZHcFCisg9o6T5PXLxvI0qc9gSM3m753RCG/o5iWSsmkMZom6b2AS7yVn78zHvfxcQ5DIS X-Received: by 2002:a17:902:7686:: with SMTP id m6-v6mr19741069pll.340.1529424820389; Tue, 19 Jun 2018 09:13:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529424820; cv=none; d=google.com; s=arc-20160816; b=Nzlu0EXCgTPZ4L4rx9mo4XKkyY6y6N/u8SS1SWYGi/OX3a4KwwUPe/RLTgEveklqgd 1HpuDEz0pQwAwnTWyqbNiB+zWLzS1vGYqRY35AVUnaPaO3LHkil/v5ysTEPaLI9T5uRf kcu47z4cVHIpsyAVpdve9tsWs7cykJs+bPu6MJymcPBlkU7/2DcJH9A1kWJ3BgM8ZFha tQ6Cod2arnTf9MhgJJ62kzOjuQbdRDMv1Eybhg56CwvZsqD+65CGX2nc7zPOSPEakutC +VIeS6eeTxmkUIt+TURMhhl9DSwYzjZUNNERM+elbySt6mCUzLLZ8rP8yUuTMyD99sI3 O2hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=0E/HdTpBUqErhsAm+CTxZqHkr/R4BC2BSk+pEx5CcMo=; b=VqOfYyITNXn+k2RIxbuCkl4XYOUOI4L8dVzVmlZavZ6BZqP6Lce49/bi4niu1F/6cC Ig+B1JIjre/q9ux+PV/E8JocszJ8VFEvLBGRvyqTrHpD/OWkNMZRtZ/mh9SONQKycFdW 8fAHZHDU5XzzLqUtZk7QN4K6qygFLtvB2a+kEBgFs/E0FU4Z6sQxDBT6fRaUedlbl9kj zGbtlHwxCsQEKmGMk4d2+FThmHZWxWMn5v3MoonHEY5hgffUTMETNFvcnTy2k3u+TUn9 pfxqEA5s+xtByAee/Af1gHxQ0nUWsM8fZeBVWjH98ZxRqPvZOu7kLIy3Nz/CAxphMAkV 4lHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=YYCbkuuF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y23-v6si20810pfk.75.2018.06.19.09.13.26; Tue, 19 Jun 2018 09:13:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=YYCbkuuF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967143AbeFSQMD (ORCPT + 99 others); Tue, 19 Jun 2018 12:12:03 -0400 Received: from mail-io0-f193.google.com ([209.85.223.193]:33600 "EHLO mail-io0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966661AbeFSQL7 (ORCPT ); Tue, 19 Jun 2018 12:11:59 -0400 Received: by mail-io0-f193.google.com with SMTP id d185-v6so733802ioe.0 for ; Tue, 19 Jun 2018 09:11:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=0E/HdTpBUqErhsAm+CTxZqHkr/R4BC2BSk+pEx5CcMo=; b=YYCbkuuFxvwYfULe2Kj0rzNLxHxBwaGL2KRmeLZ4nSrXPSD3cCBH/Fc1ZYllu8w+rn ODaRa2TAamVipZDpvn2I+VRm44NI2NamARh3gQaZXcO2NBsL2hIi4SwrWrHaKPjhIFNu 06N1QI3uXOfndElxUcJ8EHosOKQxIS9Ed0NIWniO/ORTuhXE3cpXuEysMkAWinIcx9hE Xom8fpmL7sTm7JfRt40DCibSsxgy1SP9ho8l4rRSwqc7zTAGYVOc+eY3Tc+490fuIpa2 6ujpfb3FJVSLhtQDvlFGGzu0ox5Eu8Ng4mcgxRZEnRhL21TYJEScp0eehxHmRet6kmAn Dr3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=0E/HdTpBUqErhsAm+CTxZqHkr/R4BC2BSk+pEx5CcMo=; b=WiVUtpHFqGOYUWxMvrnePinYVC83TwTdVoIKqAezngTS0a2OwJ80M1Be2S/MR/25q2 mn7lTYSc+AxMmv38y/vkvs6EloT52XVKyIaSY4DPLqruZDFh4p7fQr4qxUnoHurMbvpv 1gtphjVQLLUoZt7e2lANSp0dDHoddSX5zyl+IVI5g0KZUgeA+hbTGMhOZ1aTlPHJLMLp ViWpFPnGTOBeYJ/bsn7uweTTJH1Q+VkhTeRhaxKf2oXacyrW3xm6Hsn6/eIwhRQERAIU gn4WdwzRm8kqzo4QplloG7TFmsN+V6Zc+/VM9S5nc0lu9DQo4dM2XMsXxeQ+JWZtDMEq wnkQ== X-Gm-Message-State: APt69E3vrDZuMN3FgtbDQR3fzTG1ppjLeOfLkUecIQgFpMR/Q29rfBi8 9B3p5nc3nb8cM/bARh0p+x3Xf7UR2PmaWDnp9E0+prrD X-Received: by 2002:a6b:c80f:: with SMTP id y15-v6mr13982218iof.187.1529424718971; Tue, 19 Jun 2018 09:11:58 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a6b:9c51:0:0:0:0:0 with HTTP; Tue, 19 Jun 2018 09:11:58 -0700 (PDT) In-Reply-To: <20180619135219.GA7312@wunner.de> References: <20180619124400.11878-1-brgl@bgdev.pl> <20180619135219.GA7312@wunner.de> From: Bartosz Golaszewski Date: Tue, 19 Jun 2018 18:11:58 +0200 Message-ID: Subject: Re: [PATCH] net: ethernet: fix suspend/resume in davinci_emac To: Lukas Wunner Cc: Grygorii Strashko , "David S . Miller" , Florian Fainelli , Dan Carpenter , Ivan Khoronzhuk , Rob Herring , Kevin Hilman , David Lechner , Sekhar Nori , linux-omap@vger.kernel.org, netdev@vger.kernel.org, Linux Kernel Mailing List , Bartosz Golaszewski , stable Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-06-19 15:52 GMT+02:00 Lukas Wunner : > On Tue, Jun 19, 2018 at 02:44:00PM +0200, Bartosz Golaszewski wrote: >> From: Bartosz Golaszewski >> >> This patch reverts commit 3243ff2a05ec ("net: ethernet: davinci_emac: >> Deduplicate bus_find_device() by name matching") and adds a comment >> which should stop anyone from reintroducing the same "fix" in the future. >> >> We can't use bus_find_device_by_name() here because the device name is >> not guaranteed to be 'davinci_mdio'. On some systems it can be >> 'davinci_mdio.0' so we need to use strncmp() against the first part of >> the string to correctly match it. >> >> Fixes: 3243ff2a05ec ("net: ethernet: davinci_emac: Deduplicate bus_find_device() by name matching") >> Cc: stable@vger.kernel.org >> Signed-off-by: Bartosz Golaszewski > > Acked-by: Lukas Wunner > > My apologies Bartosz, it wasn't clear to me that the driver deliberately > only matched against the prefix of the name. Sorry for the breakage. > No issue. I submitted a follow-up series with additional changes required to make suspend/resume work. Please leave your Acked-by there as well as I forgot to pick it up. Thanks in advance, Bartosz Golaszewski