Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp362711yba; Wed, 24 Apr 2019 02:32:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqxKDWqpnRqGbdBwEasSq7Qxl8nwjoiVm3LDHunzltdInGRt8aBUHX34HAE60ntvFrAq3Ib6 X-Received: by 2002:a63:fb4d:: with SMTP id w13mr30033966pgj.397.1556098364623; Wed, 24 Apr 2019 02:32:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556098364; cv=none; d=google.com; s=arc-20160816; b=iJEt0aGg2SXBaPFqEda3OI8s45vVAxK8jkHt7xzlodwhySMHLF93NZlXpfnmv6tyZv Fdo+CG4luVMxM8QjgHc78DwJfiqwQdL7lRNtrcLQWW5HzCM6mc/DquV7hTBRieK5Ce3F IX7YYrZq34LL0vAEXm+79WYv1Mglm7XQB0TjqlYSQojrUAX+PZ2TbZ7i4b4l0XnJ9i6S TFVfUldrdseDsk1F6+kFUyPKomIxEIbhnJ9YkQCbwuPcD5/nX1Lcmga1OtBkycKaA+j1 1B8yJu4Piv6ht3/4ZaA/nqHgKbkoouSlLntQFu0j6lk5qtjEqgsI6RaMpjypXtNQYRwn fE3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=U01kyr9AdbHvnDi2ONIbZ1/62KSMGw51h4xxTIOYNos=; b=AVk41xkpoq8Bn103SfPP1VMvosWcZfuCDWvd5QnoIGepYWmBhYC2MsopkXQd7ppwOR AFO25NSF5m66dgZGrAhHqJ89I3qUgEd2DApjnEBn0P9k4x+1iwI5rJsL/eYh8IiK74rp sbT2aPwknDnYMyFbkcQuCTTqreSSFgp11jJtfa1wMqgVBJy6d4UqIfpbcDZAambCDA76 n6S1nWqW3+cTWds4j95jln3w7MgXenFxs6PRiBRy6qNhPRkj0IHk57+weXlfFipqq0Y9 VVBl8gMbTZ5F+3O9JUbnmm+WO4pHcFVN/tG8JGAAMlFKy2LcHl8iC/IvEWnL5J4Xnr82 kU1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=rdCT2peQ; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f10si16918089pgv.589.2019.04.24.02.32.29; Wed, 24 Apr 2019 02:32:44 -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=@ti.com header.s=ti-com-17Q1 header.b=rdCT2peQ; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728413AbfDXJbM (ORCPT + 99 others); Wed, 24 Apr 2019 05:31:12 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:39364 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726176AbfDXJbM (ORCPT ); Wed, 24 Apr 2019 05:31:12 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x3O9V6ui103605; Wed, 24 Apr 2019 04:31:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1556098266; bh=U01kyr9AdbHvnDi2ONIbZ1/62KSMGw51h4xxTIOYNos=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=rdCT2peQ+PLE/TPQwDbeghqPEMMO8t9L1sXiUkvj5HId0NBC0fvp1pJx6RTvB3iEg OUbHxjND87P5RFztnZ+9vFs7OfbxF0q5bxSf5ppb30oUVfJ5CXgrX9gWazI/eHJJoq JgOBMoxPF+3QEx3u6KlKqtUD8JgPnBn8QrsNeA6Y= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x3O9V5V0076311 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 24 Apr 2019 04:31:06 -0500 Received: from DLEE101.ent.ti.com (157.170.170.31) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Wed, 24 Apr 2019 04:31:05 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Wed, 24 Apr 2019 04:31:05 -0500 Received: from [172.22.181.92] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id x3O9V2jL068847; Wed, 24 Apr 2019 04:31:03 -0500 Subject: Re: [PATCH net-next 02/19] net: ethernet: ti: cpsw: drop TI_DAVINCI_CPDMA config option To: Jakub Kicinski CC: , Ilias Apalodimas , "David S . Miller" , Ivan Khoronzhuk , Florian Fainelli , Andrew Lunn , Sekhar Nori , , , Murali Karicheri References: <1556024950-20752-1-git-send-email-grygorii.strashko@ti.com> <1556024950-20752-3-git-send-email-grygorii.strashko@ti.com> <20190423172709.693f4784@cakuba.netronome.com> From: Grygorii Strashko Message-ID: <32d4f384-cf74-f34e-137f-58333c7d9073@ti.com> Date: Wed, 24 Apr 2019 12:31:01 +0300 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190423172709.693f4784@cakuba.netronome.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24.04.19 03:27, Jakub Kicinski wrote: > On Tue, 23 Apr 2019 16:08:53 +0300, Grygorii Strashko wrote: >> Both drivers CPSW and EMAC can't work without CPDMA, hence simplify build >> of those drivers by always linking davinci_cpdma and drop TI_DAVINCI_CPDMA >> config option. >> Note. the davinci_emac driver module was changed to "ti_davinci_emac" to >> make build work. >> >> Signed-off-by: Grygorii Strashko > > Last time I tried including the same object file in two different > modules it backfired pretty badly. Would you mind sparing some > details as to why you need to do this? I've tried it as modules and inbuid and see no issues. Issue with build happens if EXPORT_SYMBOL_GPL() not removed. It's not expected and not supported to load more then one TI Net driver at same hw, so modules also are just be loaded fine. Why? It's to get rid of CONFIG options which were historically added, but are not required now (and even can't be disabled of if disabled will cause build failures) - result simplified build/Kconfig and code. -- Best regards, grygorii