Re: [PATCH v7 4/8] i2c: amd-asf: Add ACPI support for AMD ASF Controller

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Shyam,

On Mon, Sep 23, 2024 at 02:31:46PM GMT, Shyam Sundar S K wrote:
> On 9/23/2024 14:14, Andy Shevchenko wrote:
> > On Mon, Sep 23, 2024 at 01:33:57PM +0530, Shyam Sundar S K wrote:
> >> The AMD ASF controller is presented to the operating system as an ACPI
> >> device. The AMD ASF driver can use ACPI to obtain information about the
> >> ASF controller's attributes, such as the ASF address space and interrupt
> >> number, and to handle ASF interrupts.
> >>
> >> Currently, the piix4 driver assumes that a specific port address is
> >> designated for AUX operations. However, with the introduction of ASF, the
> >> same port address may also be used by the ASF controller. Therefore, a
> >> check needs to be added to ensure that if ASF is advertised and enabled in
> >> ACPI, the AUX port should not be configured.
> > 
> > ...
> > 
> >> +static int amd_asf_probe(struct platform_device *pdev)
> >> +{
> >> +	struct device *dev = &pdev->dev;
> >> +	struct amd_asf_dev *asf_dev;
> >> +
> >> +	asf_dev = devm_kzalloc(dev, sizeof(*asf_dev), GFP_KERNEL);
> >> +	if (!asf_dev)
> >> +		return dev_err_probe(dev, -ENOMEM, "Failed to allocate memory\n");
> >> +
> >> +	asf_dev->mmio_cfg.use_mmio = true;
> >> +	asf_dev->port_addr = platform_get_resource(pdev, IORESOURCE_IO, 0);
> >> +	if (!asf_dev->port_addr)
> >> +		return dev_err_probe(dev, -EINVAL, "missing IO resources\n");
> >> +
> >> +	asf_dev->adap.owner = THIS_MODULE;
> > 
> >> +	asf_dev->adap.dev.parent = &pdev->dev;
> > 
> > Now can also be
> > 
> > 	asf_dev->adap.dev.parent = dev;
> > 
> > (no need to resend for this only thing, perhaps Andi can amend whilst applying).
> > 
> 
> OK. Thank you for all the valuable feedback and time in reviewing this
> series.
> 
> Hi Andi,
> 
> Please let me if the series needs a respin if the amend fails for you.

for this change you don't need to respin everything.

I haven't been much around my computer lately, but I will check
all your patches once again and then merge them.

Thank you,
Andi




[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux